{"openapi":"3.1.0","info":{"title":"Askrike","description":"Askrike is a platform for deploying and managing AI applications.","version":"1.0.0"},"paths":{"/deployments":{"get":{"tags":["deployments"],"summary":"List Deployments","description":"List deployments visible to the current user — i.e. deployments in\norgs the user is a member of. The site-wide admin view lives at\n`/admin/deployments`.","operationId":"list_deployments_deployments_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"name","in":"query","required":false,"schema":{"type":"string","default":"","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentsResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/projects":{"post":{"tags":["deployments"],"summary":"Create Project","description":"Create a new empty project.","operationId":"create_project_deployments_projects_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deployment"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}":{"get":{"tags":["deployments"],"summary":"Get Deployment","description":"Get a specific deployment.","operationId":"get_deployment_deployments__deployment_id__get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deployment"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["deployments"],"summary":"Update Deployment","description":"Rename a deployment, toggle agent drafts, and/or set its icon.","operationId":"update_deployment_deployments__deployment_id__patch","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Deployment"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deployments"],"summary":"Delete Deployment","description":"Delete a deployment.","operationId":"delete_deployment_deployments__deployment_id__delete","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifyRepoResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/version_history":{"get":{"tags":["deployments"],"summary":"Get Version History","description":"Commit + workflow-run timeline for a deployment.","operationId":"get_version_history_deployments__deployment_id__version_history_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionHistory"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/files":{"post":{"tags":["deployments"],"summary":"Upload Files","description":"Upload small files (5 MB total); returns a folder_id that source-connect calls use.","operationId":"upload_files_deployments_files_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_files_deployments_files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesUploadResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/files/upload-url":{"post":{"tags":["deployments"],"summary":"Create File Upload Url","description":"Presigned PUT for one file; finish with `/files/{file_id}/complete`.","operationId":"create_file_upload_url_deployments_files_upload_url_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadUrlRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadUrlResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/files/{file_id}/complete":{"post":{"tags":["deployments"],"summary":"Complete File Upload","description":"Confirm the upload landed; the file_id is then usable like `/files`'.","operationId":"complete_file_upload_deployments_files__file_id__complete_post","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilesUploadResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/files":{"get":{"tags":["deployments"],"summary":"Get Deployment Files","description":"Get the generated terraform files for a deployment.","operationId":"get_deployment_files_deployments__deployment_id__files_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetFilesResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/logs_stream":{"get":{"tags":["deployments"],"summary":"Get Logs","description":"Stream deployment logs (njson).","operationId":"get_logs_deployments__deployment_id__logs_stream_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"from_time","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"From Time"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/cost":{"get":{"tags":["deployments"],"summary":"Get Deployment Cost","description":"Get the total cost for a deployment over a date range.","operationId":"get_deployment_cost_deployments__deployment_id__cost_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Start date for cost calculation (YYYY-MM-DD)","title":"Start Date"},"description":"Start date for cost calculation (YYYY-MM-DD)"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"End date for cost calculation (YYYY-MM-DD)","title":"End Date"},"description":"End date for cost calculation (YYYY-MM-DD)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentCostResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/workflows":{"get":{"tags":["deployments"],"summary":"Get Deployment Workflows","description":"Return the most recent workflow runs for a deployment (all statuses).","operationId":"get_deployment_workflows_deployments__deployment_id__workflows_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__deployments__schemas__ActiveWorkflowsResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/workflows/active":{"get":{"tags":["deployments"],"summary":"Get Active Workflows","description":"Return active (non-completed) workflows for a deployment.","operationId":"get_active_workflows_deployments__deployment_id__workflows_active_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__deployments__schemas__ActiveWorkflowsResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/workflows/{run_id}/nodes":{"get":{"tags":["deployments"],"summary":"Get Workflow Nodes","description":"Return the pipeline graph for a workflow run.","operationId":"get_workflow_nodes_deployments__deployment_id__workflows__run_id__nodes_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowNodesResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/workflows/logs/stream":{"get":{"tags":["deployments"],"summary":"Stream Latest Workflow Logs","description":"Stream logs for the latest workflow run.","operationId":"stream_latest_workflow_logs_deployments__deployment_id__workflows_logs_stream_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"min_created_at","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Min Created At"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/workflows/{run_id}/logs/stream":{"get":{"tags":["deployments"],"summary":"Stream Run Logs","description":"Stream log lines for a specific workflow run as SSE.","operationId":"stream_run_logs_deployments__deployment_id__workflows__run_id__logs_stream_get","parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"string","title":"Run Id"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/runs":{"get":{"tags":["deployments"],"summary":"List Runs","description":"The deployment's runs, newest first.","operationId":"list_runs_deployments__deployment_id__runs_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"active","in":"query","required":false,"schema":{"type":"boolean","description":"Only queued and running runs.","default":false,"title":"Active"},"description":"Only queued and running runs."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":10,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunsResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/runs/{run}":{"get":{"tags":["deployments"],"summary":"Get Run","description":"One run with its stages and, when it failed, why.","operationId":"get_run_deployments__deployment_id__runs__run__get","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"commit","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"With run=latest: the newest run of this infra commit.","title":"Commit"},"description":"With run=latest: the newest run of this infra commit."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunDetail"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/runs/{run}/logs":{"get":{"tags":["deployments"],"summary":"Run Logs","description":"A page of one stage's log: the tail by default, `after`/`before` a\nline number to page, `grep` to search in place.","operationId":"run_logs_deployments__deployment_id__runs__run__logs_get","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"stage","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"Before"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}],"title":"After"}},{"name":"grep","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Grep"}},{"name":"context","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":0,"default":3,"title":"Context"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunLogs"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/runs/{run}/wait":{"get":{"tags":["deployments"],"summary":"Wait For Run","description":"Return when the run or a stage changes status, or after `timeout`.","operationId":"wait_for_run_deployments__deployment_id__runs__run__wait_get","parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","title":"Run"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"timeout","in":"query","required":false,"schema":{"type":"integer","maximum":25,"minimum":1,"default":20,"title":"Timeout"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunWait"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/containers/source/git":{"post":{"tags":["deployments"],"summary":"Connect Git Source","operationId":"connect_git_source_deployments__deployment_id__containers_source_git_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GitSourceRequest"}}}},"responses":{"501":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/containers/source/files":{"post":{"tags":["deployments"],"summary":"Connect File Source","operationId":"connect_file_source_deployments__deployment_id__containers_source_files_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileSourceRequest"}}}},"responses":{"501":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/containers/{container_name}/source/files/rebuild":{"post":{"tags":["deployments"],"summary":"Rebuild File Source","operationId":"rebuild_file_source_deployments__deployment_id__containers__container_name__source_files_rebuild_post","parameters":[{"name":"container_name","in":"path","required":true,"schema":{"type":"string","title":"Container Name"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RebuildFileSourceRequest"}}}},"responses":{"501":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/containers/source/docker":{"post":{"tags":["deployments"],"summary":"Connect Docker Source","operationId":"connect_docker_source_deployments__deployment_id__containers_source_docker_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DockerSourceRequest"}}}},"responses":{"501":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/containers/{container_name}/source":{"patch":{"tags":["deployments"],"summary":"Update Git Source","operationId":"update_git_source_deployments__deployment_id__containers__container_name__source_patch","parameters":[{"name":"container_name","in":"path","required":true,"schema":{"type":"string","title":"Container Name"}},{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSourceRequest"}}}},"responses":{"501":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/security":{"get":{"tags":["deployments"],"summary":"Get Security Posture","description":"Get the security posture of a deployment's infrastructure.","operationId":"get_security_posture_deployments__deployment_id__security_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"include_checks","in":"query","required":false,"schema":{"type":"boolean","description":"Include individual check results per category","default":false,"title":"Include Checks"},"description":"Include individual check results per category"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SecurityPostureResponse"},{"$ref":"#/components/schemas/SecurityPostureDetailResponse"}],"title":"Response Get Security Posture Deployments  Deployment Id  Security Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/spawned-hostname":{"get":{"tags":["deployments"],"summary":"Get Hostname","operationId":"get_hostname_deployments__deployment_id__spawned_hostname_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnedHostnameResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["deployments"],"summary":"Put Hostname","operationId":"put_hostname_deployments__deployment_id__spawned_hostname_put","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnedHostnameUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnedHostnameResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deployments"],"summary":"Delete Hostname","operationId":"delete_hostname_deployments__deployment_id__spawned_hostname_delete","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/available-domains":{"get":{"tags":["deployments"],"summary":"List Available Domains","operationId":"list_available_domains_deployments__deployment_id__available_domains_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AvailableDomain"},"title":"Response List Available Domains Deployments  Deployment Id  Available Domains Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me":{"get":{"tags":["users"],"summary":"Get Me","description":"Get the current authenticated user's info.","operationId":"get_me_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized"}}}},"/users/me/onboarding-complete":{"post":{"tags":["users"],"summary":"Complete Onboarding","operationId":"complete_onboarding_users_me_onboarding_complete_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized"}}}},"/users/me/api-keys":{"get":{"tags":["users"],"summary":"List Api Keys","description":"List all API keys for the current user (prefix only).","operationId":"list_api_keys_users_me_api_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ApiKey"},"type":"array","title":"Response List Api Keys Users Me Api Keys Get"}}}},"401":{"description":"Unauthorized"}}},"post":{"tags":["users"],"summary":"Create Api Key","description":"Create a new API key. The full key is only returned once.","operationId":"create_api_key_users_me_api_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiKeyResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/me/api-keys/{key_id}":{"delete":{"tags":["users"],"summary":"Revoke Api Key","description":"Revoke an API key (soft delete).","operationId":"revoke_api_key_users_me_api_keys__key_id__delete","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":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/users/{user_id}/balance":{"get":{"tags":["users"],"summary":"Get User Balance Endpoint","description":"Get a user's credit balance. Self only.","operationId":"get_user_balance_endpoint_users__user_id__balance_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/validate-schema":{"post":{"tags":["infra"],"summary":"Validate Infra Schema","description":"Validate an infra.json schema without deploying it.","operationId":"validate_infra_schema_deployments__deployment_id__validate_schema_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Infra Json"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateSchemaResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/infrajson":{"get":{"tags":["infra"],"summary":"Get Deployment Infra Schema","description":"Get the user's infra.json instance for a deployment.","operationId":"get_deployment_infra_schema_deployments__deployment_id__infrajson_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"commit_sha","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Read the schema at this specific commit instead of HEAD. Used by the historical version viewer. `diff` is null when set.","title":"Commit Sha"},"description":"Read the schema at this specific commit instead of HEAD. Used by the historical version viewer. `diff` is null when set."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraSchemaResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["infra"],"summary":"Patch Infra Json","description":"Replace a deployment's infra.json and dispatch to loom-lambda.","operationId":"patch_infra_json_deployments__deployment_id__infrajson_patch","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Infra Json"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/loom-schema":{"get":{"tags":["infra"],"summary":"Get Deployment Loom Schema","description":"Loom's component-spec doc, filtered for this deployment.\n\nSame payload as /v2/loom-schema but the lambda's filter strips\ncomponents disabled for this deployment's AWS account (e.g.\naws/Network on the shared spawned account), so the UI's\n'add component' menu reflects what the deployment can actually use.","operationId":"get_deployment_loom_schema_deployments__deployment_id__loom_schema_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^json-schema$"},{"type":"null"}],"title":"Format"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deployment Loom Schema Deployments  Deployment Id  Loom Schema Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/outputs":{"get":{"tags":["infra"],"summary":"Get Deployment Outputs","description":"Return the deployment's terraform outputs from tfstate.","operationId":"get_deployment_outputs_deployments__deployment_id__outputs_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Deployment Outputs Deployments  Deployment Id  Outputs Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/infrajson/draft":{"get":{"tags":["infra"],"summary":"Get Infra Draft","description":"The deployment's shared uncommitted infra.json, 404 when there is none.","operationId":"get_infra_draft_deployments__deployment_id__infrajson_draft_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraDraftResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["infra"],"summary":"Put Infra Draft","description":"Replace the draft if `revision` matches; 0 asserts no draft exists yet.","operationId":"put_infra_draft_deployments__deployment_id__infrajson_draft_put","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutInfraDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InfraDraftResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["infra"],"summary":"Discard Infra Draft","operationId":"discard_infra_draft_deployments__deployment_id__infrajson_draft_delete","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/infrajson/draft/apply":{"post":{"tags":["infra"],"summary":"Apply Infra Draft","description":"Apply the draft through the same path as PATCH /infrajson.","operationId":"apply_infra_draft_deployments__deployment_id__infrajson_draft_apply_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplyInfraDraftRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/infrajson/draft/diff":{"get":{"tags":["infra"],"summary":"Diff Infra Draft","description":"Component-level diff of the draft against main, or `{\"diff\": null}`.","operationId":"diff_infra_draft_deployments__deployment_id__infrajson_draft_diff_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Diff Infra Draft Deployments  Deployment Id  Infrajson Draft Diff Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/canvas-layout":{"get":{"tags":["infra"],"summary":"Get Canvas Layout","description":"Saved canvas node positions; empty when nothing has been saved.","operationId":"get_canvas_layout_deployments__deployment_id__canvas_layout_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasLayoutResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["infra"],"summary":"Put Canvas Layout","operationId":"put_canvas_layout_deployments__deployment_id__canvas_layout_put","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutCanvasLayoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanvasLayoutResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["infra"],"summary":"Delete Canvas Layout","operationId":"delete_canvas_layout_deployments__deployment_id__canvas_layout_delete","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/components/inspect":{"post":{"tags":["infra"],"summary":"Inspect Component","description":"Unified inspect endpoint.\n\nBody: `{\"action\": \"log_target\" | ..., \"component\": \"<name>\", ...}`.\n`action=health` also accepts a null/omitted component, which batch-checks\nevery deployed component in one call.\n\nResponse shape depends on the action. `log_target` returns SSE\n(`text/event-stream`); the buffered actions return JSON. Callers know\nwhich they asked for and read accordingly.","operationId":"inspect_component_deployments__deployment_id__components_inspect_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/components/upload":{"post":{"tags":["infra"],"summary":"Upload Bucket Object","description":"Stream a multipart-uploaded file into a v2 deployment bucket.\n\nForm fields: `component` (logical Bucket name in the schema), `key`\n(S3 object key under that bucket), `file` (the upload itself). Uses\naioboto3 multipart, so peak memory is bounded regardless of file size.","operationId":"upload_bucket_object_deployments__deployment_id__components_upload_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_bucket_object_deployments__deployment_id__components_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/components/upload-url":{"post":{"tags":["infra"],"summary":"Create Bucket Upload Url","description":"Presigned PUT for an upload too large to pass through the backend.","operationId":"create_bucket_upload_url_deployments__deployment_id__components_upload_url_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComponentUploadUrlRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComponentUploadUrlResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/components/upload-complete":{"post":{"tags":["infra"],"summary":"Complete Bucket Upload","description":"Confirm a presigned upload landed in the bucket.","operationId":"complete_bucket_upload_deployments__deployment_id__components_upload_complete_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComponentUploadCompleteRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComponentUploadCompleteResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/deployments/{deployment_id}/components/download":{"get":{"tags":["infra"],"summary":"Download Bucket Object","description":"Stream a bucket object back through the backend as a download.\n\nS3 objects over 5 MB redirect (302) to a presigned GET; smaller ones\nstream. GCS objects relay buffered through loom-lambda\n(1 MiB cap), so the return type is the common Response base.","operationId":"download_bucket_object_deployments__deployment_id__components_download_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"component","in":"query","required":true,"schema":{"type":"string","title":"Component"}},{"name":"key","in":"query","required":true,"schema":{"type":"string","title":"Key"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/infra/validate-schema":{"post":{"tags":["infra"],"summary":"Validate Infra Schema Standalone","description":"Validate an infra.json schema without requiring a deployment.","operationId":"validate_infra_schema_standalone_infra_validate_schema_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Infra Json"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidateSchemaResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/loom-schema":{"get":{"tags":["loom"],"summary":"Get Loom Schema","description":"Return loom's component-spec doc, used by the v2 schema-driven UI.","operationId":"get_loom_schema_v2_loom_schema_get","parameters":[{"name":"format","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^json-schema$"},{"type":"null"}],"description":"`json-schema` returns the infrastructure document's JSON Schema instead of the registry doc.","title":"Format"},"description":"`json-schema` returns the infrastructure document's JSON Schema instead of the registry doc."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Loom Schema V2 Loom Schema Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v2/loom-manifest":{"get":{"tags":["loom"],"summary":"Get Loom Manifest","description":"loom_status's operation manifest: the live-component operations a\ntool surface (the hosted MCP adapter) renders, with their parameter and\nresult schemas.","operationId":"get_loom_manifest_v2_loom_manifest_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Get Loom Manifest V2 Loom Manifest Get"}}}},"401":{"description":"Unauthorized"}}}},"/sources/docker":{"get":{"tags":["sources","docker"],"summary":"Images","description":"Search for Docker images on DockerHub.\nIf no search string is provided, returns curated popular images.","operationId":"images_sources_docker_get","parameters":[{"name":"search_str","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search Str"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/github/repos":{"get":{"tags":["github"],"summary":"Get Repos","operationId":"get_repos_github_repos_get","parameters":[{"name":"search","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search"}},{"name":"include_public","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Public"}},{"name":"installation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Installation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReposResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/github/tree":{"get":{"tags":["github"],"summary":"Get Tree","operationId":"get_tree_github_tree_get","parameters":[{"name":"repo","in":"query","required":true,"schema":{"type":"string","pattern":"^[^/\\s]+/[^/\\s]+$","title":"Repo"}},{"name":"ref","in":"query","required":true,"schema":{"type":"string","minLength":1,"title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TreeResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/github/installations":{"get":{"tags":["github"],"summary":"Get Installations","operationId":"get_installations_github_installations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationsResponse"}}}},"401":{"description":"Unauthorized"}}}},"/github/installation/url":{"get":{"tags":["github"],"summary":"Get Installation Url","description":"Get the GitHub App installation URL with account selection.","operationId":"get_installation_url_github_installation_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationUrlResponse"}}}},"401":{"description":"Unauthorized"}}}},"/github/installation/status":{"get":{"tags":["github"],"summary":"Get Installation Status","operationId":"get_installation_status_github_installation_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationStatusResponse"}}}},"401":{"description":"Unauthorized"}}}},"/github/installation":{"delete":{"tags":["github"],"summary":"Delete Installation","operationId":"delete_installation_github_installation_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstallationStatusResponse"}}}},"401":{"description":"Unauthorized"}}}},"/polar/products":{"get":{"tags":["polar"],"summary":"Get Product Ids","operationId":"get_product_ids_polar_products_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductIds"}}}},"401":{"description":"Unauthorized"}}}},"/polar/checkout":{"post":{"tags":["polar"],"summary":"Create Checkout","operationId":"create_checkout_polar_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/polar/subscription":{"get":{"tags":["polar"],"summary":"Get Subscription","operationId":"get_subscription_polar_subscription_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatus"}}}},"401":{"description":"Unauthorized"}}}},"/polar/subscription/change":{"post":{"tags":["polar"],"summary":"Change Plan","operationId":"change_plan_polar_subscription_change_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/polar/portal":{"get":{"tags":["polar"],"summary":"Get Customer Portal","operationId":"get_customer_portal_polar_portal_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"}}}},"/orgs":{"get":{"tags":["organizations"],"summary":"List Orgs","operationId":"list_orgs_orgs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/Organization"},"type":"array","title":"Response List Orgs Orgs Get"}}}},"401":{"description":"Unauthorized"}}},"post":{"tags":["organizations"],"summary":"Create Org","operationId":"create_org_orgs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}":{"get":{"tags":["organizations"],"summary":"Get Org","operationId":"get_org_orgs__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["organizations"],"summary":"Update Org","operationId":"update_org_orgs__slug__patch","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organizations"],"summary":"Delete Org","operationId":"delete_org_orgs__slug__delete","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/members":{"get":{"tags":["organizations"],"summary":"List Members","operationId":"list_members_orgs__slug__members_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationMember"},"title":"Response List Members Orgs  Slug  Members Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/members/{user_id}":{"patch":{"tags":["organizations"],"summary":"Update Member Role","operationId":"update_member_role_orgs__slug__members__user_id__patch","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMemberRoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationMember"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["organizations"],"summary":"Remove Member","operationId":"remove_member_orgs__slug__members__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/invites":{"get":{"tags":["organizations"],"summary":"List Invites","operationId":"list_invites_orgs__slug__invites_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrganizationInvite"},"title":"Response List Invites Orgs  Slug  Invites Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["organizations"],"summary":"Create Invite","operationId":"create_invite_orgs__slug__invites_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInviteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInvite"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/audit-events":{"get":{"tags":["organizations"],"summary":"List Audit Events","description":"Org owners' view of audit events for this org.\n\nMost recent first. Actor user info is resolved when available.","operationId":"list_audit_events_orgs__slug__audit_events_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditEventsPage"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/invites/{invite_id}":{"delete":{"tags":["organizations"],"summary":"Revoke Invite","operationId":"revoke_invite_orgs__slug__invites__invite_id__delete","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/billing/balance":{"get":{"tags":["organizations"],"summary":"Get Org Balance","operationId":"get_org_balance_orgs__slug__billing_balance_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/billing/offers":{"get":{"tags":["organizations"],"summary":"Get Org Billing Offers","operationId":"get_org_billing_offers_orgs__slug__billing_offers_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgBillingOffers"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/billing/checkout":{"post":{"tags":["organizations"],"summary":"Create Org Checkout","operationId":"create_org_checkout_orgs__slug__billing_checkout_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/billing/subscription":{"get":{"tags":["organizations"],"summary":"Get Org Subscription","operationId":"get_org_subscription_orgs__slug__billing_subscription_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubscriptionStatus"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/billing/subscription/change":{"post":{"tags":["organizations"],"summary":"Change Org Plan","operationId":"change_org_plan_orgs__slug__billing_subscription_change_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/billing/portal":{"get":{"tags":["organizations"],"summary":"Get Org Billing Portal","operationId":"get_org_billing_portal_orgs__slug__billing_portal_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds":{"get":{"tags":["org-clouds"],"summary":"List Clouds","operationId":"list_clouds_orgs__slug__clouds_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudsResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/{cloud_id}":{"get":{"tags":["org-clouds"],"summary":"Get Cloud","operationId":"get_cloud_orgs__slug__clouds__cloud_id__get","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cloud"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["org-clouds"],"summary":"Update Cloud","operationId":"update_cloud_orgs__slug__clouds__cloud_id__patch","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CloudUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cloud"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["org-clouds"],"summary":"Delete Cloud","operationId":"delete_cloud_orgs__slug__clouds__cloud_id__delete","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/aws":{"post":{"tags":["org-clouds"],"summary":"Create Aws Cloud","operationId":"create_aws_cloud_orgs__slug__clouds_aws_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AwsCloudCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cloud"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/gcp":{"post":{"tags":["org-clouds"],"summary":"Create Gcp Cloud","operationId":"create_gcp_cloud_orgs__slug__clouds_gcp_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpCloudCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cloud"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/kubernetes":{"post":{"tags":["org-clouds"],"summary":"Create Kubernetes Cloud","operationId":"create_kubernetes_cloud_orgs__slug__clouds_kubernetes_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KubernetesClusterCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cloud"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/{cloud_id}/onboarding":{"get":{"tags":["org-clouds"],"summary":"Get Cloud Onboarding","operationId":"get_cloud_onboarding_orgs__slug__clouds__cloud_id__onboarding_get","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AwsCloudOnboarding"},{"$ref":"#/components/schemas/KubernetesCloudOnboarding"},{"$ref":"#/components/schemas/GcpCloudOnboarding"}],"discriminator":{"propertyName":"provider","mapping":{"aws":"#/components/schemas/AwsCloudOnboarding","kubernetes":"#/components/schemas/KubernetesCloudOnboarding","gcp":"#/components/schemas/GcpCloudOnboarding"}},"title":"Response Get Cloud Onboarding Orgs  Slug  Clouds  Cloud Id  Onboarding Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/{cloud_id}/spawned-domain":{"post":{"tags":["org-clouds"],"summary":"Create Spawned Domain","operationId":"create_spawned_domain_orgs__slug__clouds__cloud_id__spawned_domain_post","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnedDomainCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnedDomainResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["org-clouds"],"summary":"Delete Spawned Domain","operationId":"delete_spawned_domain_orgs__slug__clouds__cloud_id__spawned_domain_delete","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/components":{"get":{"tags":["org-components"],"summary":"List Components","operationId":"list_components_orgs__slug__components_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgComponent"},"title":"Response List Components Orgs  Slug  Components Get"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["org-components"],"summary":"Create Component","operationId":"create_component_orgs__slug__components_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComponentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComponent"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/components/{schema_name}":{"get":{"tags":["org-components"],"summary":"Get Component","operationId":"get_component_orgs__slug__components__schema_name__get","parameters":[{"name":"schema_name","in":"path","required":true,"schema":{"type":"string","title":"Schema Name"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComponent"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["org-components"],"summary":"Update Component","operationId":"update_component_orgs__slug__components__schema_name__patch","parameters":[{"name":"schema_name","in":"path","required":true,"schema":{"type":"string","title":"Schema Name"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComponentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgComponent"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["org-components"],"summary":"Delete Component","operationId":"delete_component_orgs__slug__components__schema_name__delete","parameters":[{"name":"schema_name","in":"path","required":true,"schema":{"type":"string","title":"Schema Name"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/{cloud_id}/domains":{"get":{"tags":["org-domains"],"summary":"List Cloud Domains","operationId":"list_cloud_domains_orgs__slug__clouds__cloud_id__domains_get","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainsResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["org-domains"],"summary":"Create Cloud Domain","operationId":"create_cloud_domain_orgs__slug__clouds__cloud_id__domains_post","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/{cloud_id}/domains/{domain_id}":{"get":{"tags":["org-domains"],"summary":"Get Cloud Domain","operationId":"get_cloud_domain_orgs__slug__clouds__cloud_id__domains__domain_id__get","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["org-domains"],"summary":"Delete Cloud Domain","operationId":"delete_cloud_domain_orgs__slug__clouds__cloud_id__domains__domain_id__delete","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/clouds/{cloud_id}/domains/{domain_id}/check":{"post":{"tags":["org-domains"],"summary":"Check Cloud Domain","operationId":"check_cloud_domain_orgs__slug__clouds__cloud_id__domains__domain_id__check_post","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}},{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/cname-domains":{"get":{"tags":["org-cname-domains"],"summary":"List Domains","operationId":"list_domains_orgs__slug__cname_domains_get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxiedDomainsResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["org-cname-domains"],"summary":"Create Domain","operationId":"create_domain_orgs__slug__cname_domains_post","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxiedDomainCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxiedDomainResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/cname-domains/{domain_id}/check":{"post":{"tags":["org-cname-domains"],"summary":"Check Domain","operationId":"check_domain_orgs__slug__cname_domains__domain_id__check_post","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProxiedDomainResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/orgs/{slug}/cname-domains/{domain_id}":{"delete":{"tags":["org-cname-domains"],"summary":"Delete Domain","operationId":"delete_domain_orgs__slug__cname_domains__domain_id__delete","parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"string","title":"Domain Id"}},{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/invites/{token}":{"get":{"tags":["invites"],"summary":"Preview Invite","description":"Preview an invite. Only the rightful invitee sees anything.","operationId":"preview_invite_invites__token__get","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInvitePublic"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/invites/accept":{"post":{"tags":["invites"],"summary":"Accept Invite","operationId":"accept_invite_invites_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationInviteAccept"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Organization"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/overview":{"get":{"tags":["admin"],"summary":"Get Overview","operationId":"get_overview_admin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOverview"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/stats":{"get":{"tags":["admin"],"summary":"Get Stats","operationId":"get_stats_admin_stats_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminStats"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users":{"get":{"tags":["admin"],"summary":"List Users","description":"Paginated, filterable, sortable list of all users.","operationId":"list_users_admin_users_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"role","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created_at","email","name","role","spend_30d","deployment_count"],"type":"string","default":"created_at","title":"Sort"}},{"name":"direction","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUsersResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}":{"get":{"tags":["admin"],"summary":"Get User Detail","description":"Single-user view with orgs, deployments, spend, and API-key count.","operationId":"get_user_detail_admin_users__user_id__get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminUserDetail"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["admin"],"summary":"Update User","description":"Change a user's role or email.","operationId":"update_user_admin_users__user_id__put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete User","description":"Hard-delete a user. Cascades through org membership FKs.","operationId":"delete_user_admin_users__user_id__delete","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/credits":{"get":{"tags":["admin"],"summary":"Get User Credits","description":"Live credit balance for a user. Hits Polar — not autoloaded by the UI.","operationId":"get_user_credits_admin_users__user_id__credits_get","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/banned":{"put":{"tags":["admin"],"summary":"Set Banned","description":"Ban or unban a user. Banned users receive 403 on every authenticated\nrequest — including their own dashboard. Existing deployments keep running\nuntil an admin pauses them separately.","operationId":"set_banned_admin_users__user_id__banned_put","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BannedUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/users/{user_id}/reset-onboarding":{"post":{"tags":["admin"],"summary":"Reset Onboarding","description":"Flip the user back through onboarding (sets the flag to False).","operationId":"reset_onboarding_admin_users__user_id__reset_onboarding_post","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs":{"get":{"tags":["admin"],"summary":"List Orgs","operationId":"list_orgs_admin_orgs_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"scope","in":"query","required":false,"schema":{"enum":["all","team","personal"],"type":"string","default":"all","title":"Scope"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created_at","name","member_count","deployment_count"],"type":"string","default":"created_at","title":"Sort"}},{"name":"direction","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrgsResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Org","operationId":"create_org_admin_orgs_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationAdminCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrgRow"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}":{"get":{"tags":["admin"],"summary":"Get Org Detail","operationId":"get_org_detail_admin_orgs__org_id__get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOrgDetail"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/topups":{"put":{"tags":["admin"],"summary":"Set Org Topups","description":"Enable or disable the standard credit top-up packs for an org.","operationId":"set_org_topups_admin_orgs__org_id__topups_put","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTopupsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/credit-exempt":{"put":{"tags":["admin"],"summary":"Set Org Credit Exempt","description":"Exempt an org from credit enforcement (no warnings, no pause, no\nnegative-balance gate).","operationId":"set_org_credit_exempt_admin_orgs__org_id__credit_exempt_put","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditExemptUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/overbilling":{"put":{"tags":["admin"],"summary":"Set Org Overbilling","description":"Allow an org to run a negative balance (postpaid). Usage keeps metering\nand is owed, but the negative-balance gate, warnings, and pause enforcement\nare skipped while enabled.","operationId":"set_org_overbilling_admin_orgs__org_id__overbilling_put","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OverbillingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/entitlements":{"put":{"tags":["admin"],"summary":"Set Org Entitlement Overrides","description":"Replace the org's entitlement overrides with the explicitly-set fields\nof the body (an empty body clears all overrides). Returns the resulting\neffective entitlements.","operationId":"set_org_entitlement_overrides_admin_orgs__org_id__entitlements_put","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EntitlementOverridesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["admin"],"summary":"Get Org Entitlements","description":"The org's resolved tier, its tier defaults, the stored overrides\n(only fields actually set), and the resulting effective entitlements.","operationId":"get_org_entitlements_admin_orgs__org_id__entitlements_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgEntitlementsRead"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/comp-tier":{"get":{"tags":["admin"],"summary":"Get Comp Tier","description":"Whether the org's active subscription carries the admin-comp discount.","operationId":"get_comp_tier_admin_orgs__org_id__comp_tier_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompTierStatus"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Grant Comp Tier","description":"Grant the org a real tier subscription for free (100% \"Admin comp\"\ndiscount checkout, confirmed server-side — no payment method needed).","operationId":"grant_comp_tier_admin_orgs__org_id__comp_tier_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompTierRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompTierStatus"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Revoke Comp Tier","description":"Revoke the org's comped subscription (only if the active subscription\nactually carries the comp discount) and clear the cached product id.","operationId":"revoke_comp_tier_admin_orgs__org_id__comp_tier_delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deployments":{"get":{"tags":["admin"],"summary":"List Deployments","operationId":"list_deployments_admin_deployments_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"status","in":"query","required":false,"schema":{"enum":["all","created","paused","deleting"],"type":"string","default":"all","title":"Status"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created_at","name","status","spend_30d"],"type":"string","default":"created_at","title":"Sort"}},{"name":"direction","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDeploymentsResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deployments/{deployment_id}/status":{"patch":{"tags":["admin"],"summary":"Set Status","description":"Force a deployment row to a new status. No orchestration — pure DB\nedit for cleanup of stuck records. Audit-logged.","operationId":"set_status_admin_deployments__deployment_id__status_patch","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentStatusPatch"}}}},"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/deployments/{deployment_id}/pause":{"post":{"tags":["admin"],"summary":"Pause Deployment","description":"Destroy infra + mark paused. Use for manual cleanup outside the\ncredit-pending flow. The frontend gates this behind a typed-email\nconfirmation; the backend doesn't re-check (admin auth is the boundary).","operationId":"pause_deployment_admin_deployments__deployment_id__pause_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/domains":{"get":{"tags":["admin"],"summary":"List Domains","operationId":"list_domains_admin_domains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminDomainsResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/domains/{zone_name}/sync":{"post":{"tags":["admin"],"summary":"Sync Zone","description":"Idempotent: re-running a complete zone is a no-op.","operationId":"sync_zone_admin_domains__zone_name__sync_post","parameters":[{"name":"zone_name","in":"path","required":true,"schema":{"type":"string","title":"Zone Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ZoneActionResult"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clouds":{"get":{"tags":["admin"],"summary":"List Clouds","operationId":"list_clouds_admin_clouds_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Q"}},{"name":"provider","in":"query","required":false,"schema":{"enum":["all","aws","kubernetes","azure","gcp"],"type":"string","default":"all","title":"Provider"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["created_at","name"],"type":"string","default":"created_at","title":"Sort"}},{"name":"direction","in":"query","required":false,"schema":{"enum":["asc","desc"],"type":"string","default":"desc","title":"Direction"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCloudsResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/clouds/{cloud_id}":{"get":{"tags":["admin"],"summary":"Get Cloud Detail","operationId":"get_cloud_detail_admin_clouds__cloud_id__get","parameters":[{"name":"cloud_id","in":"path","required":true,"schema":{"type":"string","title":"Cloud Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCloudDetail"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/workflows/active":{"get":{"tags":["admin"],"summary":"List Active","description":"Workflow runs that haven't completed yet, fleet-wide.","operationId":"list_active_admin_workflows_active_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__modules__admin__schemas__ActiveWorkflowsResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/audit":{"get":{"tags":["admin"],"summary":"List Audit Events","operationId":"list_audit_events_admin_audit_get","parameters":[{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":50,"title":"Limit"}},{"name":"action","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Action"}},{"name":"actor_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Id"}},{"name":"org_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"}},{"name":"resource_type","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"}},{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"until","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Until"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuditEventsResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/audit/actions":{"get":{"tags":["admin"],"summary":"List Actions","description":"Distinct action strings, for the audit page filter dropdown.","operationId":"list_actions_admin_audit_actions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response List Actions Admin Audit Actions Get"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/audit/resource-types":{"get":{"tags":["admin"],"summary":"List Resource Types","description":"Distinct resource_type strings, for the audit page filter dropdown.","operationId":"list_resource_types_admin_audit_resource_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response List Resource Types Admin Audit Resource Types Get"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/spawned-clouds/aws":{"get":{"tags":["admin"],"summary":"Get Spawned Aws Account","description":"Identity of the active spawned AWS account. Used by the admin UI\nto surface which account's settings are being edited.","operationId":"get_spawned_aws_account_admin_spawned_clouds_aws_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnedAwsAccountInfo"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}},"post":{"tags":["admin"],"summary":"Register Spawned Aws Account","description":"Register the shared spawned platform account — the only cloud with\nno per-org home. Org clouds are self-service under /orgs/{slug}/clouds.","operationId":"register_spawned_aws_account_admin_spawned_clouds_aws_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateManagedAccountRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpawnedAwsAccountInfo"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spawned-clouds/gcp/pool":{"get":{"tags":["admin"],"summary":"Get Gcp Pool","description":"The tenant-project pool: what an org's first GCP deployment can claim,\nplus everything still being built or failed, plus the projects orgs\ncurrently hold. There is no single \"spawned project\" to show — each org\ngets its own.","operationId":"get_gcp_pool_admin_spawned_clouds_gcp_pool_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpPoolStatus"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/spawned-clouds/gcp/pool/reconcile":{"get":{"tags":["admin"],"summary":"Reconcile Gcp Pool","description":"Compare the tenants folder against the database.\n\nThe DB is not authoritative about GCP, and both kinds of drift consume the\nsame console-only project quota — so a pool that looks healthy here can\ncoexist with quota exhaustion. Read-only: resolving either direction needs\na human. Listing the tenants folder requires the factory SA, so this too\nruns in the pool Lambda.","operationId":"reconcile_gcp_pool_admin_spawned_clouds_gcp_pool_reconcile_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpPoolDrift"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/spawned-clouds/gcp/pool/top-up":{"post":{"tags":["admin"],"summary":"Top Up Gcp Pool","description":"Refill the pool now instead of waiting for the scheduled run.\n\nRuns in the pool Lambda (invoked synchronously), same routine as the\nhourly schedule, and idempotent: in-flight rows count toward the target,\nso triggering this alongside a scheduled run cannot over-create against a\nquota that is scarce and slow to raise.","operationId":"top_up_gcp_pool_admin_spawned_clouds_gcp_pool_top_up_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpPoolTopUpResult"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/spawned-clouds/gcp/projects/{project_row_id}/release":{"post":{"tags":["admin"],"summary":"Release Gcp Project","description":"Return a claimed but unused project to the pool.\n\nClaiming happens on any first GCP deployment attempt, so it is easy to do\nby accident; replacing a project costs a permanently burned id and 30 days\nof quota. Refused (409) once the project has hosted a deployment or owned\na domain — at that point it is contaminated and must be deleted instead.","operationId":"release_gcp_project_admin_spawned_clouds_gcp_projects__project_row_id__release_post","parameters":[{"name":"project_row_id","in":"path","required":true,"schema":{"type":"string","title":"Project Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpProjectInfo"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spawned-clouds/gcp/projects/{project_row_id}/retry":{"post":{"tags":["admin"],"summary":"Retry Gcp Project","description":"Resume a failed project. Bootstrap steps adopt what already exists, so\nthis continues rather than restarting — which is why a failed project is\nnever deleted (GCP would hold its quota for 30 days and burn its id).","operationId":"retry_gcp_project_admin_spawned_clouds_gcp_projects__project_row_id__retry_post","parameters":[{"name":"project_row_id","in":"path","required":true,"schema":{"type":"string","title":"Project Row Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GcpProjectInfo"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/spawned-clouds/aws/shared-network":{"get":{"tags":["admin"],"summary":"Get Shared Network","operationId":"get_shared_network_admin_spawned_clouds_aws_shared_network_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AWSSharedSpawnedNetwork"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}},"put":{"tags":["admin"],"summary":"Put Shared Network","operationId":"put_shared_network_admin_spawned_clouds_aws_shared_network_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AWSSharedSpawnedNetworkUpsert"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AWSSharedSpawnedNetwork"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Shared Network","operationId":"delete_shared_network_admin_spawned_clouds_aws_shared_network_delete","responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/spawned-clouds/aws/shared-domain":{"get":{"tags":["admin"],"summary":"Get Shared Domain","operationId":"get_shared_domain_admin_spawned_clouds_aws_shared_domain_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AWSSharedSpawnedDomain"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}},"put":{"tags":["admin"],"summary":"Put Shared Domain","operationId":"put_shared_domain_admin_spawned_clouds_aws_shared_domain_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AWSSharedSpawnedDomainUpsert"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AWSSharedSpawnedDomain"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Delete Shared Domain","operationId":"delete_shared_domain_admin_spawned_clouds_aws_shared_domain_delete","responses":{"204":{"description":"Successful Response"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/credits/state":{"get":{"tags":["admin"],"summary":"Get Credits State","description":"Fast DB-only snapshot: pending pauses (flagged by the lambda but awaiting\nadmin approval), orgs with active warning flags, and exempt orgs. Doesn't\ncall Polar — for the live picture use /preview.","operationId":"get_credits_state_admin_credits_state_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditsStateResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/credits/preview":{"post":{"tags":["admin"],"summary":"Preview Credits","description":"Live preview of what the next enforcement run would do. Calls Polar for\nevery org with running deployments — slow, triggered explicitly.","operationId":"preview_credits_admin_credits_preview_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPreviewResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/credits/pending-pauses/{deployment_id}/approve":{"post":{"tags":["admin"],"summary":"Approve Pause","description":"Admin confirms a flagged deployment can be paused. Triggers destroy and\nmarks status=paused.","operationId":"approve_pause_admin_credits_pending_pauses__deployment_id__approve_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/credits/pending-pauses/{deployment_id}":{"delete":{"tags":["admin"],"summary":"Cancel Pause","description":"Admin cancels a pending pause. The deployment stays running. Will be\nre-flagged on the next enforcement run unless the org tops up or the org\nis marked credit-exempt.","operationId":"cancel_pause_admin_credits_pending_pauses__deployment_id__delete","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/emails":{"get":{"tags":["admin"],"summary":"List Emails","operationId":"list_emails_admin_emails_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"enum":["pending","sent","rejected"],"type":"string","default":"pending","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboxResponse"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/emails/auto-send":{"put":{"tags":["admin"],"summary":"Set Auto Send","operationId":"set_auto_send_admin_emails_auto_send_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoSendUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/emails/{outbox_id}/approve":{"post":{"tags":["admin"],"summary":"Approve Email","operationId":"approve_email_admin_emails__outbox_id__approve_post","parameters":[{"name":"outbox_id","in":"path","required":true,"schema":{"type":"string","title":"Outbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboxEmail"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/emails/{outbox_id}/reject":{"post":{"tags":["admin"],"summary":"Reject Email","description":"Suppress: the org's warning flag stays set, so it won't re-queue until\nits balance recovers and dips again.","operationId":"reject_email_admin_emails__outbox_id__reject_post","parameters":[{"name":"outbox_id","in":"path","required":true,"schema":{"type":"string","title":"Outbox Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutboxEmail"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/emails/approve-all":{"post":{"tags":["admin"],"summary":"Approve All","operationId":"approve_all_admin_emails_approve_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}}}},"/admin/orgs/{org_id}/offers":{"get":{"tags":["admin"],"summary":"List Offers","operationId":"list_offers_admin_orgs__org_id__offers_get","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"include_revoked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Revoked"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/OrgOffer"},"title":"Response List Offers Admin Orgs  Org Id  Offers Get"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Offer","operationId":"create_offer_admin_orgs__org_id__offers_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOfferRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgOffer"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/offers/{offer_id}/activate":{"post":{"tags":["admin"],"summary":"Activate Offer","operationId":"activate_offer_admin_orgs__org_id__offers__offer_id__activate_post","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrgOffer"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/orgs/{org_id}/offers/{offer_id}":{"delete":{"tags":["admin"],"summary":"Revoke Offer","operationId":"revoke_offer_admin_orgs__org_id__offers__offer_id__delete","parameters":[{"name":"org_id","in":"path","required":true,"schema":{"type":"string","title":"Org Id"}},{"name":"offer_id","in":"path","required":true,"schema":{"type":"string","title":"Offer Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/credit-grants":{"get":{"tags":["admin"],"summary":"List Credit Grants","operationId":"list_credit_grants_admin_credit_grants_get","parameters":[{"name":"include_revoked","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Revoked"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CreditGrant"},"title":"Response List Credit Grants Admin Credit Grants Get"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["admin"],"summary":"Create Credit Grant","operationId":"create_credit_grant_admin_credit_grants_post","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCreditGrantRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditGrant"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/credit-grants/{grant_id}":{"delete":{"tags":["admin"],"summary":"Revoke Credit Grant","operationId":"revoke_credit_grant_admin_credit_grants__grant_id__delete","parameters":[{"name":"grant_id","in":"path","required":true,"schema":{"type":"string","title":"Grant Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/git/clusters/{cluster_id}.git/info/refs":{"get":{"tags":["git"],"summary":"Cluster Info Refs","operationId":"cluster_info_refs_git_clusters__cluster_id__git_info_refs_get","parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}},{"name":"service","in":"query","required":true,"schema":{"type":"string","title":"Service"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/git/clusters/{cluster_id}.git/git-upload-pack":{"post":{"tags":["git"],"summary":"Cluster Upload Pack","operationId":"cluster_upload_pack_git_clusters__cluster_id__git_git_upload_pack_post","parameters":[{"name":"cluster_id","in":"path","required":true,"schema":{"type":"string","title":"Cluster Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/git/clusters/{cluster_id}.git/git-receive-pack":{"post":{"tags":["git"],"summary":"Cluster Receive Pack Blocked","operationId":"cluster_receive_pack_blocked_git_clusters__cluster_id__git_git_receive_pack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"}}}},"/git/{deployment_id}.git/info/refs":{"get":{"tags":["git"],"summary":"Info Refs","operationId":"info_refs_git__deployment_id__git_info_refs_get","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"service","in":"query","required":true,"schema":{"type":"string","title":"Service"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/git/{deployment_id}.git/git-upload-pack":{"post":{"tags":["git"],"summary":"Upload Pack","operationId":"upload_pack_git__deployment_id__git_git_upload_pack_post","parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"string","title":"Deployment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/git/{deployment_id}.git/git-receive-pack":{"post":{"tags":["git"],"summary":"Receive Pack Blocked","operationId":"receive_pack_blocked_git__deployment_id__git_git_receive_pack_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Unauthorized"},"404":{"description":"Not found"}}}},"/polar-webhook":{"post":{"tags":["webhooks"],"summary":"Polar Webhook","operationId":"polar_webhook_polar_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/weft/webhooks":{"post":{"tags":["webhooks"],"summary":"Weft Webhook","description":"Lifecycle events for a run this backend submitted.\n\nAnswers 200 for anything it understands, including events it ignores:\nweft retries `run.finished` until a 2xx and holds the run back from\npruning until then, so a non-2xx for an uninteresting event would pin\nfinished runs in the cluster.","operationId":"weft_webhook_weft_webhooks_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AWSSharedSpawnedDomain":{"properties":{"name":{"type":"string","title":"Name"},"zone_name":{"type":"string","title":"Zone Name"},"zone_id":{"type":"string","title":"Zone Id"},"wildcard_cert_arn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wildcard Cert Arn"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","zone_name","zone_id","created_at","updated_at"],"title":"AWSSharedSpawnedDomain"},"AWSSharedSpawnedDomainUpsert":{"properties":{"name":{"type":"string","title":"Name"},"zone_name":{"type":"string","title":"Zone Name"},"zone_id":{"type":"string","title":"Zone Id"},"wildcard_cert_arn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wildcard Cert Arn"}},"type":"object","required":["name","zone_name","zone_id"],"title":"AWSSharedSpawnedDomainUpsert","description":"PUT body. All four fields are operator-supplied; loom validates them\nat parse/plan time, so the backend treats them as opaque strings."},"AWSSharedSpawnedNetwork":{"properties":{"name":{"type":"string","title":"Name"},"vpc_id":{"type":"string","title":"Vpc Id"},"private_subnet_ids":{"items":{"type":"string"},"type":"array","title":"Private Subnet Ids"},"public_subnet_ids":{"items":{"type":"string"},"type":"array","title":"Public Subnet Ids"},"service_discovery_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Discovery Namespace"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["name","vpc_id","created_at","updated_at"],"title":"AWSSharedSpawnedNetwork"},"AWSSharedSpawnedNetworkUpsert":{"properties":{"name":{"type":"string","title":"Name"},"vpc_id":{"type":"string","title":"Vpc Id"},"private_subnet_ids":{"items":{"type":"string"},"type":"array","title":"Private Subnet Ids"},"public_subnet_ids":{"items":{"type":"string"},"type":"array","title":"Public Subnet Ids"},"service_discovery_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Discovery Namespace"}},"type":"object","required":["name","vpc_id"],"title":"AWSSharedSpawnedNetworkUpsert","description":"PUT body. All fields are operator-supplied; loom validates them at\nparse/plan time, so the backend treats them as opaque strings.\n`service_discovery_namespace` is optional (NULL/omitted = the VPC has no\nCloud Map namespace and Container → Container discovery is unavailable)."},"ActiveWorkflowInfo":{"properties":{"id":{"type":"string","title":"Id"},"workflow_name":{"type":"string","title":"Workflow Name"},"status":{"type":"string","title":"Status"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"commit_hash":{"type":"string","title":"Commit Hash"},"commit_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Message"}},"type":"object","required":["id","workflow_name","status","created_at","commit_hash"],"title":"ActiveWorkflowInfo","description":"Information about an active workflow run."},"ActiveWorkflowRow":{"properties":{"id":{"type":"string","title":"Id"},"workflow_name":{"type":"string","title":"Workflow Name"},"status":{"type":"string","title":"Status"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"deployment_id":{"type":"string","title":"Deployment Id"},"deployment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Name"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Slug"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"html_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Url"},"commit_hash":{"type":"string","title":"Commit Hash"}},"type":"object","required":["id","workflow_name","status","created_at","deployment_id","commit_hash"],"title":"ActiveWorkflowRow"},"AdminCloudDetail":{"properties":{"cloud":{"$ref":"#/components/schemas/Cloud"},"org":{"anyOf":[{"$ref":"#/components/schemas/AdminCloudOrgRef"},{"type":"null"}]},"deployment_count":{"type":"integer","title":"Deployment Count"},"domains":{"items":{"$ref":"#/components/schemas/DomainResponse"},"type":"array","title":"Domains","default":[]}},"type":"object","required":["cloud","deployment_count"],"title":"AdminCloudDetail"},"AdminCloudOrgRef":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","slug","name"],"title":"AdminCloudOrgRef"},"AdminCloudRow":{"properties":{"id":{"type":"string","title":"Id"},"provider":{"type":"string","title":"Provider"},"ownership":{"type":"string","title":"Ownership"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Slug"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"provider_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Account Id"},"deployment_count":{"type":"integer","title":"Deployment Count"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","provider","ownership","name","status","deployment_count"],"title":"AdminCloudRow"},"AdminCloudsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminCloudRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"AdminCloudsResponse"},"AdminDeploymentRow":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"cloud_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloud Id"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Slug"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"owner_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner User Id"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"aws_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aws Account Id"},"spend_30d_cents":{"type":"integer","title":"Spend 30D Cents"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","status","spend_30d_cents","created_at"],"title":"AdminDeploymentRow"},"AdminDeploymentsResponse":{"properties":{"deployments":{"items":{"$ref":"#/components/schemas/AdminDeploymentRow"},"type":"array","title":"Deployments"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["deployments","total"],"title":"AdminDeploymentsResponse"},"AdminDomainAwsInfo":{"properties":{"cert_regions":{"items":{"type":"string"},"type":"array","title":"Cert Regions"},"missing_regions":{"items":{"type":"string"},"type":"array","title":"Missing Regions"}},"type":"object","required":["cert_regions","missing_regions"],"title":"AdminDomainAwsInfo"},"AdminDomainRow":{"properties":{"zone_name":{"type":"string","title":"Zone Name"},"kind":{"type":"string","title":"Kind"},"status":{"type":"string","title":"Status"},"provider":{"type":"string","title":"Provider"},"org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Slug"},"cloud_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloud Id"},"cloud_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloud Name"},"aws":{"anyOf":[{"$ref":"#/components/schemas/AdminDomainAwsInfo"},{"type":"null"}]}},"type":"object","required":["zone_name","kind","status","provider","org_slug","cloud_id","cloud_name"],"title":"AdminDomainRow"},"AdminDomainsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AdminDomainRow"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"cert_regions_policy":{"items":{"type":"string"},"type":"array","title":"Cert Regions Policy"}},"type":"object","required":["items","total","cert_regions_policy"],"title":"AdminDomainsResponse"},"AdminOrgDeploymentRow":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"spend_30d_cents":{"type":"integer","title":"Spend 30D Cents"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","status","spend_30d_cents","created_at"],"title":"AdminOrgDeploymentRow"},"AdminOrgDetail":{"properties":{"org":{"$ref":"#/components/schemas/AdminOrgRow"},"members":{"items":{"$ref":"#/components/schemas/AdminOrgMember"},"type":"array","title":"Members"},"deployments":{"items":{"$ref":"#/components/schemas/AdminOrgDeploymentRow"},"type":"array","title":"Deployments"}},"type":"object","required":["org","members","deployments"],"title":"AdminOrgDetail"},"AdminOrgMember":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"role":{"type":"string","title":"Role"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"}},"type":"object","required":["user_id","role","joined_at"],"title":"AdminOrgMember"},"AdminOrgRow":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"member_count":{"type":"integer","title":"Member Count"},"deployment_count":{"type":"integer","title":"Deployment Count"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"topups_enabled":{"type":"boolean","title":"Topups Enabled","default":true},"credit_exempt":{"type":"boolean","title":"Credit Exempt","default":false},"overbilling_enabled":{"type":"boolean","title":"Overbilling Enabled","default":false},"entitlement_overrides":{"additionalProperties":true,"type":"object","title":"Entitlement Overrides","default":{}},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","slug","name","type","member_count","deployment_count","created_at"],"title":"AdminOrgRow"},"AdminOrgsResponse":{"properties":{"orgs":{"items":{"$ref":"#/components/schemas/AdminOrgRow"},"type":"array","title":"Orgs"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["orgs","total"],"title":"AdminOrgsResponse"},"AdminOverview":{"properties":{"counters":{"$ref":"#/components/schemas/OverviewCounters"},"spend":{"$ref":"#/components/schemas/OverviewSpend"},"recent_users":{"items":{"$ref":"#/components/schemas/RecentUser"},"type":"array","title":"Recent Users"},"recent_deployments":{"items":{"$ref":"#/components/schemas/RecentDeployment"},"type":"array","title":"Recent Deployments"},"top_spenders":{"items":{"$ref":"#/components/schemas/TopSpender"},"type":"array","title":"Top Spenders"}},"type":"object","required":["counters","spend","recent_users","recent_deployments","top_spenders"],"title":"AdminOverview"},"AdminStats":{"properties":{"window_days":{"type":"integer","title":"Window Days"},"totals":{"$ref":"#/components/schemas/StatsTotals"},"series":{"items":{"$ref":"#/components/schemas/StatsSeriesPoint"},"type":"array","title":"Series"},"baseline":{"$ref":"#/components/schemas/StatsBaseline"}},"type":"object","required":["window_days","totals","series","baseline"],"title":"AdminStats"},"AdminUserDeployment":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"spend_30d_cents":{"type":"integer","title":"Spend 30D Cents"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","status","spend_30d_cents","created_at"],"title":"AdminUserDeployment"},"AdminUserDetail":{"properties":{"user":{"$ref":"#/components/schemas/AdminUserRow"},"organizations":{"items":{"$ref":"#/components/schemas/AdminUserOrgMembership"},"type":"array","title":"Organizations"},"deployments":{"items":{"$ref":"#/components/schemas/AdminUserDeployment"},"type":"array","title":"Deployments"},"api_key_count":{"type":"integer","title":"Api Key Count"}},"type":"object","required":["user","organizations","deployments","api_key_count"],"title":"AdminUserDetail"},"AdminUserOrgMembership":{"properties":{"org_id":{"type":"string","title":"Org Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"role":{"type":"string","title":"Role"}},"type":"object","required":["org_id","slug","name","type","role"],"title":"AdminUserOrgMembership"},"AdminUserRow":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"},"role":{"type":"string","enum":["admin","user","beta","waitlisted"],"title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"org_count":{"type":"integer","title":"Org Count"},"deployment_count":{"type":"integer","title":"Deployment Count"},"spend_30d_cents":{"type":"integer","title":"Spend 30D Cents"},"banned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Banned At"}},"type":"object","required":["id","email","role","created_at","org_count","deployment_count","spend_30d_cents"],"title":"AdminUserRow","description":"User list row — denormalized counters so the table doesn't N+1."},"AdminUsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/AdminUserRow"},"type":"array","title":"Users"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["users","total"],"title":"AdminUsersResponse"},"ApiKey":{"properties":{"id":{"type":"string","title":"Id"},"key_prefix":{"type":"string","title":"Key Prefix"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","key_prefix","name","created_at"],"title":"ApiKey","description":"Returned on list — prefix only, no full key."},"ApiKeyCreate":{"properties":{"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"ApiKeyCreate"},"ApiKeyResponse":{"properties":{"id":{"type":"string","title":"Id"},"key":{"type":"string","title":"Key"},"name":{"type":"string","title":"Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","key","name","created_at"],"title":"ApiKeyResponse","description":"Returned on creation — only time the full key is visible."},"ApplyInfraDraftRequest":{"properties":{"revision":{"type":"integer","title":"Revision"}},"type":"object","required":["revision"],"title":"ApplyInfraDraftRequest"},"AuditEvent":{"properties":{"id":{"type":"string","title":"Id"},"actor":{"anyOf":[{"$ref":"#/components/schemas/AuditEventActor"},{"type":"null"}]},"actor_type":{"type":"string","enum":["user","system","api_key"],"title":"Actor Type"},"action":{"type":"string","title":"Action"},"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"type":"string","title":"Resource Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","actor_type","action","resource_type","resource_id","metadata","created_at"],"title":"AuditEvent"},"AuditEventActor":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"}},"type":"object","required":["id"],"title":"AuditEventActor"},"AuditEventRow":{"properties":{"id":{"type":"string","title":"Id"},"action":{"type":"string","title":"Action"},"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"type":"string","title":"Resource Id"},"actor_type":{"type":"string","title":"Actor Type"},"actor_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor User Id"},"actor_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Email"},"actor_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Actor Name"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Slug"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","default":{}},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","action","resource_type","resource_id","actor_type","created_at"],"title":"AuditEventRow"},"AuditEventsPage":{"properties":{"events":{"items":{"$ref":"#/components/schemas/AuditEvent"},"type":"array","title":"Events"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["events","total"],"title":"AuditEventsPage"},"AuditEventsResponse":{"properties":{"events":{"items":{"$ref":"#/components/schemas/AuditEventRow"},"type":"array","title":"Events"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["events","total"],"title":"AuditEventsResponse"},"AutoSendUpdate":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"AutoSendUpdate"},"AvailableDomain":{"properties":{"id":{"type":"string","title":"Id"},"zone_name":{"type":"string","title":"Zone Name"},"provider":{"type":"string","title":"Provider","default":"aws"},"handles":{"additionalProperties":{"type":"string"},"type":"object","title":"Handles","default":{}},"kind":{"type":"string","title":"Kind","default":"custom"}},"type":"object","required":["id","zone_name"],"title":"AvailableDomain","description":"A domain a deployment can use, with the provider handles the frontend\nneeds to build the matching loom component. Covers both kinds — delegated\nzones (org custom domains and the platform-provided spawned zones, which\nbecome an imported-domain component and whose certs loom discovers with\nper-region data-source lookups) and CNAME-attached hostnames (which become\nan `aliases` entry on a domain connection instead). `kind` discriminates."},"AwsCloudCreate":{"properties":{"name":{"type":"string","title":"Name","default":"My AWS Account"}},"type":"object","title":"AwsCloudCreate","description":"Stages a pending account onboarded via the CloudFormation setup link\n— the only org-scoped path. Registering a pre-configured (managed)\naccount is admin-only: POST /admin/spawned-clouds/aws."},"AwsCloudDetails":{"properties":{"provider":{"type":"string","const":"aws","title":"Provider","default":"aws"},"role_arn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Arn"},"s3_terraform_bucket":{"type":"string","title":"S3 Terraform Bucket"},"spawned_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spawned Domain"}},"type":"object","required":["s3_terraform_bucket"],"title":"AwsCloudDetails"},"AwsCloudOnboarding":{"properties":{"provider":{"type":"string","const":"aws","title":"Provider","default":"aws"},"status":{"type":"string","title":"Status"},"setup_link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setup Link"},"external_id":{"type":"string","title":"External Id"},"stack_name":{"type":"string","title":"Stack Name"},"role_name":{"type":"string","title":"Role Name"}},"type":"object","required":["status","setup_link","external_id","stack_name","role_name"],"title":"AwsCloudOnboarding"},"AwsCloudUpdate":{"properties":{"role_arn":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role Arn"},"s3_terraform_bucket":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"S3 Terraform Bucket"}},"type":"object","title":"AwsCloudUpdate"},"BannedUpdate":{"properties":{"banned":{"type":"boolean","title":"Banned"}},"type":"object","required":["banned"],"title":"BannedUpdate"},"Body_upload_bucket_object_deployments__deployment_id__components_upload_post":{"properties":{"component":{"type":"string","title":"Component"},"key":{"type":"string","title":"Key"},"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["component","key","file"],"title":"Body_upload_bucket_object_deployments__deployment_id__components_upload_post"},"Body_upload_files_deployments_files_post":{"properties":{"files":{"items":{"type":"string","format":"binary"},"type":"array","title":"Files"}},"type":"object","title":"Body_upload_files_deployments_files_post"},"CanvasLayoutNode-Input":{"properties":{"x":{"type":"number","title":"X"},"y":{"type":"number","title":"Y"},"w":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"W"},"h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"H"}},"type":"object","required":["x","y"],"title":"CanvasLayoutNode"},"CanvasLayoutNode-Output":{"additionalProperties":{"type":"number"},"type":"object"},"CanvasLayoutResponse":{"properties":{"nodes":{"additionalProperties":{"$ref":"#/components/schemas/CanvasLayoutNode-Output"},"propertyNames":{"maxLength":256,"minLength":1},"type":"object","maxProperties":500,"title":"Nodes"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"}},"type":"object","required":["nodes"],"title":"CanvasLayoutResponse"},"ChangePlanRequest":{"properties":{"product_id":{"type":"string","title":"Product Id"}},"type":"object","required":["product_id"],"title":"ChangePlanRequest"},"ChangePlanResponse":{"properties":{"outcome":{"type":"string","enum":["checkout","changed","current"],"title":"Outcome"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"tier":{"anyOf":[{"type":"string","enum":["developer","pro","scale"]},{"type":"null"}],"title":"Tier"},"effective":{"anyOf":[{"type":"string","enum":["immediate","next_period"]},{"type":"null"}],"title":"Effective"}},"type":"object","required":["outcome"],"title":"ChangePlanResponse","description":"Result of a plan change request.\n\n`checkout` means no card is on file yet and the caller must complete the\nPolar checkout at `url`. `changed` means the subscription was updated in\nplace, `effective` saying whether the switch happened now (upgrade) or\nat the next renewal (downgrade). `current` means no change was needed."},"CheckoutRequest":{"properties":{"product_id":{"type":"string","title":"Product Id"}},"type":"object","required":["product_id"],"title":"CheckoutRequest"},"CheckoutResponse":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"CheckoutResponse"},"Cloud":{"properties":{"id":{"type":"string","title":"Id"},"provider":{"type":"string","enum":["aws","kubernetes","azure","gcp"],"title":"Provider"},"ownership":{"type":"string","enum":["org","spawned"],"title":"Ownership"},"enabled":{"type":"boolean","title":"Enabled","default":true},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"provider_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Account Id"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated At"},"details":{"oneOf":[{"$ref":"#/components/schemas/AwsCloudDetails"},{"$ref":"#/components/schemas/KubernetesCloudDetails"},{"$ref":"#/components/schemas/GcpCloudDetails"}],"title":"Details","discriminator":{"propertyName":"provider","mapping":{"aws":"#/components/schemas/AwsCloudDetails","gcp":"#/components/schemas/GcpCloudDetails","kubernetes":"#/components/schemas/KubernetesCloudDetails"}}}},"type":"object","required":["id","provider","ownership","org_id","name","status","provider_account_id","created_at","updated_at","details"],"title":"Cloud"},"CloudUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"aws":{"anyOf":[{"$ref":"#/components/schemas/AwsCloudUpdate"},{"type":"null"}]},"kubernetes":{"anyOf":[{"$ref":"#/components/schemas/KubernetesClusterUpdate"},{"type":"null"}]},"gcp":{"anyOf":[{"$ref":"#/components/schemas/GcpCloudUpdate"},{"type":"null"}]}},"type":"object","title":"CloudUpdate"},"CloudsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/Cloud"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"CloudsResponse"},"CommitAuthor":{"properties":{"id":{"type":"string","title":"Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"}},"type":"object","required":["id"],"title":"CommitAuthor","description":"The Spawned user a commit is attributed to, resolved from the\npseudonymous author id. Mirrors AuditEventActor so the UI renders it\nlike the audit log. name/email/picture are absent for an erased user\n(only the id survives, in git history)."},"CommitVersion":{"properties":{"commit_sha":{"type":"string","title":"Commit Sha"},"commit_name":{"type":"string","title":"Commit Name"},"commit_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Description"},"committed_at":{"type":"string","format":"date-time","title":"Committed At"},"author":{"anyOf":[{"$ref":"#/components/schemas/CommitAuthor"},{"type":"null"}]},"workflow_runs":{"items":{"$ref":"#/components/schemas/WorkflowRunResponse"},"type":"array","title":"Workflow Runs","default":[]},"is_live":{"type":"boolean","title":"Is Live","default":false}},"type":"object","required":["commit_sha","commit_name","committed_at"],"title":"CommitVersion"},"CompTierRequest":{"properties":{"tier":{"type":"string","enum":["developer","pro","scale"],"title":"Tier"}},"type":"object","required":["tier"],"title":"CompTierRequest"},"CompTierStatus":{"properties":{"comped":{"type":"boolean","title":"Comped"},"tier":{"anyOf":[{"type":"string","enum":["developer","pro","scale"]},{"type":"null"}],"title":"Tier"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"}},"type":"object","required":["comped"],"title":"CompTierStatus","description":"Whether the org's active subscription is an admin comp, and on what."},"ComponentUploadCompleteRequest":{"properties":{"component":{"type":"string","maxLength":256,"minLength":1,"title":"Component"},"key":{"type":"string","maxLength":1024,"minLength":1,"title":"Key"}},"type":"object","required":["component","key"],"title":"ComponentUploadCompleteRequest"},"ComponentUploadCompleteResponse":{"properties":{"bucket":{"type":"string","title":"Bucket"},"key":{"type":"string","title":"Key"},"size":{"type":"integer","title":"Size"}},"type":"object","required":["bucket","key","size"],"title":"ComponentUploadCompleteResponse"},"ComponentUploadUrlRequest":{"properties":{"component":{"type":"string","maxLength":256,"minLength":1,"title":"Component"},"path":{"type":"string","maxLength":1024,"minLength":1,"title":"Path"},"content_type":{"type":"string","maxLength":255,"minLength":1,"title":"Content Type","default":"application/octet-stream"},"size":{"type":"integer","minimum":0.0,"title":"Size"}},"type":"object","required":["component","path","size"],"title":"ComponentUploadUrlRequest"},"ComponentUploadUrlResponse":{"properties":{"url":{"type":"string","title":"Url"},"method":{"type":"string","title":"Method"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"key":{"type":"string","title":"Key"}},"type":"object","required":["url","method","headers","key"],"title":"ComponentUploadUrlResponse"},"CreateCreditGrantRequest":{"properties":{"polar_product_id":{"type":"string","title":"Polar Product Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["polar_product_id"],"title":"CreateCreditGrantRequest"},"CreateManagedAccountRequest":{"properties":{"aws_account_id":{"type":"string","title":"Aws Account Id"},"role_arn":{"type":"string","title":"Role Arn"},"s3_terraform_bucket":{"type":"string","title":"S3 Terraform Bucket"},"name":{"type":"string","title":"Name"}},"type":"object","required":["aws_account_id","role_arn","s3_terraform_bucket","name"],"title":"CreateManagedAccountRequest"},"CreateOfferRequest":{"properties":{"polar_product_id":{"type":"string","title":"Polar Product Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["polar_product_id"],"title":"CreateOfferRequest"},"CreditExemptUpdate":{"properties":{"credit_exempt":{"type":"boolean","title":"Credit Exempt"}},"type":"object","required":["credit_exempt"],"title":"CreditExemptUpdate"},"CreditGrant":{"properties":{"id":{"type":"string","title":"Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"product":{"anyOf":[{"$ref":"#/components/schemas/OfferProduct"},{"type":"null"}]}},"type":"object","required":["id","label","created_at","revoked_at","product"],"title":"CreditGrant"},"CreditOrgOwner":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"}},"type":"object","required":["user_id","email","name","picture"],"title":"CreditOrgOwner"},"CreditOrgSummary":{"properties":{"org_id":{"type":"string","title":"Org Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"owners":{"items":{"$ref":"#/components/schemas/CreditOrgOwner"},"type":"array","title":"Owners"},"credit_exempt":{"type":"boolean","title":"Credit Exempt"},"overbilling_enabled":{"type":"boolean","title":"Overbilling Enabled"},"low_credit_warning_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Low Credit Warning Sent At"},"negative_credit_warning_sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Negative Credit Warning Sent At"},"running_deployment_count":{"type":"integer","title":"Running Deployment Count"},"running_deployments":{"items":{"$ref":"#/components/schemas/CreditRiskDeployment"},"type":"array","title":"Running Deployments"}},"type":"object","required":["org_id","slug","name","owners","credit_exempt","overbilling_enabled","low_credit_warning_sent_at","negative_credit_warning_sent_at","running_deployment_count","running_deployments"],"title":"CreditOrgSummary"},"CreditPreviewOrg":{"properties":{"org_id":{"type":"string","title":"Org Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"owners":{"items":{"$ref":"#/components/schemas/CreditOrgOwner"},"type":"array","title":"Owners"},"balance_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Balance Cents"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"action":{"type":"string","enum":["pause","warn_negative","warn","ok","exempt","overbilling","error"],"title":"Action"},"running_deployments":{"items":{"$ref":"#/components/schemas/CreditRiskDeployment"},"type":"array","title":"Running Deployments"}},"type":"object","required":["org_id","slug","name","owners","balance_cents","error","action","running_deployments"],"title":"CreditPreviewOrg"},"CreditPreviewResponse":{"properties":{"thresholds":{"$ref":"#/components/schemas/CreditThresholds"},"orgs":{"items":{"$ref":"#/components/schemas/CreditPreviewOrg"},"type":"array","title":"Orgs"}},"type":"object","required":["thresholds","orgs"],"title":"CreditPreviewResponse"},"CreditRiskDeployment":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","status","org_id","created_at"],"title":"CreditRiskDeployment"},"CreditThresholds":{"properties":{"warn_at":{"type":"integer","title":"Warn At"},"warn_negative":{"type":"integer","title":"Warn Negative"},"pause_at":{"type":"integer","title":"Pause At"}},"type":"object","required":["warn_at","warn_negative","pause_at"],"title":"CreditThresholds"},"CreditUsage":{"properties":{"used":{"type":"integer","title":"Used"},"limit":{"type":"integer","title":"Limit"},"balance":{"type":"integer","title":"Balance"},"extra_balance":{"type":"integer","title":"Extra Balance"},"resets_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resets At"}},"type":"object","required":["used","limit","balance","extra_balance","resets_at"],"title":"CreditUsage","description":"Per-cycle credit consumption for the usage bar (units = credits/cents).\n\nTwo buckets reconstructed from the single Polar meter: the expiring cycle\nallowance (`used`/`limit`) and `extra_balance` — credits beyond it (top-ups\nand carried rollover), which survive cycle resets and are consumed last."},"CreditsStateResponse":{"properties":{"thresholds":{"$ref":"#/components/schemas/CreditThresholds"},"pending_pauses":{"items":{"$ref":"#/components/schemas/PendingPauseDeployment"},"type":"array","title":"Pending Pauses"},"low_credit_orgs":{"items":{"$ref":"#/components/schemas/CreditOrgSummary"},"type":"array","title":"Low Credit Orgs"},"negative_credit_orgs":{"items":{"$ref":"#/components/schemas/CreditOrgSummary"},"type":"array","title":"Negative Credit Orgs"},"exempt_orgs":{"items":{"$ref":"#/components/schemas/CreditOrgSummary"},"type":"array","title":"Exempt Orgs"},"overbilling_orgs":{"items":{"$ref":"#/components/schemas/CreditOrgSummary"},"type":"array","title":"Overbilling Orgs"}},"type":"object","required":["thresholds","pending_pauses","low_credit_orgs","negative_credit_orgs","exempt_orgs","overbilling_orgs"],"title":"CreditsStateResponse"},"DailyCost":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"cost":{"type":"integer","title":"Cost"}},"type":"object","required":["date","cost"],"title":"DailyCost"},"Deployment":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"icon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon"},"icon_color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Icon Color"},"user_id":{"type":"string","title":"User Id"},"org_id":{"type":"string","title":"Org Id"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"cloud_id":{"type":"string","title":"Cloud Id"},"aws_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aws Account Id"},"cluster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Id"},"gcp_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gcp Project Id"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"target_cloud_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Cloud Id"},"zone_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone Name"},"shared":{"type":"boolean","title":"Shared","default":false},"agent_drafts":{"type":"boolean","title":"Agent Drafts","default":false},"pause_pending_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Pause Pending At"}},"type":"object","required":["id","name","user_id","org_id","status","created_at","cloud_id"],"title":"Deployment"},"DeploymentCostResponse":{"properties":{"deployment_id":{"type":"string","title":"Deployment Id"},"total_cost":{"type":"integer","title":"Total Cost"},"daily_costs":{"items":{"$ref":"#/components/schemas/DailyCost"},"type":"array","title":"Daily Costs"}},"type":"object","required":["deployment_id","total_cost","daily_costs"],"title":"DeploymentCostResponse"},"DeploymentStatusPatch":{"properties":{"status":{"type":"string","enum":["created","paused","deleting"],"title":"Status"}},"type":"object","required":["status"],"title":"DeploymentStatusPatch","description":"Body for PATCH /admin/deployments/{id} — manual DB-row status edit."},"DeploymentUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"agent_drafts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Agent Drafts"},"icon":{"anyOf":[{"type":"string","pattern":"^[a-z0-9-]{1,64}$"},{"type":"null"}],"title":"Icon"},"icon_color":{"anyOf":[{"type":"string","pattern":"^[a-z0-9-]{1,64}$"},{"type":"null"}],"title":"Icon Color"}},"type":"object","title":"DeploymentUpdate"},"DeploymentsResponse":{"properties":{"deployments":{"items":{"$ref":"#/components/schemas/Deployment"},"type":"array","title":"Deployments","default":[]},"count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Count"}},"type":"object","title":"DeploymentsResponse"},"DockerSourceRequest":{"properties":{"container_name":{"type":"string","title":"Container Name"},"image":{"type":"string","title":"Image"},"cpu":{"type":"string","title":"Cpu","default":"256"},"memory":{"type":"string","title":"Memory","default":"512"},"ports":{"items":{"type":"integer"},"type":"array","title":"Ports","default":[8080]},"public":{"type":"boolean","title":"Public","default":true}},"type":"object","required":["container_name","image"],"title":"DockerSourceRequest"},"DomainCreate":{"properties":{"zone_name":{"type":"string","title":"Zone Name"}},"type":"object","required":["zone_name"],"title":"DomainCreate"},"DomainResponse":{"properties":{"id":{"type":"string","title":"Id"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"zone_name":{"type":"string","title":"Zone Name"},"provider":{"type":"string","title":"Provider"},"cloud_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cloud Id"},"ownership":{"type":"string","enum":["org","spawned"],"title":"Ownership","default":"org"},"status":{"type":"string","title":"Status"},"nameservers":{"items":{"type":"string"},"type":"array","title":"Nameservers"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"}},"type":"object","required":["id","zone_name","provider","status","nameservers","created_at","verified_at"],"title":"DomainResponse"},"DomainsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DomainResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"DomainsResponse"},"EntitlementFields":{"properties":{"max_deployments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Deployments"},"max_seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Seats"},"log_retention_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Log Retention Days"},"priority_support":{"type":"boolean","title":"Priority Support"},"byoc_enabled":{"type":"boolean","title":"Byoc Enabled"},"max_unbilled_spend_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Unbilled Spend Cents"}},"type":"object","required":["max_deployments","max_seats","log_retention_days","priority_support","byoc_enabled","max_unbilled_spend_cents"],"title":"EntitlementFields","description":"The overridable entitlement values (everything except the tier)."},"EntitlementOverridesUpdate":{"properties":{"max_deployments":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Deployments"},"max_seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Seats"},"log_retention_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Log Retention Days"},"priority_support":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Priority Support"},"byoc_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Byoc Enabled"},"max_unbilled_spend_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Unbilled Spend Cents"}},"additionalProperties":false,"type":"object","title":"EntitlementOverridesUpdate","description":"Partial overrides of tier entitlements. Only fields explicitly set are\nstored; the full body replaces the org's previous overrides. None means\nunlimited for the limit fields."},"FileSourceRequest":{"properties":{"file_id":{"type":"string","title":"File Id"},"container_name":{"type":"string","title":"Container Name"},"source_name":{"type":"string","title":"Source Name"},"build_path":{"type":"string","title":"Build Path","default":"."}},"type":"object","required":["file_id","container_name","source_name"],"title":"FileSourceRequest"},"FileUploadUrlRequest":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"content_type":{"type":"string","maxLength":255,"minLength":1,"title":"Content Type","default":"application/octet-stream"},"size":{"type":"integer","minimum":0.0,"title":"Size"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"}},"type":"object","required":["filename","size"],"title":"FileUploadUrlRequest","description":"Omit `file_id` for the first file; pass the returned one to add more."},"FileUploadUrlResponse":{"properties":{"url":{"type":"string","title":"Url"},"method":{"type":"string","title":"Method"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"file_id":{"type":"string","title":"File Id"}},"type":"object","required":["url","method","headers","file_id"],"title":"FileUploadUrlResponse"},"FilesUploadResponse":{"properties":{"file_id":{"type":"string","title":"File Id"}},"type":"object","required":["file_id"],"title":"FilesUploadResponse"},"GcpClaimedProjectInfo":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"name":{"type":"string","title":"Name"},"region":{"type":"string","title":"Region"},"deployer_sa_email":{"type":"string","title":"Deployer Sa Email"},"status":{"type":"string","title":"Status"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"delegated_zone_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delegated Zone Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Slug"}},"type":"object","required":["id","project_id","name","region","deployer_sa_email","status","created_at"],"title":"GcpClaimedProjectInfo","description":"A tenant project attached to an org, with the org's slug resolved."},"GcpCloudCreate":{"properties":{"name":{"type":"string","title":"Name","default":"My GCP Project"},"project_id":{"type":"string","title":"Project Id"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},"type":"object","required":["project_id"],"title":"GcpCloudCreate","description":"Stages a pending BYO project onboarded via the gcloud setup script.\nPlatform-hosted projects never come through here — the pool hands those\nout on first deployment."},"GcpCloudDetails":{"properties":{"provider":{"type":"string","const":"gcp","title":"Provider","default":"gcp"},"project_id":{"type":"string","title":"Project Id"},"deployer_sa_email":{"type":"string","title":"Deployer Sa Email"},"region":{"type":"string","title":"Region"},"owner_type":{"type":"string","title":"Owner Type"},"billing_dataset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Billing Dataset"}},"type":"object","required":["project_id","deployer_sa_email","region","owner_type"],"title":"GcpCloudDetails"},"GcpCloudOnboarding":{"properties":{"provider":{"type":"string","const":"gcp","title":"Provider","default":"gcp"},"status":{"type":"string","title":"Status"},"setup_script":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setup Script"},"setup_command":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Setup Command"},"platform_sa_email":{"type":"string","title":"Platform Sa Email"},"deployer_sa_email":{"type":"string","title":"Deployer Sa Email"}},"type":"object","required":["status","setup_script","setup_command","platform_sa_email","deployer_sa_email"],"title":"GcpCloudOnboarding"},"GcpCloudUpdate":{"properties":{"verify":{"type":"boolean","title":"Verify","default":false}},"type":"object","title":"GcpCloudUpdate"},"GcpPoolDrift":{"properties":{"untracked":{"items":{"type":"string"},"type":"array","title":"Untracked"},"missing":{"items":{"type":"string"},"type":"array","title":"Missing"}},"type":"object","required":["untracked","missing"],"title":"GcpPoolDrift","description":"Where GCP and the database disagree. `untracked` projects exist in the\ntenants folder with no row; `missing` rows point at projects that are gone.\nBoth hold or waste project quota."},"GcpPoolStatus":{"properties":{"claimable":{"type":"integer","title":"Claimable"},"target":{"type":"integer","title":"Target"},"projects":{"items":{"$ref":"#/components/schemas/GcpProjectInfo"},"type":"array","title":"Projects"},"claimed":{"items":{"$ref":"#/components/schemas/GcpClaimedProjectInfo"},"type":"array","title":"Claimed"}},"type":"object","required":["claimable","target","projects","claimed"],"title":"GcpPoolStatus","description":"Pool health. `claimable` is what actually gates a new org's first\ndeployment — anything below it is still being built or has failed.\n`claimed` rows are the allocated projects orgs currently hold."},"GcpPoolTopUpResult":{"properties":{"collected":{"type":"integer","title":"Collected"},"resumed":{"type":"integer","title":"Resumed"},"finalized":{"type":"integer","title":"Finalized"},"created":{"type":"integer","title":"Created"},"failed":{"type":"integer","title":"Failed"}},"type":"object","required":["collected","resumed","finalized","created","failed"],"title":"GcpPoolTopUpResult"},"GcpProjectInfo":{"properties":{"id":{"type":"string","title":"Id"},"project_id":{"type":"string","title":"Project Id"},"name":{"type":"string","title":"Name"},"region":{"type":"string","title":"Region"},"deployer_sa_email":{"type":"string","title":"Deployer Sa Email"},"status":{"type":"string","title":"Status"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"delegated_zone_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delegated Zone Name"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","project_id","name","region","deployer_sa_email","status","created_at"],"title":"GcpProjectInfo","description":"A tenant GCP project as the admin pool view shows it."},"GetFilesResponse":{"properties":{"files":{"additionalProperties":{"type":"string"},"type":"object","title":"Files"}},"type":"object","required":["files"],"title":"GetFilesResponse"},"GitSourceRequest":{"properties":{"container_name":{"type":"string","title":"Container Name"},"repo_url":{"type":"string","title":"Repo Url"},"build_path":{"type":"string","title":"Build Path","default":"."}},"type":"object","required":["container_name","repo_url"],"title":"GitSourceRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InfraDraftResponse":{"properties":{"schema":{"additionalProperties":true,"type":"object","title":"Schema"},"revision":{"type":"integer","title":"Revision"},"updated_by":{"anyOf":[{"$ref":"#/components/schemas/CommitAuthor"},{"type":"null"}]},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["schema","revision","updated_at"],"title":"InfraDraftResponse"},"InfraSchemaResponse":{"properties":{"schema":{"additionalProperties":true,"type":"object","title":"Schema"},"diff":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Diff"}},"type":"object","required":["schema"],"title":"InfraSchemaResponse"},"InstallationAccount":{"properties":{"login":{"type":"string","title":"Login"},"type":{"type":"string","title":"Type"},"avatar_url":{"type":"string","title":"Avatar Url"}},"type":"object","required":["login","type","avatar_url"],"title":"InstallationAccount"},"InstallationAccountInfo":{"properties":{"login":{"type":"string","title":"Login"},"installationId":{"type":"integer","title":"Installationid"}},"type":"object","required":["login","installationId"],"title":"InstallationAccountInfo"},"InstallationInfo":{"properties":{"id":{"type":"integer","title":"Id"},"account":{"$ref":"#/components/schemas/InstallationAccount"},"app_slug":{"type":"string","title":"App Slug"},"repository_selection":{"type":"string","title":"Repository Selection"}},"type":"object","required":["id","account","app_slug","repository_selection"],"title":"InstallationInfo"},"InstallationStatusResponse":{"properties":{"installed":{"type":"boolean","title":"Installed"},"authenticated":{"type":"boolean","title":"Authenticated"},"installationId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Installationid"},"accounts":{"anyOf":[{"items":{"$ref":"#/components/schemas/InstallationAccountInfo"},"type":"array"},{"type":"null"}],"title":"Accounts"},"hasOwnInstallation":{"type":"boolean","title":"Hasowninstallation","default":false},"permissions":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Permissions"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["installed","authenticated"],"title":"InstallationStatusResponse"},"InstallationUrlResponse":{"properties":{"url":{"type":"string","title":"Url"},"app_slug":{"type":"string","title":"App Slug"},"app_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Name"}},"type":"object","required":["url","app_slug"],"title":"InstallationUrlResponse"},"InstallationsResponse":{"properties":{"installations":{"items":{"$ref":"#/components/schemas/InstallationInfo"},"type":"array","title":"Installations"},"total_count":{"type":"integer","title":"Total Count"}},"type":"object","required":["installations","total_count"],"title":"InstallationsResponse"},"KubernetesCloudDetails":{"properties":{"is_default":{"type":"boolean","title":"Is Default","default":false},"routing":{"type":"string","enum":["ingress","gateway"],"title":"Routing","default":"ingress"},"ingress_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingress Class"},"tls_cluster_issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tls Cluster Issuer"},"tls_default":{"type":"boolean","title":"Tls Default","default":false},"gateway_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Name"},"gateway_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Namespace"},"gateway_listener":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Listener"},"gateway_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gateway Port"},"gateway_route_annotations":{"additionalProperties":{"type":"string"},"type":"object","title":"Gateway Route Annotations"},"namespace_template":{"type":"string","title":"Namespace Template","default":"{project}"},"ingress_annotations":{"additionalProperties":{"type":"string"},"type":"object","title":"Ingress Annotations"},"pod_security_profile":{"type":"string","enum":["restricted","baseline"],"title":"Pod Security Profile","default":"restricted"},"argocd_enabled":{"type":"boolean","title":"Argocd Enabled","default":false},"argocd_destination_server":{"type":"string","title":"Argocd Destination Server","default":"https://kubernetes.default.svc"},"argocd_app_namespace":{"type":"string","title":"Argocd App Namespace","default":"argocd"},"argocd_project":{"type":"string","title":"Argocd Project","default":"default"},"argocd_application_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Argocd Application Template"},"auto_domain_enabled":{"type":"boolean","title":"Auto Domain Enabled","default":false},"auto_domain_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Domain Zone"},"provider":{"type":"string","const":"kubernetes","title":"Provider","default":"kubernetes"},"argocd_repo_synced_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Argocd Repo Synced At"},"argocd_repo_state_digest":{"type":"string","title":"Argocd Repo State Digest","default":""}},"type":"object","title":"KubernetesCloudDetails"},"KubernetesCloudOnboarding":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"repo_url":{"type":"string","minLength":1,"format":"uri","title":"Repo Url"},"repo_credential_template_command":{"type":"string","title":"Repo Credential Template Command"},"bootstrap_yaml":{"type":"string","title":"Bootstrap Yaml"},"default_application_template":{"type":"string","title":"Default Application Template"},"provider":{"type":"string","const":"kubernetes","title":"Provider","default":"kubernetes"}},"type":"object","required":["enabled","repo_url","repo_credential_template_command","bootstrap_yaml","default_application_template"],"title":"KubernetesCloudOnboarding"},"KubernetesClusterCreate":{"properties":{"is_default":{"type":"boolean","title":"Is Default","default":false},"routing":{"type":"string","enum":["ingress","gateway"],"title":"Routing","default":"ingress"},"ingress_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingress Class"},"tls_cluster_issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tls Cluster Issuer"},"tls_default":{"type":"boolean","title":"Tls Default","default":false},"gateway_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Name"},"gateway_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Namespace"},"gateway_listener":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Listener"},"gateway_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gateway Port"},"gateway_route_annotations":{"additionalProperties":{"type":"string"},"type":"object","title":"Gateway Route Annotations"},"namespace_template":{"type":"string","title":"Namespace Template","default":"{project}"},"ingress_annotations":{"additionalProperties":{"type":"string"},"type":"object","title":"Ingress Annotations"},"pod_security_profile":{"type":"string","enum":["restricted","baseline"],"title":"Pod Security Profile","default":"restricted"},"argocd_enabled":{"type":"boolean","title":"Argocd Enabled","default":false},"argocd_destination_server":{"type":"string","title":"Argocd Destination Server","default":"https://kubernetes.default.svc"},"argocd_app_namespace":{"type":"string","title":"Argocd App Namespace","default":"argocd"},"argocd_project":{"type":"string","title":"Argocd Project","default":"default"},"argocd_application_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Argocd Application Template"},"auto_domain_enabled":{"type":"boolean","title":"Auto Domain Enabled","default":false},"auto_domain_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Domain Zone"},"name":{"type":"string","title":"Name"}},"type":"object","required":["name"],"title":"KubernetesClusterCreate"},"KubernetesClusterUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"routing":{"anyOf":[{"type":"string","enum":["ingress","gateway"]},{"type":"null"}],"title":"Routing"},"ingress_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ingress Class"},"tls_cluster_issuer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tls Cluster Issuer"},"tls_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Tls Default"},"gateway_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Name"},"gateway_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Namespace"},"gateway_listener":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gateway Listener"},"gateway_port":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gateway Port"},"gateway_route_annotations":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Gateway Route Annotations"},"namespace_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Namespace Template"},"ingress_annotations":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Ingress Annotations"},"pod_security_profile":{"anyOf":[{"type":"string","enum":["restricted","baseline"]},{"type":"null"}],"title":"Pod Security Profile"},"argocd_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Argocd Enabled"},"argocd_destination_server":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Argocd Destination Server"},"argocd_app_namespace":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Argocd App Namespace"},"argocd_project":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Argocd Project"},"argocd_application_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Argocd Application Template"},"auto_domain_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Domain Enabled"},"auto_domain_zone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auto Domain Zone"}},"type":"object","title":"KubernetesClusterUpdate","description":"All fields optional — `None` means leave unchanged.\n\nSending `ingress_annotations` replaces the whole dict.\n\n`argocd_application_template`: NULL or \"\" restores the built-in\ndefault; non-empty replaces it. Validated server-side before save."},"LogLine":{"properties":{"n":{"type":"integer","title":"N"},"t":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"T"},"text":{"type":"string","title":"Text"}},"type":"object","required":["n","text"],"title":"LogLine"},"ModifyRepoResponse":{"properties":{"status":{"type":"string","title":"Status"},"deploy_id":{"type":"string","title":"Deploy Id"}},"type":"object","required":["status","deploy_id"],"title":"ModifyRepoResponse"},"OfferProduct":{"properties":{"product_id":{"type":"string","title":"Product Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_free":{"type":"boolean","title":"Is Free","default":false},"is_recurring":{"type":"boolean","title":"Is Recurring","default":false},"recurring_interval":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recurring Interval"},"price_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Price Amount Cents"},"price_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Currency"},"is_archived":{"type":"boolean","title":"Is Archived","default":false}},"type":"object","required":["product_id"],"title":"OfferProduct","description":"Live Polar product data for an offer (None on the offer if it 404s)."},"OrgBillingOffers":{"properties":{"topups_enabled":{"type":"boolean","title":"Topups Enabled"},"offers":{"items":{"$ref":"#/components/schemas/OrgOffer"},"type":"array","title":"Offers"},"credit_usage":{"anyOf":[{"$ref":"#/components/schemas/CreditUsage"},{"type":"null"}]}},"type":"object","required":["topups_enabled","offers"],"title":"OrgBillingOffers","description":"What the org's own billing page needs beyond the balance: whether the\nstandard top-ups are available to it, and any custom products offered."},"OrgComponent":{"properties":{"id":{"type":"string","title":"Id"},"org_id":{"type":"string","title":"Org Id"},"schema_name":{"type":"string","title":"Schema Name"},"body":{"type":"string","title":"Body"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","org_id","schema_name","body","created_at","updated_at"],"title":"OrgComponent"},"OrgComponentCreate":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"OrgComponentCreate"},"OrgComponentUpdate":{"properties":{"body":{"type":"string","title":"Body"}},"type":"object","required":["body"],"title":"OrgComponentUpdate"},"OrgEntitlementsRead":{"properties":{"tier":{"type":"string","title":"Tier"},"defaults":{"$ref":"#/components/schemas/EntitlementFields"},"overrides":{"additionalProperties":true,"type":"object","title":"Overrides"},"effective":{"$ref":"#/components/schemas/EntitlementFields"}},"type":"object","required":["tier","defaults","overrides","effective"],"title":"OrgEntitlementsRead","description":"Everything an admin panel needs to render and edit an org's\nentitlements: the resolved tier, that tier's defaults, the currently\nstored overrides (only fields actually set), and the effective result."},"OrgOffer":{"properties":{"id":{"type":"string","title":"Id"},"org_id":{"type":"string","title":"Org Id"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"product":{"anyOf":[{"$ref":"#/components/schemas/OfferProduct"},{"type":"null"}]},"active":{"type":"boolean","title":"Active"}},"type":"object","required":["id","org_id","label","created_at","revoked_at","product","active"],"title":"OrgOffer"},"Organization":{"properties":{"id":{"type":"string","title":"Id"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["personal","org"],"title":"Type"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"role":{"anyOf":[{"type":"string","enum":["owner","member"]},{"type":"null"}],"title":"Role"},"member_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Member Count"},"can_have_members":{"type":"boolean","title":"Can Have Members","default":false},"can_be_deleted":{"type":"boolean","title":"Can Be Deleted","default":false}},"type":"object","required":["id","slug","name","type","created_at"],"title":"Organization"},"OrganizationAdminCreate":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"owner_user_id":{"type":"string","title":"Owner User Id"}},"type":"object","required":["name","owner_user_id"],"title":"OrganizationAdminCreate"},"OrganizationCreate":{"properties":{"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","required":["name"],"title":"OrganizationCreate"},"OrganizationInvite":{"properties":{"id":{"type":"string","title":"Id"},"org_id":{"type":"string","title":"Org Id"},"email":{"type":"string","title":"Email"},"role":{"type":"string","enum":["owner","member"],"title":"Role"},"token":{"type":"string","title":"Token"},"invited_by":{"type":"string","title":"Invited By"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","org_id","email","role","token","invited_by","created_at","expires_at"],"title":"OrganizationInvite"},"OrganizationInviteAccept":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"OrganizationInviteAccept"},"OrganizationInviteCreate":{"properties":{"email":{"type":"string","title":"Email"},"role":{"type":"string","enum":["owner","member"],"title":"Role","default":"member"}},"type":"object","required":["email"],"title":"OrganizationInviteCreate"},"OrganizationInvitePublic":{"properties":{"org_slug":{"type":"string","title":"Org Slug"},"org_name":{"type":"string","title":"Org Name"},"role":{"type":"string","enum":["owner","member"],"title":"Role"},"expires_at":{"type":"string","format":"date-time","title":"Expires At"}},"type":"object","required":["org_slug","org_name","role","expires_at"],"title":"OrganizationInvitePublic","description":"Token-fetched invite view, returned only to the rightful invitee.\n\nDeliberately omits the invitee email: the recipient knows their own\nemail, and never returning it means a leaked token cannot disclose\nPII to other authenticated users."},"OrganizationMember":{"properties":{"user_id":{"type":"string","title":"User Id"},"role":{"type":"string","enum":["owner","member"],"title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"user":{"$ref":"#/components/schemas/User"}},"type":"object","required":["user_id","role","created_at","user"],"title":"OrganizationMember"},"OrganizationMemberRoleUpdate":{"properties":{"role":{"type":"string","enum":["owner","member"],"title":"Role"}},"type":"object","required":["role"],"title":"OrganizationMemberRoleUpdate"},"OrganizationUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"}},"type":"object","title":"OrganizationUpdate"},"OutboxEmail":{"properties":{"id":{"type":"string","title":"Id"},"email_type":{"type":"string","title":"Email Type"},"recipients":{"items":{"$ref":"#/components/schemas/OutboxRecipient"},"type":"array","title":"Recipients"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"deployment_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Deployment Names"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"decided_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"}},"type":"object","required":["id","email_type","recipients","org_id","deployment_names","status","created_at","decided_by","decided_at"],"title":"OutboxEmail"},"OutboxRecipient":{"properties":{"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","required":["email"],"title":"OutboxRecipient"},"OutboxResponse":{"properties":{"auto_send":{"type":"boolean","title":"Auto Send"},"emails":{"items":{"$ref":"#/components/schemas/OutboxEmail"},"type":"array","title":"Emails"}},"type":"object","required":["auto_send","emails"],"title":"OutboxResponse"},"OverbillingUpdate":{"properties":{"overbilling_enabled":{"type":"boolean","title":"Overbilling Enabled"}},"type":"object","required":["overbilling_enabled"],"title":"OverbillingUpdate"},"OverviewCounters":{"properties":{"users_total":{"type":"integer","title":"Users Total"},"users_new_30d":{"type":"integer","title":"Users New 30D"},"orgs_total":{"type":"integer","title":"Orgs Total"},"orgs_team":{"type":"integer","title":"Orgs Team"},"orgs_personal":{"type":"integer","title":"Orgs Personal"},"deployments_total":{"type":"integer","title":"Deployments Total"},"deployments_active":{"type":"integer","title":"Deployments Active"},"deployments_paused":{"type":"integer","title":"Deployments Paused"},"deployments_deleting":{"type":"integer","title":"Deployments Deleting"}},"type":"object","required":["users_total","users_new_30d","orgs_total","orgs_team","orgs_personal","deployments_total","deployments_active","deployments_paused","deployments_deleting"],"title":"OverviewCounters","description":"Site-wide cardinality counts. Cheap aggregations only."},"OverviewSpend":{"properties":{"spend_month_to_date_cents":{"type":"integer","title":"Spend Month To Date Cents"},"spend_last_30d_cents":{"type":"integer","title":"Spend Last 30D Cents"},"deployments_with_cost":{"type":"integer","title":"Deployments With Cost"}},"type":"object","required":["spend_month_to_date_cents","spend_last_30d_cents","deployments_with_cost"],"title":"OverviewSpend","description":"Cost totals across the entire fleet, in cents."},"PendingPauseDeployment":{"properties":{"deployment_id":{"type":"string","title":"Deployment Id"},"deployment_name":{"type":"string","title":"Deployment Name"},"status":{"type":"string","title":"Status"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Slug"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"pause_pending_at":{"type":"string","format":"date-time","title":"Pause Pending At"},"owners":{"items":{"$ref":"#/components/schemas/CreditOrgOwner"},"type":"array","title":"Owners"}},"type":"object","required":["deployment_id","deployment_name","status","org_id","org_slug","org_name","pause_pending_at","owners"],"title":"PendingPauseDeployment"},"ProductIds":{"properties":{"creditTopUps":{"additionalProperties":{"type":"string"},"type":"object","title":"Credittopups"},"subscriptionTiers":{"additionalProperties":{"type":"string"},"type":"object","title":"Subscriptiontiers","default":{}}},"type":"object","required":["creditTopUps"],"title":"ProductIds"},"ProjectCreate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"aws_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aws Account Id"},"shared":{"type":"boolean","title":"Shared","default":false},"platform":{"type":"string","title":"Platform","default":"aws"},"org_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Slug"},"cluster_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cluster Id"},"gcp_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gcp Project Id"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"}},"type":"object","title":"ProjectCreate"},"ProxiedDomainCreate":{"properties":{"hostname":{"type":"string","title":"Hostname"}},"type":"object","required":["hostname"],"title":"ProxiedDomainCreate"},"ProxiedDomainResponse":{"properties":{"id":{"type":"string","title":"Id"},"hostname":{"type":"string","title":"Hostname"},"status":{"type":"string","title":"Status"},"kind":{"type":"string","const":"proxied","title":"Kind","default":"proxied"},"traffic_target":{"type":"string","title":"Traffic Target"},"delegation_target":{"type":"string","title":"Delegation Target"},"details":{"items":{"type":"string"},"type":"array","title":"Details","default":[]},"certificate_status":{"type":"string","enum":["pending","issuing","active","failed"],"title":"Certificate Status","default":"pending"},"deployment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deployment Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Verified At"}},"type":"object","required":["id","hostname","status","traffic_target","delegation_target","created_at"],"title":"ProxiedDomainResponse"},"ProxiedDomainsResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ProxiedDomainResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"ProxiedDomainsResponse"},"PutCanvasLayoutRequest":{"properties":{"nodes":{"additionalProperties":{"$ref":"#/components/schemas/CanvasLayoutNode-Input"},"propertyNames":{"maxLength":256,"minLength":1},"type":"object","maxProperties":500,"title":"Nodes"}},"type":"object","required":["nodes"],"title":"PutCanvasLayoutRequest"},"PutInfraDraftRequest":{"properties":{"schema":{"additionalProperties":true,"type":"object","title":"Schema"},"revision":{"type":"integer","title":"Revision"}},"type":"object","required":["schema","revision"],"title":"PutInfraDraftRequest"},"RebuildFileSourceRequest":{"properties":{"file_id":{"type":"string","title":"File Id"}},"type":"object","required":["file_id"],"title":"RebuildFileSourceRequest"},"RecentDeployment":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"org_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Id"},"org_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Org Name"},"owner_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Email"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","status","created_at"],"title":"RecentDeployment"},"RecentUser":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"},"role":{"type":"string","enum":["admin","user","beta","waitlisted"],"title":"Role"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","email","role","created_at"],"title":"RecentUser"},"RepoInfo":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"full_name":{"type":"string","title":"Full Name"},"private":{"type":"boolean","title":"Private"},"html_url":{"type":"string","title":"Html Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"updated_at":{"type":"string","title":"Updated At"},"language":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Language"},"default_branch":{"type":"string","title":"Default Branch"},"has_app_access":{"type":"boolean","title":"Has App Access"}},"type":"object","required":["id","name","full_name","private","html_url","updated_at","default_branch","has_app_access"],"title":"RepoInfo"},"ReposResponse":{"properties":{"repos":{"items":{"$ref":"#/components/schemas/RepoInfo"},"type":"array","title":"Repos"},"installed":{"type":"boolean","title":"Installed"}},"type":"object","required":["repos","installed"],"title":"ReposResponse"},"RunDetail":{"properties":{"id":{"type":"string","title":"Id"},"commit":{"type":"string","title":"Commit"},"commit_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Message"},"kind":{"type":"string","enum":["deploy","destroy"],"title":"Kind"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"title":"Status"},"engine":{"type":"string","enum":["weft","gitea_actions"],"title":"Engine"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"elapsed_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Elapsed Seconds"},"stages":{"items":{"$ref":"#/components/schemas/Stage"},"type":"array","title":"Stages","default":[]},"failure":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Failure"},"waiting_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waiting For"},"html_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Url"}},"type":"object","required":["id","commit","kind","status","engine","created_at"],"title":"RunDetail"},"RunLogs":{"properties":{"run":{"type":"string","title":"Run"},"stage":{"type":"string","title":"Stage"},"stage_status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled","skipped"],"title":"Stage Status"},"lines":{"items":{"$ref":"#/components/schemas/LogLine"},"type":"array","title":"Lines"},"first":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"First"},"last":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Last"},"total":{"type":"integer","title":"Total"},"more_before":{"type":"boolean","title":"More Before"},"more_after":{"type":"boolean","title":"More After"},"truncated":{"type":"boolean","title":"Truncated"},"finished":{"type":"boolean","title":"Finished"}},"type":"object","required":["run","stage","stage_status","lines","total","more_before","more_after","truncated","finished"],"title":"RunLogs"},"RunSummary":{"properties":{"id":{"type":"string","title":"Id"},"commit":{"type":"string","title":"Commit"},"commit_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Message"},"kind":{"type":"string","enum":["deploy","destroy"],"title":"Kind"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"title":"Status"},"engine":{"type":"string","enum":["weft","gitea_actions"],"title":"Engine"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"}},"type":"object","required":["id","commit","kind","status","engine","created_at"],"title":"RunSummary"},"RunWait":{"properties":{"id":{"type":"string","title":"Id"},"commit":{"type":"string","title":"Commit"},"commit_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commit Message"},"kind":{"type":"string","enum":["deploy","destroy"],"title":"Kind"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"title":"Status"},"engine":{"type":"string","enum":["weft","gitea_actions"],"title":"Engine"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"elapsed_seconds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Elapsed Seconds"},"stages":{"items":{"$ref":"#/components/schemas/Stage"},"type":"array","title":"Stages","default":[]},"failure":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Failure"},"waiting_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waiting For"},"html_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Url"},"finished":{"type":"boolean","title":"Finished"},"changed":{"type":"boolean","title":"Changed"}},"type":"object","required":["id","commit","kind","status","engine","created_at","finished","changed"],"title":"RunWait"},"RunsResponse":{"properties":{"runs":{"items":{"$ref":"#/components/schemas/RunSummary"},"type":"array","title":"Runs"}},"type":"object","required":["runs"],"title":"RunsResponse"},"SecurityCategoryDetailResponse":{"properties":{"name":{"type":"string","title":"Name"},"passed":{"type":"integer","title":"Passed"},"failed":{"type":"integer","title":"Failed"},"total":{"type":"integer","title":"Total"},"score":{"type":"number","title":"Score"},"checks":{"items":{"$ref":"#/components/schemas/SecurityCheckResponse"},"type":"array","title":"Checks"}},"type":"object","required":["name","passed","failed","total","score","checks"],"title":"SecurityCategoryDetailResponse"},"SecurityCategoryResponse":{"properties":{"name":{"type":"string","title":"Name"},"passed":{"type":"integer","title":"Passed"},"failed":{"type":"integer","title":"Failed"},"total":{"type":"integer","title":"Total"},"score":{"type":"number","title":"Score"}},"type":"object","required":["name","passed","failed","total","score"],"title":"SecurityCategoryResponse"},"SecurityCheckResponse":{"properties":{"check_id":{"type":"string","title":"Check Id"},"check_name":{"type":"string","title":"Check Name"},"resource":{"type":"string","title":"Resource"},"file_path":{"type":"string","title":"File Path"},"status":{"type":"string","enum":["passed","failed","skipped"],"title":"Status"},"guideline":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Guideline"}},"type":"object","required":["check_id","check_name","resource","file_path","status"],"title":"SecurityCheckResponse"},"SecurityPostureDetailResponse":{"properties":{"grade":{"type":"string","title":"Grade"},"score":{"type":"number","title":"Score"},"total_passed":{"type":"integer","title":"Total Passed"},"total_failed":{"type":"integer","title":"Total Failed"},"total_skipped":{"type":"integer","title":"Total Skipped"},"total_checks":{"type":"integer","title":"Total Checks"},"categories":{"items":{"$ref":"#/components/schemas/SecurityCategoryDetailResponse"},"type":"array","title":"Categories"},"scanned_at":{"type":"string","format":"date-time","title":"Scanned At"}},"type":"object","required":["grade","score","total_passed","total_failed","total_skipped","total_checks","categories","scanned_at"],"title":"SecurityPostureDetailResponse"},"SecurityPostureResponse":{"properties":{"grade":{"type":"string","title":"Grade"},"score":{"type":"number","title":"Score"},"total_passed":{"type":"integer","title":"Total Passed"},"total_failed":{"type":"integer","title":"Total Failed"},"total_skipped":{"type":"integer","title":"Total Skipped"},"total_checks":{"type":"integer","title":"Total Checks"},"categories":{"items":{"$ref":"#/components/schemas/SecurityCategoryResponse"},"type":"array","title":"Categories"},"scanned_at":{"type":"string","format":"date-time","title":"Scanned At"}},"type":"object","required":["grade","score","total_passed","total_failed","total_skipped","total_checks","categories","scanned_at"],"title":"SecurityPostureResponse"},"SetTopupsRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"SetTopupsRequest"},"SpawnedAwsAccountInfo":{"properties":{"id":{"type":"string","title":"Id"},"aws_account_id":{"type":"string","title":"Aws Account Id"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["id","aws_account_id","display_name"],"title":"SpawnedAwsAccountInfo"},"SpawnedDomainCreate":{"properties":{"subdomain":{"type":"string","title":"Subdomain"}},"type":"object","required":["subdomain"],"title":"SpawnedDomainCreate"},"SpawnedDomainResponse":{"properties":{"domain":{"type":"string","title":"Domain"}},"type":"object","required":["domain"],"title":"SpawnedDomainResponse"},"SpawnedHostnameResponse":{"properties":{"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"},"zone_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Zone Name"}},"type":"object","required":["hostname","zone_name"],"title":"SpawnedHostnameResponse","description":"Current spawned hostname for a deployment.\n\n`hostname` is null when the user hasn't claimed one. `zone_name` is\nnull when the shared spawned-domain singleton isn't configured (in\nwhich case the user can't claim a hostname yet); when set, it's the\nDNS zone any hostname must sit under (e.g. \"spawned.app\")."},"SpawnedHostnameUpdate":{"properties":{"hostname":{"type":"string","title":"Hostname"}},"type":"object","required":["hostname"],"title":"SpawnedHostnameUpdate"},"Stage":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled","skipped"],"title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"exit_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Exit Code"},"lines":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lines"}},"type":"object","required":["id","label","status"],"title":"Stage"},"StatsBaseline":{"properties":{"users":{"type":"integer","title":"Users"},"deployments":{"type":"integer","title":"Deployments"}},"type":"object","required":["users","deployments"],"title":"StatsBaseline","description":"Cumulative counts as of the day *before* the window starts. Lets the\nfrontend draw absolute running-total charts on top of the daily deltas."},"StatsSeriesPoint":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"new_users":{"type":"integer","title":"New Users"},"new_deployments":{"type":"integer","title":"New Deployments"},"spend_cents":{"type":"integer","title":"Spend Cents"},"new_users_with_deployment":{"type":"integer","title":"New Users With Deployment"}},"type":"object","required":["date","new_users","new_deployments","spend_cents","new_users_with_deployment"],"title":"StatsSeriesPoint","description":"One bucket of the daily time series."},"StatsTotals":{"properties":{"new_users":{"type":"integer","title":"New Users"},"new_deployments":{"type":"integer","title":"New Deployments"},"spend_cents":{"type":"integer","title":"Spend Cents"},"new_users_with_deployment":{"type":"integer","title":"New Users With Deployment"}},"type":"object","required":["new_users","new_deployments","spend_cents","new_users_with_deployment"],"title":"StatsTotals"},"SubscriptionStatus":{"properties":{"status":{"type":"string","enum":["none","free","tier","custom"],"title":"Status"},"tier":{"anyOf":[{"type":"string","enum":["developer","pro","scale"]},{"type":"null"}],"title":"Tier"},"product_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Product Id"},"upgradeable":{"type":"boolean","title":"Upgradeable","default":true}},"type":"object","required":["status"],"title":"SubscriptionStatus","description":"How the org's cached Polar subscription product classifies.\n\n- `none`: no cached product.\n- `free`: a free-credits grant product (the one-time signup credits, or\n  the legacy recurring Standard product) — upgradeable via checkout.\n- `tier`: one of the configured tier products; `tier` names it.\n- `custom`: any other product (per-org offer, enterprise deal).\n\n`upgradeable` says whether the plan can be changed self-serve (the\nfrontend renders contact-us when False, instead of branching on\n`status == \"custom\"`). Only `custom` plans can be non-upgradeable:\na paid custom contract or an admin-comped subscription is managed,\nwhile a free custom product (a $0 demo/license grant) upgrades via\ncheckout like the free grant does."},"TopSpender":{"properties":{"user_id":{"type":"string","title":"User Id"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"spend_cents":{"type":"integer","title":"Spend Cents"},"deployment_count":{"type":"integer","title":"Deployment Count"}},"type":"object","required":["user_id","spend_cents","deployment_count"],"title":"TopSpender"},"TreeEntry":{"properties":{"path":{"type":"string","title":"Path"},"type":{"type":"string","title":"Type"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"}},"type":"object","required":["path","type"],"title":"TreeEntry"},"TreeResponse":{"properties":{"entries":{"items":{"$ref":"#/components/schemas/TreeEntry"},"type":"array","title":"Entries"},"truncated":{"type":"boolean","title":"Truncated"}},"type":"object","required":["entries","truncated"],"title":"TreeResponse"},"UpdateSourceRequest":{"properties":{"build_path":{"type":"string","title":"Build Path"}},"type":"object","required":["build_path"],"title":"UpdateSourceRequest"},"User":{"properties":{"id":{"type":"string","title":"Id"},"email":{"type":"string","title":"Email"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"},"role":{"type":"string","enum":["admin","user","beta","waitlisted"],"title":"Role"},"auth0_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth0 Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"onboarding_completed":{"type":"boolean","title":"Onboarding Completed","default":false},"banned_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Banned At"}},"type":"object","required":["id","email","role","created_at"],"title":"User"},"UserUpdate":{"properties":{"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"role":{"anyOf":[{"type":"string","enum":["admin","user","beta","waitlisted"]},{"type":"null"}],"title":"Role"}},"type":"object","title":"UserUpdate"},"ValidateSchemaResponse":{"properties":{"valid":{"type":"boolean","title":"Valid"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"}},"type":"object","required":["valid","errors"],"title":"ValidateSchemaResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VersionHistory":{"properties":{"versions":{"items":{"$ref":"#/components/schemas/CommitVersion"},"type":"array","title":"Versions","default":[]}},"type":"object","title":"VersionHistory"},"WorkflowNodeInfo":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"group":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Group"},"status":{"type":"string","title":"Status"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"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"},"has_logs":{"type":"boolean","title":"Has Logs","default":false}},"type":"object","required":["id","label","status"],"title":"WorkflowNodeInfo","description":"One node of the pipeline graph.\n\n`group` boxes adjacent nodes together (the per-artifact builds); null for\nnodes that stand alone. Status and timings are rolled up from the underlying\nCI steps, which stay internal — step names are the CI engine's vocabulary, not ours,\nand putting them in the response would make them contract."},"WorkflowNodesResponse":{"properties":{"run_id":{"type":"string","title":"Run Id"},"nodes":{"items":{"$ref":"#/components/schemas/WorkflowNodeInfo"},"type":"array","title":"Nodes","default":[]}},"type":"object","required":["run_id"],"title":"WorkflowNodesResponse","description":"Pipeline graph for one workflow run, in execution order.\n\nEmpty when the run's commit predates the `spawned:` step annotations, or for\nplatforms that produce no workflow at all (Kubernetes)."},"WorkflowRunResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"conclusion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conclusion"},"html_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","status","created_at","updated_at"],"title":"WorkflowRunResponse"},"ZoneActionResult":{"properties":{"zone_name":{"type":"string","title":"Zone Name"},"action":{"type":"string","title":"Action"}},"type":"object","required":["zone_name","action"],"title":"ZoneActionResult"},"app__modules__admin__schemas__ActiveWorkflowsResponse":{"properties":{"workflows":{"items":{"$ref":"#/components/schemas/ActiveWorkflowRow"},"type":"array","title":"Workflows"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["workflows","total"],"title":"ActiveWorkflowsResponse"},"app__modules__deployments__schemas__ActiveWorkflowsResponse":{"properties":{"workflows":{"items":{"$ref":"#/components/schemas/ActiveWorkflowInfo"},"type":"array","title":"Workflows"}},"type":"object","required":["workflows"],"title":"ActiveWorkflowsResponse","description":"Response containing active workflows for a deployment."}}}}