{"openapi":"3.0.3","info":{"title":"Nouva Customer API","version":"1.0.0","description":"Stable customer API for Nouva projects and infrastructure resources."},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Nouva API token"}},"schemas":{}},"paths":{"/v1/projects":{"get":{"tags":["Projects"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":"string"},"serverId":{"type":"string","nullable":true},"runtimeProvider":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","organizationId","serverId","runtimeProvider","createdAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100}},"required":["name"],"additionalProperties":false}}}},"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":"string"},"serverId":{"type":"string","nullable":true},"runtimeProvider":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","organizationId","serverId","runtimeProvider","createdAt"],"additionalProperties":false}},"required":["project"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/projects/{projectId}":{"get":{"tags":["Projects"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":"string"},"serverId":{"type":"string","nullable":true},"runtimeProvider":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","organizationId","serverId","runtimeProvider","createdAt"],"additionalProperties":false}},"required":["project"],"additionalProperties":false}}}}}},"patch":{"tags":["Projects"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"project":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":"string"},"serverId":{"type":"string","nullable":true},"runtimeProvider":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}},"required":["id","name","organizationId","serverId","runtimeProvider","createdAt"],"additionalProperties":false}},"required":["project"],"additionalProperties":false}}}}}},"delete":{"tags":["Projects"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"enum":["null"],"nullable":true}}}}}}},"/v1/projects/{projectId}/environments":{"get":{"tags":["Environments"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","name","createdAt","updatedAt"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}}}},"post":{"tags":["Environments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":50}},"required":["name"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","name","createdAt","updatedAt"],"additionalProperties":false}},"required":["environment"],"additionalProperties":false}}}}}}},"/v1/projects/{projectId}/services":{"get":{"tags":["Services"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subdomain":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"replicaCount":{"type":"integer"},"variant":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"storageSizeGb":{"type":"integer","nullable":true},"tier":{"type":"string"},"cpuLimitMillicores":{"type":"integer"},"memoryLimitBytes":{"type":"string","nullable":true},"publicAccessEnabled":{"type":"boolean"},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environmentId","name","type","subdomain","appBuildType","replicaCount","variant","version","storageSizeGb","tier","cpuLimitMillicores","memoryLimitBytes","publicAccessEnabled","status","statusMessage","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}}}},"post":{"tags":["Services"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"appBuildConfig":{"type":"object","additionalProperties":{}},"appBuildType":{"type":"string","enum":["railpack","dockerfile","static"]},"branch":{"type":"string","minLength":1,"maxLength":255,"default":"main"},"envVars":{"type":"object","additionalProperties":{"type":"string"}},"installationId":{"type":"integer","exclusiveMinimum":true,"minimum":0},"mountPath":{"type":"string","minLength":1,"maxLength":255},"name":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"repoId":{"type":"integer","exclusiveMinimum":true,"minimum":0},"resourceLimits":{"type":"object","properties":{"cpuMillicores":{"type":"integer","exclusiveMinimum":true,"minimum":0},"memoryBytes":{"type":"integer","exclusiveMinimum":true,"minimum":0}},"additionalProperties":false,"nullable":true},"storageSizeGb":{"type":"integer","minimum":0,"maximum":500,"default":0},"tier":{"type":"string","enum":["App-0.5","App-1","App-2","App-4","App-8","App-16","App-32"]},"type":{"type":"string","enum":["app"]}},"required":["appBuildConfig","appBuildType","installationId","name","repoId","type"],"additionalProperties":false},{"type":"object","properties":{"appBuildConfig":{"type":"object","additionalProperties":{}},"appBuildType":{"type":"string","enum":["railpack","dockerfile"]},"branch":{"type":"string","minLength":1,"maxLength":255,"default":"main"},"envVars":{"type":"object","additionalProperties":{"type":"string"}},"healthCheckCommand":{"type":"string","maxLength":8000},"initialSchedule":{"type":"object","properties":{"command":{"type":"string","minLength":1,"maxLength":8000},"concurrencyPolicy":{"type":"string","enum":["forbid","allow"],"default":"forbid"},"cronExpression":{"type":"string","minLength":1,"maxLength":120},"timeoutSeconds":{"type":"integer","minimum":60,"maximum":86400,"default":1800},"timezone":{"type":"string","minLength":1,"maxLength":120,"default":"UTC"}},"required":["command","cronExpression"],"additionalProperties":false},"installationId":{"type":"integer","exclusiveMinimum":true,"minimum":0},"mountPath":{"type":"string","minLength":1,"maxLength":255},"name":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"replicaCount":{"type":"integer","minimum":0,"maximum":32,"default":1},"repoId":{"type":"integer","exclusiveMinimum":true,"minimum":0},"resourceLimits":{"type":"object","properties":{"cpuMillicores":{"type":"integer","exclusiveMinimum":true,"minimum":0},"memoryBytes":{"type":"integer","exclusiveMinimum":true,"minimum":0}},"additionalProperties":false,"nullable":true},"startCommand":{"type":"string","maxLength":8000},"storageSizeGb":{"type":"integer","minimum":0,"maximum":500,"default":0},"tier":{"type":"string","enum":["App-0.5","App-1","App-2","App-4","App-8","App-16","App-32"]},"type":{"type":"string","enum":["worker"]}},"required":["appBuildConfig","appBuildType","installationId","name","repoId","type"],"additionalProperties":false}]}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deployment":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"sourceDeploymentId":{"type":"string","nullable":true},"replacedByDeploymentId":{"type":"string","nullable":true},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"detectedLanguage":{"type":"string","nullable":true},"detectedFramework":{"type":"string","nullable":true},"languageVersion":{"type":"string","nullable":true},"buildDurationMs":{"type":"integer","nullable":true},"supersededAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","sourceDeploymentId","replacedByDeploymentId","status","statusMessage","appBuildType","detectedLanguage","detectedFramework","languageVersion","buildDurationMs","supersededAt","createdAt"],"additionalProperties":false},"service":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subdomain":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"replicaCount":{"type":"integer"},"variant":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"storageSizeGb":{"type":"integer","nullable":true},"tier":{"type":"string"},"cpuLimitMillicores":{"type":"integer"},"memoryLimitBytes":{"type":"string","nullable":true},"publicAccessEnabled":{"type":"boolean"},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environmentId","name","type","subdomain","appBuildType","replicaCount","variant","version","storageSizeGb","tier","cpuLimitMillicores","memoryLimitBytes","publicAccessEnabled","status","statusMessage","createdAt","updatedAt"],"additionalProperties":false}},"required":["deployment","service"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}":{"get":{"tags":["Services"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subdomain":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"replicaCount":{"type":"integer"},"variant":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"storageSizeGb":{"type":"integer","nullable":true},"tier":{"type":"string"},"cpuLimitMillicores":{"type":"integer"},"memoryLimitBytes":{"type":"string","nullable":true},"publicAccessEnabled":{"type":"boolean"},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environmentId","name","type","subdomain","appBuildType","replicaCount","variant","version","storageSizeGb","tier","cpuLimitMillicores","memoryLimitBytes","publicAccessEnabled","status","statusMessage","createdAt","updatedAt"],"additionalProperties":false}},"required":["service"],"additionalProperties":false}}}}}},"patch":{"tags":["Services"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"appBuildConfig":{"type":"object","additionalProperties":{}},"appBuildType":{"type":"string","enum":["railpack","dockerfile","static"]},"branch":{"type":"string","minLength":1,"maxLength":255},"envVars":{"type":"object","additionalProperties":{"type":"string"}},"healthCheckCommand":{"type":"string","maxLength":8000},"name":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"resourceLimits":{"type":"object","properties":{"cpuMillicores":{"type":"integer","exclusiveMinimum":true,"minimum":0},"memoryBytes":{"type":"integer","exclusiveMinimum":true,"minimum":0}},"additionalProperties":false,"nullable":true},"startCommand":{"type":"string","maxLength":8000},"tier":{"type":"string","enum":["App-0.5","App-1","App-2","App-4","App-8","App-16","App-32"]}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"service":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subdomain":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"replicaCount":{"type":"integer"},"variant":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"storageSizeGb":{"type":"integer","nullable":true},"tier":{"type":"string"},"cpuLimitMillicores":{"type":"integer"},"memoryLimitBytes":{"type":"string","nullable":true},"publicAccessEnabled":{"type":"boolean"},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environmentId","name","type","subdomain","appBuildType","replicaCount","variant","version","storageSizeGb","tier","cpuLimitMillicores","memoryLimitBytes","publicAccessEnabled","status","statusMessage","createdAt","updatedAt"],"additionalProperties":false}},"required":["service"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}/deployments":{"get":{"tags":["Deployments"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"sourceDeploymentId":{"type":"string","nullable":true},"replacedByDeploymentId":{"type":"string","nullable":true},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"detectedLanguage":{"type":"string","nullable":true},"detectedFramework":{"type":"string","nullable":true},"languageVersion":{"type":"string","nullable":true},"buildDurationMs":{"type":"integer","nullable":true},"supersededAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","sourceDeploymentId","replacedByDeploymentId","status","statusMessage","appBuildType","detectedLanguage","detectedFramework","languageVersion","buildDurationMs","supersededAt","createdAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}}}},"post":{"tags":["Deployments"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sourceDeploymentId":{"type":"string","minLength":1}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deployment":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"sourceDeploymentId":{"type":"string","nullable":true},"replacedByDeploymentId":{"type":"string","nullable":true},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"detectedLanguage":{"type":"string","nullable":true},"detectedFramework":{"type":"string","nullable":true},"languageVersion":{"type":"string","nullable":true},"buildDurationMs":{"type":"integer","nullable":true},"supersededAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","sourceDeploymentId","replacedByDeploymentId","status","statusMessage","appBuildType","detectedLanguage","detectedFramework","languageVersion","buildDurationMs","supersededAt","createdAt"],"additionalProperties":false}},"required":["deployment"],"additionalProperties":false}}}}}}},"/v1/deployments/{deploymentId}":{"get":{"tags":["Deployments"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"deploymentId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deployment":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"sourceDeploymentId":{"type":"string","nullable":true},"replacedByDeploymentId":{"type":"string","nullable":true},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"detectedLanguage":{"type":"string","nullable":true},"detectedFramework":{"type":"string","nullable":true},"languageVersion":{"type":"string","nullable":true},"buildDurationMs":{"type":"integer","nullable":true},"supersededAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","sourceDeploymentId","replacedByDeploymentId","status","statusMessage","appBuildType","detectedLanguage","detectedFramework","languageVersion","buildDurationMs","supersededAt","createdAt"],"additionalProperties":false}},"required":["deployment"],"additionalProperties":false}}}}}}},"/v1/projects/{projectId}/volumes":{"get":{"tags":["Volumes"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"serviceId":{"type":"string","nullable":true},"projectId":{"type":"string"},"environmentId":{"type":"string"},"backend":{"type":"string"},"mountPath":{"type":"string"},"sizeGb":{"type":"integer"},"usedBytes":{"type":"string","nullable":true},"usageRefreshedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","serviceId","projectId","environmentId","backend","mountPath","sizeGb","usedBytes","usageRefreshedAt","status","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/volumes/{volumeId}":{"get":{"tags":["Volumes"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"volumeId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"volume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"serviceId":{"type":"string","nullable":true},"projectId":{"type":"string"},"environmentId":{"type":"string"},"backend":{"type":"string"},"mountPath":{"type":"string"},"sizeGb":{"type":"integer"},"usedBytes":{"type":"string","nullable":true},"usageRefreshedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","serviceId","projectId","environmentId","backend","mountPath","sizeGb","usedBytes","usageRefreshedAt","status","createdAt","updatedAt"],"additionalProperties":false}},"required":["volume"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Volumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60,"pattern":"^[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9]$|^[A-Za-z0-9]$"}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"volumeId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"volume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"serviceId":{"type":"string","nullable":true},"projectId":{"type":"string"},"environmentId":{"type":"string"},"backend":{"type":"string"},"mountPath":{"type":"string"},"sizeGb":{"type":"integer"},"usedBytes":{"type":"string","nullable":true},"usageRefreshedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","serviceId","projectId","environmentId","backend","mountPath","sizeGb","usedBytes","usageRefreshedAt","status","createdAt","updatedAt"],"additionalProperties":false}},"required":["volume"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Volumes"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"volumeId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["deletion_queued"]},"volumeId":{"type":"string"}},"required":["status","volumeId"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/volumes/{volumeId}/backups":{"get":{"tags":["Backups"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"volumeId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"volumeId":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"scheduleType":{"type":"string","nullable":true},"kind":{"type":"string"},"engine":{"type":"string"},"status":{"type":"string"},"locked":{"type":"boolean"},"sizeBytes":{"type":"string","nullable":true},"incrementalBytes":{"type":"string","nullable":true},"verifiedAt":{"type":"string","format":"date-time","nullable":true},"verificationError":{"type":"string","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","volumeId","projectId","environmentId","name","scheduleType","kind","engine","status","locked","sizeBytes","incrementalBytes","verifiedAt","verificationError","completedAt","createdAt","updatedAt","deletedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/backups/{backupId}":{"get":{"tags":["Backups"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"backupId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"backup":{"type":"object","properties":{"id":{"type":"string"},"volumeId":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"scheduleType":{"type":"string","nullable":true},"kind":{"type":"string"},"engine":{"type":"string"},"status":{"type":"string"},"locked":{"type":"boolean"},"sizeBytes":{"type":"string","nullable":true},"incrementalBytes":{"type":"string","nullable":true},"verifiedAt":{"type":"string","format":"date-time","nullable":true},"verificationError":{"type":"string","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","volumeId","projectId","environmentId","name","scheduleType","kind","engine","status","locked","sizeBytes","incrementalBytes","verifiedAt","verificationError","completedAt","createdAt","updatedAt","deletedAt"],"additionalProperties":false}},"required":["backup"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Backups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"locked":{"type":"boolean"}},"required":["locked"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"backupId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"backup":{"type":"object","properties":{"id":{"type":"string"},"volumeId":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"scheduleType":{"type":"string","nullable":true},"kind":{"type":"string"},"engine":{"type":"string"},"status":{"type":"string"},"locked":{"type":"boolean"},"sizeBytes":{"type":"string","nullable":true},"incrementalBytes":{"type":"string","nullable":true},"verifiedAt":{"type":"string","format":"date-time","nullable":true},"verificationError":{"type":"string","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","volumeId","projectId","environmentId","name","scheduleType","kind","engine","status","locked","sizeBytes","incrementalBytes","verifiedAt","verificationError","completedAt","createdAt","updatedAt","deletedAt"],"additionalProperties":false}},"required":["backup"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Backups"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"backupId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"backup":{"type":"object","properties":{"id":{"type":"string"},"volumeId":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"scheduleType":{"type":"string","nullable":true},"kind":{"type":"string"},"engine":{"type":"string"},"status":{"type":"string"},"locked":{"type":"boolean"},"sizeBytes":{"type":"string","nullable":true},"incrementalBytes":{"type":"string","nullable":true},"verifiedAt":{"type":"string","format":"date-time","nullable":true},"verificationError":{"type":"string","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","volumeId","projectId","environmentId","name","scheduleType","kind","engine","status","locked","sizeBytes","incrementalBytes","verifiedAt","verificationError","completedAt","createdAt","updatedAt","deletedAt"],"additionalProperties":false}},"required":["backup"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}/domains":{"get":{"tags":["Domains"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"domain":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","domain","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Domains"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","minLength":1,"maxLength":253}},"required":["domain"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"domain":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","domain","createdAt","updatedAt"],"additionalProperties":false}},"required":["domain"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/projects/{projectId}/buckets":{"get":{"tags":["Buckets"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"accessMode":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","name","accessMode","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Buckets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"accessMode":{"type":"string","enum":["private","public"],"default":"private"},"name":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9][a-z0-9-]*[a-z0-9]$|^[a-z0-9]$"},"regionKey":{"type":"string","minLength":1,"maxLength":120}},"required":["name","regionKey"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"bucket":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"accessMode":{"type":"string","enum":["private","public"]},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","name","accessMode","createdAt","updatedAt"],"additionalProperties":false}},"required":["bucket"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/buckets/{bucketId}":{"get":{"tags":["Buckets"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"bucketId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"bucket":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"accessMode":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","name","accessMode","createdAt","updatedAt"],"additionalProperties":false},"instances":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"bucketId":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"publicBaseUrl":{"type":"string","nullable":true},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"sizeBytes":{"type":"string","nullable":true},"objectCount":{"type":"string","nullable":true},"usageRefreshedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","bucketId","projectId","environmentId","publicBaseUrl","status","statusMessage","sizeBytes","objectCount","usageRefreshedAt","createdAt","updatedAt"],"additionalProperties":false}}},"required":["bucket","instances"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Buckets"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"bucketId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"bucketId":{"type":"string"},"status":{"type":"string","enum":["queued"]}},"required":["bucketId","status"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/servers":{"get":{"tags":["Servers"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"runtimeProvider":{"type":"string"},"operatingSystem":{"type":"string","nullable":true},"architecture":{"type":"string","nullable":true},"dockerVersion":{"type":"string","nullable":true},"agentVersion":{"type":"string","nullable":true},"cpuCores":{"type":"integer","nullable":true},"memoryBytes":{"type":"string","nullable":true},"diskBytesAvailable":{"type":"string","nullable":true},"diskTotalBytes":{"type":"string","nullable":true},"lastHeartbeatAt":{"type":"string","format":"date-time","nullable":true},"registeredAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","status","runtimeProvider","operatingSystem","architecture","dockerVersion","agentVersion","cpuCores","memoryBytes","diskBytesAvailable","diskTotalBytes","lastHeartbeatAt","registeredAt","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/servers/{serverId}":{"get":{"tags":["Servers"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serverId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"server":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"runtimeProvider":{"type":"string"},"operatingSystem":{"type":"string","nullable":true},"architecture":{"type":"string","nullable":true},"dockerVersion":{"type":"string","nullable":true},"agentVersion":{"type":"string","nullable":true},"cpuCores":{"type":"integer","nullable":true},"memoryBytes":{"type":"string","nullable":true},"diskBytesAvailable":{"type":"string","nullable":true},"diskTotalBytes":{"type":"string","nullable":true},"lastHeartbeatAt":{"type":"string","format":"date-time","nullable":true},"registeredAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","status","runtimeProvider","operatingSystem","architecture","dockerVersion","agentVersion","cpuCores","memoryBytes","diskBytesAvailable","diskTotalBytes","lastHeartbeatAt","registeredAt","createdAt","updatedAt"],"additionalProperties":false}},"required":["server"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/servers/{serverId}/health":{"get":{"tags":["Servers"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serverId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"status":{"type":"string"},"ready":{"type":"boolean"},"lastHeartbeatAt":{"type":"string","format":"date-time","nullable":true}},"required":["serverId","status","ready","lastHeartbeatAt"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/servers/{serverId}/capabilities":{"get":{"tags":["Servers"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serverId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serverId":{"type":"string"},"capabilities":{"type":"object","properties":{"appVolumeRolloutV1":{"type":"boolean"},"backupIntegrityV1":{"type":"boolean"},"managedVolumeCapacityV1":{"type":"boolean"},"observability":{"type":"boolean"},"workerServicesV1":{"type":"boolean"},"workerVolumeRolloutV1":{"type":"boolean"}},"required":["appVolumeRolloutV1","backupIntegrityV1","managedVolumeCapacityV1","observability","workerServicesV1","workerVolumeRolloutV1"],"additionalProperties":false}},"required":["serverId","capabilities"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}/backups":{"post":{"tags":["Backups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"backup":{"type":"object","properties":{"id":{"type":"string"},"volumeId":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"scheduleType":{"type":"string","nullable":true},"kind":{"type":"string"},"engine":{"type":"string"},"status":{"type":"string"},"locked":{"type":"boolean"},"sizeBytes":{"type":"string","nullable":true},"incrementalBytes":{"type":"string","nullable":true},"verifiedAt":{"type":"string","format":"date-time","nullable":true},"verificationError":{"type":"string","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"deletedAt":{"type":"string","format":"date-time","nullable":true}},"required":["id","volumeId","projectId","environmentId","name","scheduleType","kind","engine","status","locked","sizeBytes","incrementalBytes","verifiedAt","verificationError","completedAt","createdAt","updatedAt","deletedAt"],"additionalProperties":false}},"required":["backup"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}/backups/schedule":{"get":{"tags":["Backups"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schedule":{"type":"object","properties":{"volumeId":{"type":"string","nullable":true},"schedules":{"type":"object","properties":{"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"lastRunAt":{"type":"string","format":"date-time","nullable":true}},"required":["enabled","lastRunAt"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"lastRunAt":{"type":"string","format":"date-time","nullable":true}},"required":["enabled","lastRunAt"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"lastRunAt":{"type":"string","format":"date-time","nullable":true}},"required":["enabled","lastRunAt"],"additionalProperties":false}},"required":["daily","weekly","monthly"],"additionalProperties":false}},"required":["volumeId","schedules"],"additionalProperties":false}},"required":["schedule"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"patch":{"tags":["Backups"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"enabled":{"type":"object","properties":{"daily":{"type":"boolean"},"weekly":{"type":"boolean"},"monthly":{"type":"boolean"}},"required":["daily","weekly","monthly"],"additionalProperties":false}},"required":["enabled"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schedule":{"type":"object","properties":{"volumeId":{"type":"string","nullable":true},"schedules":{"type":"object","properties":{"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"lastRunAt":{"type":"string","format":"date-time","nullable":true}},"required":["enabled","lastRunAt"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"lastRunAt":{"type":"string","format":"date-time","nullable":true}},"required":["enabled","lastRunAt"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"lastRunAt":{"type":"string","format":"date-time","nullable":true}},"required":["enabled","lastRunAt"],"additionalProperties":false}},"required":["daily","weekly","monthly"],"additionalProperties":false}},"required":["volumeId","schedules"],"additionalProperties":false}},"required":["schedule"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/backups/{backupId}/actions/restore":{"post":{"tags":["Backups"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"backupId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"backupId":{"type":"string"},"pendingVolumeId":{"type":"string"},"status":{"type":"string","enum":["queued"]}},"required":["backupId","pendingVolumeId","status"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}/actions/apply-restore":{"post":{"tags":["Backups"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string"},"status":{"type":"string","enum":["queued"]}},"required":["serviceId","status"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/buckets/{bucketId}/objects":{"get":{"tags":["Buckets"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"cursor","required":false},{"schema":{"type":"string","minLength":1},"in":"query","name":"environmentId","required":true},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","maxLength":1024},"in":"query","name":"prefix","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"bucketId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"hasMore":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"etag":{"type":"string","nullable":true},"isFolderMarker":{"type":"boolean"},"key":{"type":"string"},"lastModified":{"type":"string","format":"date-time","nullable":true},"name":{"type":"string"},"size":{"type":"integer","minimum":0}},"required":["etag","isFolderMarker","key","lastModified","name","size"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"prefixes":{"type":"array","items":{"type":"string"}}},"required":["hasMore","items","nextCursor","prefixes"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Buckets"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"environmentId":{"type":"string","minLength":1},"keys":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1024},"maxItems":100,"default":[]},"prefixes":{"type":"array","items":{"type":"string","minLength":1,"maxLength":1024},"maxItems":100,"default":[]}},"required":["environmentId"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"bucketId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"enum":["null"],"nullable":true}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/buckets/{bucketId}/objects/download-url":{"get":{"tags":["Buckets"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"query","name":"environmentId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":1024},"in":"query","name":"key","required":true},{"schema":{"type":"string","minLength":1},"in":"path","name":"bucketId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"download":{"type":"object","properties":{"mode":{"type":"string","enum":["public","signed"]},"url":{"type":"string","format":"uri"}},"required":["mode","url"],"additionalProperties":false}},"required":["download"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/projects/{projectId}/databases":{"get":{"tags":["Databases"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"hasMore":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subdomain":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"replicaCount":{"type":"integer"},"variant":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"storageSizeGb":{"type":"integer","nullable":true},"tier":{"type":"string"},"cpuLimitMillicores":{"type":"integer"},"memoryLimitBytes":{"type":"string","nullable":true},"publicAccessEnabled":{"type":"boolean"},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environmentId","name","type","subdomain","appBuildType","replicaCount","variant","version","storageSizeGb","tier","cpuLimitMillicores","memoryLimitBytes","publicAccessEnabled","status","statusMessage","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true}},"required":["hasMore","items","nextCursor"],"additionalProperties":false}}}}}},"post":{"tags":["Databases"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":40,"pattern":"^[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$"},"publicAccessEnabled":{"type":"boolean","default":false},"resourceLimits":{"type":"object","properties":{"cpuMillicores":{"type":"integer","exclusiveMinimum":true,"minimum":0},"memoryBytes":{"type":"integer","exclusiveMinimum":true,"minimum":0}},"additionalProperties":false,"nullable":true},"storageSizeGb":{"type":"integer","minimum":1,"maximum":500,"default":1},"tier":{"type":"string","enum":["PG-1","PG-2","PG-4","PG-8","PG-16","PG-32","PG-64","Mongo-1","Mongo-2","Mongo-4","Mongo-8","Mongo-16","Mongo-32","Mongo-64","MySQL-1","MySQL-2","MySQL-4","MySQL-8","MySQL-16","MySQL-32","MySQL-64","Redis-0.25","Redis-0.5","Redis-1","Redis-2","Redis-4","Redis-8","Redis-16","Redis-32","Redis-64"]},"variant":{"type":"string","enum":["postgres","mongodb","redis","mysql"]},"version":{"type":"string","minLength":1,"maxLength":64}},"required":["name","variant"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"projectId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"database":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subdomain":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"replicaCount":{"type":"integer"},"variant":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"storageSizeGb":{"type":"integer","nullable":true},"tier":{"type":"string"},"cpuLimitMillicores":{"type":"integer"},"memoryLimitBytes":{"type":"string","nullable":true},"publicAccessEnabled":{"type":"boolean"},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environmentId","name","type","subdomain","appBuildType","replicaCount","variant","version","storageSizeGb","tier","cpuLimitMillicores","memoryLimitBytes","publicAccessEnabled","status","statusMessage","createdAt","updatedAt"],"additionalProperties":false}},"required":["database"],"additionalProperties":false}}}}}}},"/v1/databases/{serviceId}":{"get":{"tags":["Databases"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"database":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subdomain":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"replicaCount":{"type":"integer"},"variant":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"storageSizeGb":{"type":"integer","nullable":true},"tier":{"type":"string"},"cpuLimitMillicores":{"type":"integer"},"memoryLimitBytes":{"type":"string","nullable":true},"publicAccessEnabled":{"type":"boolean"},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environmentId","name","type","subdomain","appBuildType","replicaCount","variant","version","storageSizeGb","tier","cpuLimitMillicores","memoryLimitBytes","publicAccessEnabled","status","statusMessage","createdAt","updatedAt"],"additionalProperties":false}},"required":["database"],"additionalProperties":false}}}}}},"patch":{"tags":["Databases"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"envVars":{"type":"object","additionalProperties":{"type":"string"}},"publicAccessEnabled":{"type":"boolean"},"resourceLimits":{"type":"object","properties":{"cpuMillicores":{"type":"integer","exclusiveMinimum":true,"minimum":0},"memoryBytes":{"type":"integer","exclusiveMinimum":true,"minimum":0}},"additionalProperties":false,"nullable":true}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"database":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"environmentId":{"type":"string"},"name":{"type":"string"},"type":{"type":"string"},"subdomain":{"type":"string","nullable":true},"appBuildType":{"type":"string","nullable":true},"replicaCount":{"type":"integer"},"variant":{"type":"string","nullable":true},"version":{"type":"string","nullable":true},"storageSizeGb":{"type":"integer","nullable":true},"tier":{"type":"string"},"cpuLimitMillicores":{"type":"integer"},"memoryLimitBytes":{"type":"string","nullable":true},"publicAccessEnabled":{"type":"boolean"},"status":{"type":"string"},"statusMessage":{"type":"string","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","projectId","environmentId","name","type","subdomain","appBuildType","replicaCount","variant","version","storageSizeGb","tier","cpuLimitMillicores","memoryLimitBytes","publicAccessEnabled","status","statusMessage","createdAt","updatedAt"],"additionalProperties":false}},"required":["database"],"additionalProperties":false}}}}}}},"/v1/databases/{serviceId}/actions/restart":{"post":{"tags":["Databases"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"databaseId":{"type":"string"}},"required":["databaseId"],"additionalProperties":false}}}}}}},"/v1/databases/{serviceId}/actions/retry-provision":{"post":{"tags":["Databases"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"databaseId":{"type":"string"}},"required":["databaseId"],"additionalProperties":false}}}}}}},"/v1/databases/{serviceId}/actions/postgres-pitr":{"post":{"tags":["Databases"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"restoreTarget":{"type":"string","format":"date-time"}},"required":["restoreTarget"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"workId":{"type":"string"}},"required":["workId"],"additionalProperties":false}}}}}}},"/v1/deployments/{deploymentId}/actions/restart":{"post":{"tags":["Deployments"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"deploymentId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deploymentId":{"type":"string"}},"required":["deploymentId"],"additionalProperties":false}}}}}}},"/v1/deployments/{deploymentId}/actions/rollback":{"post":{"tags":["Deployments"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"deploymentId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"deploymentId":{"type":"string"},"sourceDeploymentId":{"type":"string"}},"required":["deploymentId","sourceDeploymentId"],"additionalProperties":false}}}}}}},"/v1/deployments/{deploymentId}/logs/build":{"get":{"tags":["Logs"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"deploymentId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"exitCode":{"type":"integer","nullable":true},"message":{"type":"string"},"percent":{"type":"integer","minimum":0,"maximum":100,"nullable":true},"severity":{"type":"string","enum":["error","warning","success","info","debug"]},"stage":{"type":"string","enum":["cloning","analyzing","building","pushing","deploying"],"nullable":true},"success":{"type":"boolean","nullable":true},"timestamp":{"type":"string","format":"date-time"},"type":{"type":"string","enum":["stdout","stderr","progress","exit"]}},"required":["exitCode","message","percent","severity","stage","success","timestamp","type"],"additionalProperties":false}}},"required":["available","items"],"additionalProperties":false}}}}}}},"/v1/deployments/{deploymentId}/logs/runtime":{"get":{"tags":["Logs"],"parameters":[{"schema":{"type":"string","nullable":true},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":500,"default":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","enum":["initial","older"],"default":"initial"},"in":"query","name":"mode","required":false},{"schema":{"type":"string","enum":["stdout","stderr","all"],"default":"all"},"in":"query","name":"type","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"deploymentId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"hasMore":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"message":{"type":"string"},"severity":{"type":"string","enum":["error","warning","success","info","debug"]},"stream":{"type":"string","enum":["stdout","stderr"]},"timestamp":{"type":"string","format":"date-time"}},"required":["id","message","severity","stream","timestamp"],"additionalProperties":false}},"message":{"type":"string","nullable":true},"nextCursor":{"type":"string","nullable":true}},"required":["available","hasMore","items","message","nextCursor"],"additionalProperties":false}}}}}}},"/v1/volumes/{volumeId}/actions/increase-reservation":{"post":{"tags":["Volumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reservationGb":{"type":"integer","minimum":1,"maximum":500}},"required":["reservationGb"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"volumeId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"volume":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"serviceId":{"type":"string","nullable":true},"projectId":{"type":"string"},"environmentId":{"type":"string"},"backend":{"type":"string"},"mountPath":{"type":"string"},"sizeGb":{"type":"integer"},"usedBytes":{"type":"string","nullable":true},"usageRefreshedAt":{"type":"string","format":"date-time","nullable":true},"status":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","name","serviceId","projectId","environmentId","backend","mountPath","sizeGb","usedBytes","usageRefreshedAt","status","createdAt","updatedAt"],"additionalProperties":false}},"required":["volume"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/volumes/{volumeId}/actions/attach":{"post":{"tags":["Volumes"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"mountPath":{"type":"string","minLength":1,"maxLength":255},"serviceId":{"type":"string","minLength":1}},"required":["serviceId"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"volumeId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"attachment":{"type":"object","properties":{"serviceId":{"type":"string"},"status":{"type":"string","enum":["staged"]},"volumeId":{"type":"string"}},"required":["serviceId","status","volumeId"],"additionalProperties":false}},"required":["attachment"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}/domains/{domainId}":{"delete":{"tags":["Domains"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"domainId","required":true},{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"domainId":{"type":"string"},"serviceId":{"type":"string"},"status":{"type":"string","enum":["removal_queued"]}},"required":["domainId","serviceId","status"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}/schedules":{"get":{"tags":["Worker schedules"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"cronExpression":{"type":"string"},"timezone":{"type":"string"},"timeoutSeconds":{"type":"integer"},"concurrencyPolicy":{"type":"string"},"nextRunAt":{"type":"string","format":"date-time"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","cronExpression","timezone","timeoutSeconds","concurrencyPolicy","nextRunAt","enabled","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Worker schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cronExpression":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":120,"default":"UTC"},"command":{"type":"string","minLength":1,"maxLength":8000},"timeoutSeconds":{"type":"integer","minimum":60,"maximum":86400,"default":1800},"concurrencyPolicy":{"type":"string","enum":["forbid","allow"],"default":"forbid"}},"required":["cronExpression","command"],"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schedule":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"cronExpression":{"type":"string"},"timezone":{"type":"string"},"timeoutSeconds":{"type":"integer"},"concurrencyPolicy":{"type":"string"},"nextRunAt":{"type":"string","format":"date-time"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","cronExpression","timezone","timeoutSeconds","concurrencyPolicy","nextRunAt","enabled","createdAt","updatedAt"],"additionalProperties":false}},"required":["schedule"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/schedules/{scheduleId}":{"patch":{"tags":["Worker schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cronExpression":{"type":"string","minLength":1,"maxLength":120},"timezone":{"type":"string","minLength":1,"maxLength":120},"command":{"type":"string","minLength":1,"maxLength":8000},"timeoutSeconds":{"type":"integer","minimum":60,"maximum":86400},"concurrencyPolicy":{"type":"string","enum":["forbid","allow"]},"enabled":{"type":"boolean"}},"additionalProperties":false}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"scheduleId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"schedule":{"type":"object","properties":{"id":{"type":"string"},"serviceId":{"type":"string"},"cronExpression":{"type":"string"},"timezone":{"type":"string"},"timeoutSeconds":{"type":"integer"},"concurrencyPolicy":{"type":"string"},"nextRunAt":{"type":"string","format":"date-time"},"enabled":{"type":"boolean"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","serviceId","cronExpression","timezone","timeoutSeconds","concurrencyPolicy","nextRunAt","enabled","createdAt","updatedAt"],"additionalProperties":false}},"required":["schedule"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"delete":{"tags":["Worker schedules"],"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"scheduleId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"204":{"description":"Default Response","content":{"application/json":{"schema":{"enum":["null"],"nullable":true}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/schedules/{scheduleId}/runs":{"get":{"tags":["Worker schedules"],"parameters":[{"schema":{"type":"string"},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":20},"in":"query","name":"limit","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"scheduleId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"scheduleId":{"type":"string","nullable":true},"serviceId":{"type":"string"},"deploymentId":{"type":"string","nullable":true},"trigger":{"type":"string"},"timeoutSeconds":{"type":"integer"},"concurrencyPolicy":{"type":"string"},"status":{"type":"string"},"reason":{"type":"string","nullable":true},"exitCode":{"type":"integer","nullable":true},"startedAt":{"type":"string","format":"date-time","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","scheduleId","serviceId","deploymentId","trigger","timeoutSeconds","concurrencyPolicy","status","reason","exitCode","startedAt","completedAt","createdAt","updatedAt"],"additionalProperties":false}},"nextCursor":{"type":"string","nullable":true},"hasMore":{"type":"boolean"}},"required":["items","nextCursor","hasMore"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}},"post":{"tags":["Worker schedules"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{},"additionalProperties":false,"default":{}}}}},"parameters":[{"schema":{"type":"string","minLength":1},"in":"path","name":"scheduleId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string"},"scheduleId":{"type":"string","nullable":true},"serviceId":{"type":"string"},"deploymentId":{"type":"string","nullable":true},"trigger":{"type":"string"},"timeoutSeconds":{"type":"integer"},"concurrencyPolicy":{"type":"string"},"status":{"type":"string"},"reason":{"type":"string","nullable":true},"exitCode":{"type":"integer","nullable":true},"startedAt":{"type":"string","format":"date-time","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","scheduleId","serviceId","deploymentId","trigger","timeoutSeconds","concurrencyPolicy","status","reason","exitCode","startedAt","completedAt","createdAt","updatedAt"],"additionalProperties":false}},"required":["run"],"additionalProperties":false}}}},"202":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"run":{"type":"object","properties":{"id":{"type":"string"},"scheduleId":{"type":"string","nullable":true},"serviceId":{"type":"string"},"deploymentId":{"type":"string","nullable":true},"trigger":{"type":"string"},"timeoutSeconds":{"type":"integer"},"concurrencyPolicy":{"type":"string"},"status":{"type":"string"},"reason":{"type":"string","nullable":true},"exitCode":{"type":"integer","nullable":true},"startedAt":{"type":"string","format":"date-time","nullable":true},"completedAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}},"required":["id","scheduleId","serviceId","deploymentId","trigger","timeoutSeconds","concurrencyPolicy","status","reason","exitCode","startedAt","completedAt","createdAt","updatedAt"],"additionalProperties":false}},"required":["run"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/schedule-runs/{runId}/logs":{"get":{"tags":["Logs","Worker schedules"],"parameters":[{"schema":{"type":"string","nullable":true},"in":"query","name":"cursor","required":false},{"schema":{"type":"integer","minimum":1,"maximum":500,"default":200},"in":"query","name":"limit","required":false},{"schema":{"type":"string","enum":["initial","older"],"default":"initial"},"in":"query","name":"mode","required":false},{"schema":{"type":"string","enum":["stdout","stderr","all"],"default":"all"},"in":"query","name":"type","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"runId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"available":{"type":"boolean"},"hasMore":{"type":"boolean"},"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"message":{"type":"string"},"severity":{"type":"string","enum":["error","warning","success","info","debug"]},"stream":{"type":"string","enum":["stdout","stderr"]},"timestamp":{"type":"string","format":"date-time"}},"required":["id","message","severity","stream","timestamp"],"additionalProperties":false}},"message":{"type":"string","nullable":true},"nextCursor":{"type":"string","nullable":true}},"required":["available","hasMore","items","message","nextCursor"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/services/{serviceId}/metrics":{"get":{"tags":["Metrics"],"parameters":[{"schema":{"type":"string","enum":["1h","6h","1d","7d","30d"],"default":"1h"},"in":"query","name":"range","required":false},{"schema":{"type":"integer","minimum":0,"maximum":31},"in":"query","name":"replicaIndex","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"serviceId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ready","pending","stale","unavailable"]},"message":{"type":"string"},"latestSampleAt":{"type":"string","format":"date-time","nullable":true},"summary":{"type":"object","properties":{"cpuUsageCores":{"type":"number","nullable":true},"cpuAllocationCores":{"type":"number"},"memoryUsageBytes":{"type":"number","nullable":true},"memoryLimitBytes":{"type":"string"},"networkRxBytesPerSecond":{"type":"number","nullable":true},"networkTxBytesPerSecond":{"type":"number","nullable":true},"blockReadBytesPerSecond":{"type":"number","nullable":true},"blockWriteBytesPerSecond":{"type":"number","nullable":true},"restartCount":{"type":"number","nullable":true},"uptimeSeconds":{"type":"number","nullable":true},"storage":{"type":"object","properties":{"usedBytes":{"type":"string"},"requestedSizeBytes":{"type":"string"},"collectedAt":{"type":"string","format":"date-time"}},"required":["usedBytes","requestedSizeBytes","collectedAt"],"additionalProperties":false,"nullable":true}},"required":["cpuUsageCores","cpuAllocationCores","memoryUsageBytes","memoryLimitBytes","networkRxBytesPerSecond","networkTxBytesPerSecond","blockReadBytesPerSecond","blockWriteBytesPerSecond","restartCount","uptimeSeconds","storage"],"additionalProperties":false,"nullable":true},"series":{"type":"object","properties":{"latestSampleAt":{"type":"string","format":"date-time","nullable":true},"cpuUsageCores":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"memoryUsageBytes":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"networkRxBytesPerSecond":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"networkTxBytesPerSecond":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"blockReadBytesPerSecond":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"blockWriteBytesPerSecond":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"uptimeSeconds":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"restartCount":{"type":"number","nullable":true}},"required":["latestSampleAt","cpuUsageCores","memoryUsageBytes","networkRxBytesPerSecond","networkTxBytesPerSecond","blockReadBytesPerSecond","blockWriteBytesPerSecond","uptimeSeconds","restartCount"],"additionalProperties":false,"nullable":true}},"required":["status","message","latestSampleAt","summary","series"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/servers/{serverId}/metrics":{"get":{"tags":["Metrics"],"parameters":[{"schema":{"type":"string","enum":["1h","6h","1d","7d","30d"],"default":"1h"},"in":"query","name":"range","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"serverId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ready","pending","stale","unavailable"]},"message":{"type":"string"},"latestSampleAt":{"type":"string","format":"date-time","nullable":true},"summary":{"type":"object","properties":{"cpuUsagePercent":{"type":"number","nullable":true},"memoryUsedBytes":{"type":"number","nullable":true},"memoryTotalBytes":{"type":"number","nullable":true},"networkRxBytesPerSecond":{"type":"number","nullable":true},"networkTxBytesPerSecond":{"type":"number","nullable":true},"diskUsedBytes":{"type":"number","nullable":true},"diskTotalBytes":{"type":"number","nullable":true},"load1":{"type":"number","nullable":true},"load5":{"type":"number","nullable":true},"load15":{"type":"number","nullable":true},"uptimeSeconds":{"type":"number","nullable":true}},"required":["cpuUsagePercent","memoryUsedBytes","memoryTotalBytes","networkRxBytesPerSecond","networkTxBytesPerSecond","diskUsedBytes","diskTotalBytes","load1","load5","load15","uptimeSeconds"],"additionalProperties":false,"nullable":true},"series":{"type":"object","properties":{"latestSampleAt":{"type":"string","format":"date-time","nullable":true},"cpuUsagePercent":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"memoryUsedBytes":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"memoryTotalBytes":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"networkRxBytesPerSecond":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"networkTxBytesPerSecond":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"diskUsedBytes":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"diskTotalBytes":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"load1":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"load5":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"load15":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}},"uptimeSeconds":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number","nullable":true}},"required":["timestamp","value"],"additionalProperties":false}}},"required":["latestSampleAt","cpuUsagePercent","memoryUsedBytes","memoryTotalBytes","networkRxBytesPerSecond","networkTxBytesPerSecond","diskUsedBytes","diskTotalBytes","load1","load5","load15","uptimeSeconds"],"additionalProperties":false,"nullable":true}},"required":["status","message","latestSampleAt","summary","series"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/volumes/{volumeId}/metrics":{"get":{"tags":["Metrics"],"parameters":[{"schema":{"type":"string","enum":["1h","6h","1d","7d","30d"],"default":"1h"},"in":"query","name":"range","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"volumeId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"200":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ready","pending","stale","unavailable"]},"message":{"type":"string"},"latestSampleAt":{"type":"string","format":"date-time","nullable":true},"summary":{"type":"object","properties":{"usedBytes":{"type":"string"},"requestedSizeBytes":{"type":"string"},"utilizationBasisPoints":{"type":"integer","minimum":0}},"required":["usedBytes","requestedSizeBytes","utilizationBasisPoints"],"additionalProperties":false,"nullable":true},"series":{"type":"array","items":{"type":"object","properties":{"collectedAt":{"type":"string","format":"date-time"},"usedBytes":{"type":"string"},"requestedSizeBytes":{"type":"string"},"utilizationBasisPoints":{"type":"integer","minimum":0}},"required":["collectedAt","usedBytes","requestedSizeBytes","utilizationBasisPoints"],"additionalProperties":false}}},"required":["status","message","latestSampleAt","summary","series"],"additionalProperties":false}}}},"401":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["code","message","requestId","details"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/buckets/{bucketId}/objects/upload":{"post":{"tags":["Buckets"],"parameters":[{"schema":{"type":"string","pattern":"^[a-fA-F0-9]{64}$"},"in":"query","name":"contentSha256","required":true},{"schema":{"type":"string","minLength":1},"in":"query","name":"environmentId","required":true},{"schema":{"type":"string","minLength":1,"maxLength":1024},"in":"query","name":"key","required":true},{"schema":{"type":"string","maxLength":1024},"in":"query","name":"prefix","required":false},{"schema":{"type":"string","minLength":1},"in":"path","name":"bucketId","required":true}],"security":[{"bearerAuth":[]}],"responses":{"201":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"key":{"type":"string"},"objectCount":{"type":"integer","minimum":0},"sizeBytes":{"type":"integer","minimum":0}},"required":["key","objectCount","sizeBytes"],"additionalProperties":false}}}},"400":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"403":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"409":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"412":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}},"503":{"description":"Default Response","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"details":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"path":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"message":{"type":"string"},"requestId":{"type":"string","format":"uuid"}},"required":["code","details","message","requestId"],"additionalProperties":false}},"required":["error"],"additionalProperties":false}}}}}}}}}