{"components":{"schemas":{"EngagementAccepted":{"type":"object","additionalProperties":false,"required":["ok"],"properties":{"ok":{"type":"boolean","const":true}}},"WaitlistRequest":{"type":"object","additionalProperties":false,"required":["email"],"properties":{"email":{"type":"string","format":"email","maxLength":320},"source":{"type":"string","enum":["landing","signup","docs","other"]},"company":{"type":"string","maxLength":200,"description":"Spam honeypot; leave blank."}}},"FeedbackRequest":{"type":"object","additionalProperties":false,"required":["email","message"],"properties":{"email":{"type":"string","format":"email","maxLength":320},"source":{"type":"string","enum":["dashboard","docs","landing","other"]},"category":{"type":"string","enum":["bug","confusing","idea","other"]},"message":{"type":"string","minLength":1,"maxLength":4000},"company":{"type":"string","maxLength":200,"description":"Spam honeypot; leave blank."}}},"WaitlistEntry":{"type":"object","additionalProperties":false,"required":["email","source","created_at"],"properties":{"email":{"type":"string","format":"email"},"source":{"type":"string","enum":["landing","signup","docs","other"]},"created_at":{"type":"string","format":"date-time"}}},"FeedbackEntry":{"type":"object","additionalProperties":false,"required":["email","source","category","message","created_at"],"properties":{"email":{"type":"string","format":"email"},"source":{"type":"string","enum":["dashboard","docs","landing","other"]},"category":{"type":"string","enum":["bug","confusing","idea","other"]},"message":{"type":"string"},"created_at":{"type":"string","format":"date-time"}}},"ComputeSourceManifestEntry":{"type":"object","additionalProperties":false,"required":["path","size_bytes","sha256","mode"],"properties":{"path":{"type":"string","minLength":1,"maxLength":1024},"size_bytes":{"type":"integer","minimum":0},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"mode":{"type":"integer","enum":[420,493]}}},"CreateComputeSourceSnapshotRequest":{"type":"object","additionalProperties":false,"required":["project_id","content_digest","manifest","archive_bytes"],"properties":{"project_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","maxLength":96},"content_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"manifest":{"type":"array","items":{"$ref":"#/components/schemas/ComputeSourceManifestEntry"}},"archive_bytes":{"type":"integer","minimum":1}}},"ComputeSourceSnapshotFailure":{"type":"object","additionalProperties":false,"required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}},"ComputeSourceSnapshot":{"type":"object","additionalProperties":false,"required":["id","project_id","content_digest","status","file_count","total_bytes","archive_bytes","chunk_size_bytes","total_chunks","uploaded_chunks","missing_chunks","failure","ready_at","expires_at","created_at","updated_at"],"properties":{"id":{"type":"string"},"project_id":{"type":"string"},"content_digest":{"type":"string","pattern":"^[a-f0-9]{64}$"},"status":{"type":"string","enum":["pending","uploading","ready","failed"]},"file_count":{"type":"integer","minimum":0},"total_bytes":{"type":"integer","minimum":0},"archive_bytes":{"type":"integer","minimum":1},"chunk_size_bytes":{"type":"integer","minimum":1},"total_chunks":{"type":"integer","minimum":1},"uploaded_chunks":{"type":"array","items":{"type":"integer","minimum":0}},"missing_chunks":{"type":"array","items":{"type":"integer","minimum":0}},"failure":{"anyOf":[{"$ref":"#/components/schemas/ComputeSourceSnapshotFailure"},{"type":"null"}]},"ready_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"expires_at":{"type":"string","format":"date-time"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"ComputeRunConstraints":{"type":"object","additionalProperties":false,"properties":{"gpu_count":{"type":"integer","minimum":1,"maximum":8,"default":1},"minimum_gpu_memory_gb":{"type":"integer","minimum":0,"maximum":1024,"default":0},"accelerator_family":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"location":{"anyOf":[{"type":"string","enum":["europe","united_states"]},{"type":"null"}]},"host_class":{"type":"string","enum":["datacenter","any"],"default":"datacenter"},"preference":{"type":"string","enum":["balanced","cost","speed"],"default":"balanced"},"storage_gb":{"type":"integer","minimum":1,"maximum":10000,"default":50,"description":"Attached disk size in GB per machine. Included in the hourly quote; selected when provisioning. Existing disks are not resized."}}},"CreateComputeRunRequest":{"type":"object","additionalProperties":false,"required":["project_id","source_snapshot_id","command"],"properties":{"project_id":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$","maxLength":96},"source_snapshot_id":{"type":"string","pattern":"^[a-f0-9]{32}$"},"command":{"type":"array","minItems":1,"maxItems":256,"items":{"type":"string","maxLength":16384}},"environment":{"type":"object","maxProperties":64,"additionalProperties":{"type":"string","maxLength":16384}},"compute_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{32}$"},{"type":"null"}]},"runtime":{"type":"string","const":"cuda-uv-v1","default":"cuda-uv-v1"},"constraints":{"$ref":"#/components/schemas/ComputeRunConstraints"},"maximum_hourly_price_microusd":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000000000000},{"type":"null"}]},"max_runtime_seconds":{"type":"integer","minimum":60,"maximum":604800},"keep_warm_seconds":{"type":"integer","minimum":0,"maximum":604800,"default":0},"service":{"description":"Expose one application port through an authenticated Amics HTTP endpoint. Only valid for auto-acquired compute with keep_warm_seconds set to zero.","anyOf":[{"type":"object","additionalProperties":false,"required":["port","health_path"],"properties":{"port":{"type":"integer","minimum":1,"maximum":65535,"not":{"const":31000}},"health_path":{"type":"string","pattern":"^/(?!/)","maxLength":200}}},{"type":"null"}]}},"description":"Auto-acquisition requires an explicit maximum hourly price. Arguments are executed literally without an implicit shell."},"ComputeRunFailure":{"type":"object","additionalProperties":false,"required":["kind","message"],"properties":{"kind":{"type":"string"},"message":{"type":"string"}}},"ComputeRunResource":{"type":"object","additionalProperties":false,"required":["ownership","disposition","cleanup_attempts","cleanup_error","cleanup_completed_at"],"properties":{"ownership":{"type":"string","enum":["amics","provided"]},"disposition":{"type":"string","enum":["not_required","pending","leased","stopping","complete","failed"]},"cleanup_attempts":{"type":"integer","minimum":0},"cleanup_error":{"anyOf":[{"type":"string"},{"type":"null"}]},"cleanup_completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}},"ComputeRun":{"type":"object","additionalProperties":false,"required":["id","project_id","source_snapshot_id","compute_id","runtime","command","environment_names","constraints","maximum_hourly_price_microusd","attributed_spend_microusd","max_runtime_seconds","keep_warm_seconds","service","status","stage_timestamps","generation","output_bytes","exit_code","termination_signal","failure","lease_expires_at","resource","created_at","updated_at","started_at","completed_at"],"properties":{"id":{"type":"string","pattern":"^[a-f0-9]{32}$"},"project_id":{"type":"string"},"source_snapshot_id":{"type":"string","pattern":"^[a-f0-9]{32}$"},"compute_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{32}$"},{"type":"null"}]},"runtime":{"type":"string","const":"cuda-uv-v1"},"command":{"type":"array","items":{"type":"string"}},"environment_names":{"type":"array","items":{"type":"string"}},"constraints":{"$ref":"#/components/schemas/ComputeRunConstraints"},"maximum_hourly_price_microusd":{"anyOf":[{"type":"integer"},{"type":"null"}]},"attributed_spend_microusd":{"description":"Settled compute charges attributed to this run. Concurrent runs share lease charges; idle lease time is excluded.","anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"max_runtime_seconds":{"type":"integer","minimum":60},"keep_warm_seconds":{"type":"integer","minimum":0},"service":{"anyOf":[{"type":"object","additionalProperties":false,"required":["port","health_path","endpoint_path"],"properties":{"port":{"type":"integer","minimum":1,"maximum":65535},"health_path":{"type":"string"},"endpoint_path":{"type":"string"},"status":{"type":"string"}}},{"type":"null"}]},"status":{"type":"string","enum":["queued","acquiring","syncing","starting","running","succeeded","failed","cancelling","cancelled","unknown"]},"stage_timestamps":{"type":"object","description":"Exact time each lifecycle state began. States skipped by this run are omitted.","additionalProperties":{"type":"string","format":"date-time"}},"generation":{"type":"integer","minimum":1},"output_bytes":{"type":"integer","minimum":0},"exit_code":{"anyOf":[{"type":"integer","minimum":0},{"type":"null"}]},"termination_signal":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}]},"failure":{"anyOf":[{"$ref":"#/components/schemas/ComputeRunFailure"},{"type":"null"}]},"lease_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"resource":{"$ref":"#/components/schemas/ComputeRunResource"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]}}},"ComputeOutputFrame":{"type":"object","additionalProperties":false,"required":["version","cursor","sequence","stream","byte_offset","payload_base64","observed_at"],"properties":{"version":{"type":"integer","const":1},"cursor":{"type":"string","minLength":1},"sequence":{"type":"string","pattern":"^[1-9][0-9]*$"},"stream":{"type":"string","enum":["stdout","stderr"]},"byte_offset":{"type":"string","pattern":"^(?:0|[1-9][0-9]*)$"},"payload_base64":{"type":"string","contentEncoding":"base64"},"observed_at":{"type":"string","format":"date-time"}}},"ComputeOutputPage":{"type":"object","additionalProperties":false,"required":["items","next_cursor","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ComputeOutputFrame"}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_more":{"type":"boolean"}}},"CancelComputeRunRequest":{"type":"object","additionalProperties":false,"required":["generation"],"properties":{"generation":{"type":"integer","minimum":1},"cancel_compute":{"type":"boolean","default":false}}},"AddMemberRequest":{"properties":{"email":{"maxLength":200,"minLength":1,"title":"Email","type":"string"},"role":{"default":"developer","enum":["owner","admin","developer","viewer"],"title":"Role","type":"string"}},"required":["email"],"title":"AddMemberRequest","type":"object"},"AdminLogEntry":{"properties":{"action":{"maxLength":80,"minLength":1,"title":"Action","type":"string"},"actor":{"maxLength":320,"minLength":1,"title":"Actor","type":"string"},"created_at":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Created At"},"detail":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"title":"Detail","type":"object"},"tenant_id":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Tenant Id"}},"required":["tenant_id","actor","action","detail","created_at"],"title":"AdminLogEntry","type":"object"},"AdminServicePerformance":{"properties":{"window":{"enum":["24h","7d","30d"],"type":"string"},"filters":{"properties":{"service":{"enum":["all","general_compute"],"type":"string"},"outcome":{"enum":["all","in_progress","succeeded","failed","cancelled"],"type":"string"}},"required":["service","outcome"],"type":"object"},"generated_at":{"format":"date-time","type":"string"},"summary":{"allOf":[{"$ref":"#/components/schemas/AdminServicePerformanceCounts"},{"properties":{"duration":{"$ref":"#/components/schemas/AdminServicePerformanceMetric"}},"required":["duration"],"type":"object"}]},"services":{"items":{"allOf":[{"$ref":"#/components/schemas/AdminServicePerformanceCounts"},{"properties":{"service_type":{"enum":["general_compute"],"type":"string"},"duration":{"$ref":"#/components/schemas/AdminServicePerformanceMetric"}},"required":["service_type","duration"],"type":"object"}]},"type":"array"},"stages":{"items":{"allOf":[{"$ref":"#/components/schemas/AdminServicePerformanceMetric"},{"properties":{"stage":{"enum":["submission","capacity","infrastructure_startup","configuration","workspace_restore","application_readiness"],"type":"string"}},"required":["stage"],"type":"object"}]},"type":"array"},"trend":{"items":{"allOf":[{"$ref":"#/components/schemas/AdminServicePerformanceMetric"},{"properties":{"bucket_started_at":{"format":"date-time","type":"string"}},"required":["bucket_started_at"],"type":"object"}]},"type":"array"},"recent":{"items":{"$ref":"#/components/schemas/AdminServicePerformanceRecent"},"type":"array"}},"required":["window","filters","generated_at","summary","services","stages","trend","recent"],"type":"object"},"AdminServicePerformanceCounts":{"properties":{"launches":{"minimum":0,"type":"integer"},"succeeded":{"minimum":0,"type":"integer"},"failed":{"minimum":0,"type":"integer"},"cancelled":{"minimum":0,"type":"integer"},"in_progress":{"minimum":0,"type":"integer"},"success_rate":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}]}},"required":["launches","succeeded","failed","cancelled","in_progress","success_rate"],"type":"object"},"AdminServicePerformanceMetric":{"properties":{"sample_count":{"minimum":0,"type":"integer"},"p50_ms":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]},"p95_ms":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]}},"required":["sample_count","p50_ms","p95_ms"],"type":"object"},"AdminServicePerformanceRecent":{"properties":{"event_id":{"type":"string"},"tenant_id":{"type":"string"},"resource_id":{"type":"string"},"service_type":{"enum":["general_compute"],"type":"string"},"launch_generation":{"minimum":0,"type":"integer"},"launch_attempt":{"minimum":1,"type":"integer"},"outcome":{"enum":["in_progress","succeeded","failed","cancelled"],"type":"string"},"last_stage":{"enum":["submission","capacity","infrastructure_startup","configuration","workspace_restore","application_readiness","ready"],"type":"string"},"launch_started_at":{"format":"date-time","type":"string"},"completed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}]},"total_duration_ms":{"anyOf":[{"minimum":0,"type":"number"},{"type":"null"}]},"placement":{"anyOf":[{"type":"string"},{"type":"null"}]},"accelerator":{"anyOf":[{"type":"string"},{"type":"null"}]},"provider":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["event_id","tenant_id","resource_id","service_type","launch_generation","launch_attempt","outcome","last_stage","launch_started_at","completed_at","total_duration_ms","placement","accelerator","provider"],"type":"object"},"AdminOverview":{"type":"object","title":"AdminOverview","required":["tenants","users","generated_at"],"properties":{"tenants":{"type":"integer","minimum":0},"users":{"type":"integer","minimum":0},"generated_at":{"type":"string","format":"date-time"}}},"AdminTenant":{"type":"object","title":"AdminTenant","required":["tenant_id","tenant_name","email","execution_provider","users","created_at"],"properties":{"tenant_id":{"type":"string"},"tenant_name":{"type":"string"},"email":{"anyOf":[{"type":"string"},{"type":"null"}]},"execution_provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"users":{"type":"integer","minimum":0},"created_at":{"type":"string","format":"date-time"}}},"AdminTenantRun":{"type":"object","title":"AdminTenantRun","required":["id","project_id","command","runtime","status","created_at","updated_at","started_at","completed_at","failure_message"],"properties":{"id":{"type":"string"},"project_id":{"type":"string"},"command":{"type":"array","items":{"type":"string"}},"runtime":{"type":"string"},"status":{"type":"string","enum":["queued","acquiring","syncing","starting","running","succeeded","failed","cancelling","cancelled","unknown"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"failure_message":{"anyOf":[{"type":"string"},{"type":"null"}]}}},"AdminTenantDetail":{"type":"object","title":"AdminTenantDetail","required":["tenant_id","tenant_name","primary_email","execution_provider","credit_purchases_enabled","created_at","users","runs"],"properties":{"tenant_id":{"type":"string"},"tenant_name":{"type":"string"},"primary_email":{"anyOf":[{"type":"string"},{"type":"null"}]},"execution_provider":{"anyOf":[{"type":"string"},{"type":"null"}]},"credit_purchases_enabled":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"},"users":{"type":"array","items":{"type":"object","required":["id","email","is_admin","created_at"],"properties":{"id":{"type":"string"},"email":{"type":"string"},"is_admin":{"type":"boolean"},"created_at":{"type":"string","format":"date-time"}}}},"runs":{"type":"array","items":{"$ref":"#/components/schemas/AdminTenantRun"}}}},"ApiKeyItem":{"properties":{"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"environment":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Environment"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"prefix":{"maxLength":200,"minLength":1,"title":"Prefix","type":"string"},"team_id":{"anyOf":[{"maxLength":96,"minLength":1,"type":"string"},{"type":"null"}],"title":"Team Id"}},"required":["id","name","prefix","created_at"],"title":"ApiKeyItem","type":"object"},"ApiKeyListItem":{"properties":{"api_key_prefix":{"maxLength":32,"minLength":1,"title":"Api Key Prefix","type":"string"},"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"name":{"maxLength":120,"minLength":1,"title":"Name","type":"string"}},"required":["api_key_prefix","name","created_at"],"title":"ApiKeyListItem","type":"object"},"AuthResponse":{"properties":{"api_key":{"anyOf":[{"maxLength":256,"minLength":1,"type":"string"},{"type":"null"}],"title":"Api Key"},"api_key_prefix":{"anyOf":[{"maxLength":32,"minLength":1,"type":"string"},{"type":"null"}],"title":"Api Key Prefix"},"email":{"maxLength":320,"minLength":3,"title":"Email","type":"string"},"tenant_id":{"maxLength":64,"minLength":1,"title":"Tenant Id","type":"string"},"tenant_name":{"maxLength":200,"minLength":1,"title":"Tenant Name","type":"string"},"token":{"maxLength":256,"minLength":1,"title":"Token","type":"string"}},"required":["token","email","tenant_id","tenant_name"],"title":"AuthResponse","type":"object"},"InvitationSignupRequest":{"properties":{"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"password":{"maxLength":256,"minLength":8,"title":"Password","type":"string"}},"required":["name","password"],"title":"InvitationSignupRequest","type":"object"},"WorkspaceInvitation":{"properties":{"email":{"maxLength":320,"minLength":3,"title":"Email","type":"string"},"expires_at":{"maxLength":64,"minLength":1,"title":"Expires At","type":"string"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"organization_name":{"maxLength":200,"minLength":1,"title":"Organization Name","type":"string"},"role":{"enum":["owner","admin","developer","viewer"],"title":"Role","type":"string"}},"required":["id","email","role","organization_name","expires_at"],"title":"WorkspaceInvitation","type":"object"},"BillingLedgerItem":{"properties":{"amount_usd":{"title":"Amount Usd","type":"number"},"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"credits_delta_usd":{"title":"Credits Delta Usd","type":"number"},"description":{"maxLength":200,"minLength":1,"title":"Description","type":"string"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"resource_id":{"maxLength":96,"minLength":1,"title":"Resource Id","type":"string"},"resource_type":{"maxLength":200,"minLength":1,"title":"Resource Type","type":"string"}},"required":["id","resource_id","resource_type","description","amount_usd","credits_delta_usd","created_at"],"title":"BillingLedgerItem","type":"object"},"CreateInviteRequest":{"properties":{"block_credit_purchases":{"default":false,"title":"Block Credit Purchases","type":"boolean"},"credit_usd":{"default":0,"maximum":1000,"minimum":0,"title":"Credit Usd","type":"integer"},"email":{"anyOf":[{"maxLength":320,"minLength":3,"type":"string"},{"type":"null"}],"title":"Email"},"expires_in_days":{"anyOf":[{"maximum":365,"minimum":1,"type":"integer"},{"type":"null"}],"title":"Expires In Days"},"note":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"title":"Note"}},"title":"CreateInviteRequest","type":"object"},"CreatePlatformApiKeyRequest":{"properties":{"environment":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Environment"},"name":{"default":"default","maxLength":200,"minLength":1,"title":"Name","type":"string"},"team_id":{"anyOf":[{"maxLength":96,"minLength":1,"type":"string"},{"type":"null"}],"title":"Team Id"}},"title":"CreatePlatformApiKeyRequest","type":"object"},"CreatedPlatformApiKey":{"properties":{"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"environment":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Environment"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"prefix":{"maxLength":200,"minLength":1,"title":"Prefix","type":"string"},"team_id":{"anyOf":[{"maxLength":96,"minLength":1,"type":"string"},{"type":"null"}],"title":"Team Id"},"token":{"maxLength":200,"minLength":1,"title":"Token","type":"string"}},"required":["id","name","prefix","created_at","token"],"title":"CreatedPlatformApiKey","type":"object"},"CreditPurchase":{"properties":{"amount_usd":{"minimum":0,"title":"Amount Usd","type":"number"},"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"completed_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Completed At"},"credits_granted_usd":{"minimum":0,"title":"Credits Granted Usd","type":"number"},"currency":{"const":"usd","title":"Currency","type":"string"},"failure_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Code"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"status":{"enum":["creating","open","processing","succeeded","failed","expired","partially_refunded","refunded"],"title":"Status","type":"string"},"refunded_usd":{"minimum":0,"title":"Refunded Usd","type":"number"},"updated_at":{"maxLength":64,"minLength":1,"title":"Updated At","type":"string"}},"required":["id","amount_usd","currency","status","credits_granted_usd","refunded_usd","failure_code","created_at","updated_at","completed_at"],"title":"CreditPurchase","type":"object"},"CreditPurchaseRequest":{"properties":{"amount_usd":{"maximum":10000,"minimum":1,"title":"Amount Usd","type":"integer"},"idempotency_key":{"maxLength":200,"minLength":8,"pattern":"^[A-Za-z0-9:_-]+$","title":"Idempotency Key","type":"string"}},"required":["amount_usd","idempotency_key"],"title":"CreditPurchaseRequest","type":"object"},"CreditCheckoutSession":{"properties":{"checkout_url":{"type":"string","format":"uri","title":"Checkout Url"},"purchase":{"$ref":"#/components/schemas/CreditPurchase"}},"required":["checkout_url","purchase"],"title":"CreditCheckoutSession","type":"object"},"StripeBillingConfig":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"credit_packs_usd":{"items":{"type":"integer","minimum":1},"type":"array","title":"Credit Packs Usd"},"currency":{"const":"usd","type":"string","title":"Currency"}},"required":["enabled","credit_packs_usd","currency"],"title":"StripeBillingConfig","type":"object"},"GeneralSettings":{"properties":{"workspace_name":{"maxLength":200,"minLength":1,"title":"Workspace Name","type":"string"}},"required":["workspace_name"],"title":"GeneralSettings","type":"object"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"title":"Detail","type":"array"}},"title":"HTTPValidationError","type":"object"},"HealthCheckItem":{"properties":{"latency_ms":{"minimum":0,"title":"Latency Ms","type":"number"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"status":{"enum":["healthy","degraded","unhealthy"],"title":"Status","type":"string"}},"required":["name","status","latency_ms","message"],"title":"HealthCheckItem","type":"object"},"InstanceType":{"properties":{"accelerator":{"maxLength":200,"minLength":1,"title":"Accelerator","type":"string"},"available":{"title":"Available","type":"boolean"},"cpu_count":{"description":"CPU count per node.","minimum":0,"title":"Cpu Count","type":"integer"},"device_memory_gb":{"minimum":0,"title":"Device Memory Gb","type":"number"},"gpu_count":{"description":"GPU count per node.","minimum":0,"title":"Gpu Count","type":"integer"},"hourly_price_usd":{"description":"Retail compute price per node-hour, excluding attached storage.","minimum":0,"title":"Hourly Price Usd","type":"number"},"id":{"maxLength":120,"minLength":1,"title":"Id","type":"string"},"memory_gb":{"description":"Memory per node in GB.","minimum":0,"title":"Memory Gb","type":"integer"},"quota_gpu_limit":{"minimum":0,"title":"Quota Gpu Limit","type":"number"},"quota_gpu_remaining":{"minimum":0,"title":"Quota Gpu Remaining","type":"number"},"quota_job_limit":{"minimum":0,"title":"Quota Job Limit","type":"integer"},"quota_job_remaining":{"minimum":0,"title":"Quota Job Remaining","type":"integer"},"region":{"maxLength":200,"minLength":1,"title":"Region","type":"string"},"storage_price_usd_per_gb_hour":{"description":"Retail attached-storage price per GB per node-hour.","minimum":0,"title":"Storage Price Usd Per Gb Hour","type":"number"}},"required":["id","region","accelerator","gpu_count","cpu_count","memory_gb","hourly_price_usd","available"],"title":"InstanceType","type":"object"},"InviteResponse":{"properties":{"block_credit_purchases":{"title":"Block Credit Purchases","type":"boolean"},"code":{"maxLength":256,"minLength":1,"title":"Code","type":"string"},"code_prefix":{"maxLength":32,"minLength":1,"title":"Code Prefix","type":"string"},"credit_usd":{"minimum":0,"title":"Credit Usd","type":"integer"},"email":{"anyOf":[{"maxLength":320,"minLength":3,"type":"string"},{"type":"null"}],"title":"Email"},"email_sent":{"title":"Email Sent","type":"boolean"},"expires_at":{"anyOf":[{"maxLength":64,"minLength":1,"type":"string"},{"type":"null"}],"title":"Expires At"},"signup_url":{"minLength":1,"title":"Signup Url","type":"string"}},"required":["block_credit_purchases","code","code_prefix","email","email_sent","credit_usd","expires_at","signup_url"],"title":"InviteResponse","type":"object"},"LogLine":{"properties":{"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"generation":{"minimum":1,"title":"Generation","type":"integer"},"level":{"enum":["debug","info","warning","error"],"title":"Level","type":"string"},"message":{"maxLength":1000,"minLength":1,"title":"Message","type":"string"},"source":{"maxLength":200,"minLength":1,"title":"Source","type":"string"},"timestamp":{"maxLength":64,"minLength":1,"title":"Timestamp","type":"string"}},"required":["id","generation","timestamp","level","source","message"],"title":"LogLine","type":"object"},"LogPage":{"properties":{"resource_id":{"maxLength":96,"minLength":1,"title":"Resource Id","type":"string"},"state":{"enum":["collecting","live","stale","stopped","unavailable"],"title":"Telemetry State","type":"string"},"items":{"items":{"$ref":"#/components/schemas/LogLine"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["resource_id","state","items"],"title":"LogPage","type":"object"},"LoginRequest":{"properties":{"email":{"maxLength":320,"minLength":3,"title":"Email","type":"string"},"password":{"maxLength":256,"minLength":1,"title":"Password","type":"string"}},"required":["email","password"],"title":"LoginRequest","type":"object"},"MemberItem":{"properties":{"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"email":{"maxLength":200,"minLength":1,"title":"Email","type":"string"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"role":{"enum":["owner","admin","developer","viewer"],"title":"Role","type":"string"}},"required":["id","email","role","created_at"],"title":"MemberItem","type":"object"},"DeploymentMetricPoint":{"properties":{"label":{"type":"string","format":"date-time"},"timestamp":{"type":"string","format":"date-time"},"value":{"type":"number"}},"required":["label","timestamp","value"],"title":"DeploymentMetricPoint","type":"object"},"DeploymentMetricSeries":{"properties":{"name":{"type":"string","maxLength":80},"unit":{"type":"string","enum":["percent","bytes","watts","celsius","boolean","ms","count"]},"points":{"type":"array","items":{"$ref":"#/components/schemas/DeploymentMetricPoint"}}},"required":["name","unit","points"],"title":"DeploymentMetricSeries","type":"object"},"DeploymentMetricsResponse":{"properties":{"resource_id":{"type":"string","maxLength":96},"state":{"type":"string","enum":["collecting","live","stale","stopped","unavailable"]},"window":{"type":"string","enum":["1h","6h","24h","7d"]},"last_sample_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"series":{"type":"array","items":{"$ref":"#/components/schemas/DeploymentMetricSeries"}}},"required":["resource_id","state","window","last_sample_at","series"],"title":"DeploymentMetricsResponse","type":"object"},"PlatformBillingSummary":{"properties":{"credit_purchases_enabled":{"title":"Credit Purchases Enabled","type":"boolean"},"credits_available_usd":{"minimum":0,"title":"Credits Available Usd","type":"number"},"credits_debt_usd":{"minimum":0,"title":"Credits Debt Usd","type":"number"},"credits_remaining_usd":{"minimum":0,"title":"Credits Remaining Usd","type":"number"},"credits_reserved_usd":{"minimum":0,"title":"Credits Reserved Usd","type":"number"},"credits_settled_usd":{"minimum":0,"title":"Credits Settled Usd","type":"number"},"current_spend_usd":{"minimum":0,"title":"Current Spend Usd","type":"number"}},"required":["current_spend_usd","credits_remaining_usd"],"title":"PlatformBillingSummary","type":"object"},"PlatformEvent":{"properties":{"actor":{"maxLength":200,"minLength":1,"title":"Actor","type":"string"},"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"message":{"maxLength":200,"minLength":1,"title":"Message","type":"string"},"resource_id":{"maxLength":96,"minLength":1,"title":"Resource Id","type":"string"},"resource_type":{"maxLength":200,"minLength":1,"title":"Resource Type","type":"string"},"type":{"maxLength":200,"minLength":1,"title":"Type","type":"string"}},"required":["id","type","resource_id","resource_type","message","actor","created_at"],"title":"PlatformEvent","type":"object"},"OnboardingStatus":{"properties":{"cli_connected":{"title":"CLI Connected","type":"boolean"},"cli_connected_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"CLI Connected At"},"skill_agents":{"items":{"type":"string"},"title":"Skill Agents","type":"array"},"skill_installed":{"title":"Skill Installed","type":"boolean"},"skill_installed_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Skill Installed At"},"skill_skipped":{"title":"Skill Skipped","type":"boolean"},"skill_skipped_at":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"title":"Skill Skipped At"}},"required":["cli_connected","cli_connected_at","skill_installed","skill_installed_at","skill_agents","skill_skipped","skill_skipped_at"],"title":"OnboardingStatus","type":"object"},"PlatformSnapshot":{"properties":{"activity":{"items":{"$ref":"#/components/schemas/PlatformEvent"},"title":"Activity","type":"array"},"billing":{"$ref":"#/components/schemas/PlatformBillingSummary"},"onboarding":{"$ref":"#/components/schemas/OnboardingStatus"},"settings":{"$ref":"#/components/schemas/SettingsSummary"},"training_jobs":{"items":{"$ref":"#/components/schemas/ComputeLease"},"title":"Compute Leases","type":"array"}},"required":["billing","training_jobs","activity","settings","onboarding"],"title":"PlatformSnapshot","type":"object"},"PromoteRequest":{"properties":{"email":{"maxLength":320,"minLength":3,"title":"Email","type":"string"},"is_admin":{"default":true,"title":"Is Admin","type":"boolean"}},"required":["email"],"title":"PromoteRequest","type":"object"},"ResourceHealth":{"properties":{"checks":{"items":{"$ref":"#/components/schemas/HealthCheckItem"},"title":"Checks","type":"array"},"provider_details":{"additionalProperties":true,"title":"Provider Details","type":"object"},"resource_id":{"maxLength":96,"minLength":1,"title":"Resource Id","type":"string"},"status":{"enum":["healthy","degraded","unhealthy"],"title":"Status","type":"string"},"updated_at":{"maxLength":64,"minLength":1,"title":"Updated At","type":"string"}},"required":["resource_id","status","checks","updated_at"],"title":"ResourceHealth","type":"object"},"SecretItem":{"properties":{"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"environment":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Environment"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"team_id":{"anyOf":[{"maxLength":96,"minLength":1,"type":"string"},{"type":"null"}],"title":"Team Id"}},"required":["id","name","created_at"],"title":"SecretItem","type":"object"},"SessionInfo":{"properties":{"api_key_prefix":{"anyOf":[{"maxLength":32,"minLength":1,"type":"string"},{"type":"null"}],"title":"Api Key Prefix"},"email":{"maxLength":320,"minLength":3,"title":"Email","type":"string"},"is_admin":{"default":false,"title":"Is Admin","type":"boolean"},"role":{"type":"string","enum":["owner","admin","developer","viewer"]},"tenant_id":{"maxLength":64,"minLength":1,"title":"Tenant Id","type":"string"},"tenant_name":{"maxLength":200,"minLength":1,"title":"Tenant Name","type":"string"},"user_id":{"maxLength":64,"minLength":1,"title":"User Id","type":"string"}},"required":["email","user_id","tenant_id","tenant_name","role"],"title":"SessionInfo","type":"object"},"SetTenantExecutionProviderRequest":{"properties":{"execution_provider":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Execution Provider"}},"title":"SetTenantExecutionProviderRequest","type":"object"},"SettingsSummary":{"properties":{"api_keys":{"items":{"$ref":"#/components/schemas/ApiKeyItem"},"title":"Api Keys","type":"array"},"billing":{"$ref":"#/components/schemas/PlatformBillingSummary"},"general":{"$ref":"#/components/schemas/GeneralSettings"},"members":{"items":{"$ref":"#/components/schemas/MemberItem"},"title":"Members","type":"array"},"secrets":{"items":{"$ref":"#/components/schemas/SecretItem"},"title":"Secrets","type":"array"}},"required":["general","members","api_keys","secrets","billing"],"title":"SettingsSummary","type":"object"},"SignupRequest":{"properties":{"company":{"maxLength":200,"minLength":1,"title":"Company","type":"string"},"email":{"maxLength":320,"minLength":3,"title":"Email","type":"string"},"invite_code":{"maxLength":200,"minLength":1,"title":"Invite Code","type":"string"},"password":{"maxLength":256,"minLength":8,"title":"Password","type":"string"}},"required":["email","password","company","invite_code"],"title":"SignupRequest","type":"object"},"TenantExecutionProviderResponse":{"properties":{"effective_execution_provider":{"maxLength":80,"minLength":1,"title":"Effective Execution Provider","type":"string"},"execution_provider":{"anyOf":[{"maxLength":80,"minLength":1,"type":"string"},{"type":"null"}],"title":"Execution Provider"},"tenant_id":{"maxLength":64,"minLength":1,"title":"Tenant Id","type":"string"}},"required":["tenant_id","execution_provider","effective_execution_provider"],"title":"TenantExecutionProviderResponse","type":"object"},"TraceItem":{"properties":{"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"latency_ms":{"minimum":0,"title":"Latency Ms","type":"number"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"resource_id":{"maxLength":96,"minLength":1,"title":"Resource Id","type":"string"},"spans":{"items":{"$ref":"#/components/schemas/TraceSpan"},"title":"Spans","type":"array"},"status":{"enum":["ok","error"],"title":"Status","type":"string"}},"required":["id","resource_id","name","status","latency_ms","spans","created_at"],"title":"TraceItem","type":"object"},"TracePage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TraceItem"},"title":"Items","type":"array"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"}},"required":["items"],"title":"TracePage","type":"object"},"TraceSpan":{"properties":{"attributes":{"additionalProperties":true,"title":"Attributes","type":"object"},"duration_ms":{"minimum":0,"title":"Duration Ms","type":"number"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"kind":{"enum":["model","gateway","training","system"],"title":"Kind","type":"string"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"status":{"enum":["ok","error"],"title":"Status","type":"string"}},"required":["id","name","kind","duration_ms","status"],"title":"TraceSpan","type":"object"},"UpdateMemberRequest":{"properties":{"role":{"anyOf":[{"enum":["owner","admin","developer","viewer"],"type":"string"},{"type":"null"}],"title":"Role"}},"title":"UpdateMemberRequest","type":"object"},"UpsertSecretRequest":{"properties":{"environment":{"anyOf":[{"maxLength":200,"minLength":1,"type":"string"},{"type":"null"}],"title":"Environment"},"team_id":{"anyOf":[{"maxLength":96,"minLength":1,"type":"string"},{"type":"null"}],"title":"Team Id"},"value":{"maxLength":10000,"minLength":1,"title":"Value","type":"string"}},"required":["value"],"title":"UpsertSecretRequest","type":"object"},"ValidationError":{"properties":{"ctx":{"title":"Context","type":"object"},"input":{"title":"Input"},"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"title":"Location","type":"array"},"msg":{"title":"Message","type":"string"},"type":{"title":"Error Type","type":"string"}},"required":["loc","msg","type"],"title":"ValidationError","type":"object"},"ComputeRunPage":{"type":"object","additionalProperties":false,"required":["items","next_cursor","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ComputeRun"}},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}]},"has_more":{"type":"boolean"}}},"ComputeLease":{"properties":{"created_at":{"maxLength":64,"minLength":1,"title":"Created At","type":"string"},"distributed_backend":{"default":"torchrun","enum":["none","torchrun","deepspeed","ray","slurm"],"title":"Distributed Backend","type":"string"},"gpu_count":{"default":1,"description":"GPU count per node.","minimum":0,"title":"Gpu Count","type":"integer"},"gpu_count_per_node":{"description":"GPU count on each node.","minimum":0,"title":"Gpu Count Per Node","type":"number"},"total_gpu_count":{"description":"GPU count across all nodes.","minimum":0,"title":"Total Gpu Count","type":"number"},"cpu_count":{"description":"CPU count per node.","minimum":1,"title":"Cpu Count","type":"integer"},"cpu_count_per_node":{"description":"CPU count on each node.","minimum":1,"title":"Cpu Count Per Node","type":"integer"},"total_cpu_count":{"description":"CPU count across all nodes.","minimum":1,"title":"Total Cpu Count","type":"integer"},"memory_gb":{"description":"Memory per node in GB.","minimum":1,"title":"Memory Gb","type":"number"},"memory_gb_per_node":{"description":"Memory on each node in GB.","minimum":1,"title":"Memory Gb Per Node","type":"number"},"total_memory_gb":{"description":"Memory across all nodes in GB.","minimum":1,"title":"Total Memory Gb","type":"number"},"storage_gb":{"description":"Attached storage per node in GB.","minimum":1,"title":"Storage Gb","type":"number"},"total_storage_gb":{"description":"Attached storage across all nodes in GB.","minimum":1,"title":"Total Storage Gb","type":"number"},"compute_hourly_price_usd":{"description":"Total retail compute price per hour across all nodes.","minimum":0,"title":"Compute Hourly Price Usd","type":"number"},"compute_hourly_price_usd_per_node":{"description":"Retail compute price per node-hour.","minimum":0,"title":"Compute Hourly Price Usd Per Node","type":"number"},"storage_hourly_price_usd":{"description":"Total retail attached-storage price per hour across all nodes.","minimum":0,"title":"Storage Hourly Price Usd","type":"number"},"storage_hourly_price_usd_per_node":{"description":"Retail attached-storage price per node-hour.","minimum":0,"title":"Storage Hourly Price Usd Per Node","type":"number"},"estimated_hourly_price_usd":{"description":"Total retail hourly price across all nodes, including attached storage.","minimum":0,"title":"Estimated Hourly Price Usd","type":"number"},"estimated_hourly_price_usd_per_node":{"description":"Retail hourly price per node, including attached storage.","minimum":0,"title":"Estimated Hourly Price Usd Per Node","type":"number"},"hardware":{"maxLength":200,"minLength":1,"title":"Hardware","type":"string"},"host_class":{"default":"datacenter","enum":["datacenter","any"],"title":"Host Class","type":"string"},"id":{"maxLength":96,"minLength":1,"title":"Id","type":"string"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"node_count":{"default":1,"description":"Number of identical nodes. Resource fields are per node; totals include every node.","minimum":1,"title":"Node Count","type":"integer"},"project_id":{"default":"default-project","maxLength":96,"minLength":1,"title":"Project Id","type":"string"},"region":{"maxLength":200,"minLength":1,"title":"Region","type":"string"},"status":{"enum":["queued","building","deploying","active","paused","inactive","failed","succeeded","cancelled","hibernating"],"title":"Status","type":"string"},"type":{"type":"string","enum":["compute"],"title":"Type"},"updated_at":{"maxLength":64,"minLength":1,"title":"Updated At","type":"string"}},"required":["id","name","type","status","hardware","host_class","created_at","updated_at"],"title":"ComputeLease","type":"object"},"CreateComputeLeaseRequest":{"properties":{"distributed_backend":{"default":"torchrun","enum":["none","torchrun","deepspeed","ray","slurm"],"title":"Distributed Backend","type":"string"},"gpu_count":{"default":1,"description":"GPU count per node.","maximum":4096,"minimum":0,"title":"Gpu Count","type":"integer"},"hardware":{"default":"H100","maxLength":200,"minLength":1,"title":"Hardware","type":"string"},"host_class":{"default":"datacenter","enum":["datacenter","any"],"title":"Host Class","type":"string"},"idempotency_key":{"maxLength":180,"minLength":1,"title":"Idempotency Key","type":"string"},"instance_type":{"description":"Opaque shape identifier returned by the instance-types endpoint.","maxLength":120,"minLength":1,"title":"Instance Type","type":"string"},"name":{"maxLength":200,"minLength":1,"title":"Name","type":"string"},"node_count":{"default":1,"description":"Number of identical nodes. Pricing, quota, and credit authorization cover every node.","maximum":256,"minimum":1,"title":"Node Count","type":"integer"},"project_id":{"anyOf":[{"maxLength":96,"minLength":1,"type":"string"},{"type":"null"}],"title":"Project Id"},"region":{"description":"Provider-neutral placement such as Europe or United States.","maxLength":200,"minLength":1,"title":"Region","type":"string"},"storage_gb":{"default":250,"maximum":16384,"minimum":1,"title":"Storage Gb","type":"integer"},"ttl_minutes":{"default":120,"maximum":10080,"minimum":1,"title":"Ttl Minutes","type":"integer"}},"required":["name"],"title":"CreateComputeLeaseRequest","type":"object"},"GpuOptionsRequest":{"type":"object","additionalProperties":false,"properties":{"gpu_count":{"type":"integer","minimum":1,"maximum":8,"default":1},"minimum_gpu_memory_gb":{"type":"integer","minimum":0,"maximum":1024,"default":0},"accelerator_family":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"default":"auto"},"location":{"anyOf":[{"type":"string","enum":["europe","united_states"]},{"type":"null"}]},"host_class":{"type":"string","enum":["datacenter","any"],"default":"datacenter"},"maximum_hourly_price_microusd":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000000000000},{"type":"null"}]},"expected_duration_seconds":{"type":"integer","minimum":60,"maximum":604800,"default":3600},"storage_gb":{"type":"integer","minimum":1,"maximum":10000,"default":50,"description":"Attached disk size in GB per machine. Included in the hourly quote; selected when provisioning. Existing disks are not resized."}}},"GpuOption":{"type":"object","additionalProperties":false,"required":["id","gpu_family","gpu_count","gpu_memory_gb","location","purchase_model","hourly_price_microusd","estimated_cost_microusd","expected_duration_seconds","available","live_capacity_depth","price_checked_at","valid_until"],"properties":{"id":{"type":"string","pattern":"^gpuopt_[a-f0-9]{24}$"},"gpu_family":{"type":"string"},"gpu_count":{"type":"integer","minimum":1},"gpu_memory_gb":{"type":"number","exclusiveMinimum":0},"location":{"type":"string","enum":["europe","united_states","other"]},"purchase_model":{"type":"string","enum":["spot"]},"hourly_price_microusd":{"type":"integer","minimum":1},"estimated_cost_microusd":{"type":"integer","minimum":1},"expected_duration_seconds":{"type":"integer","minimum":60},"available":{"type":"boolean"},"live_capacity_depth":{"type":"integer","minimum":0},"price_checked_at":{"type":"string","format":"date-time"},"valid_until":{"type":"string","format":"date-time"}}},"ProblemDetails":{"type":"object","required":["type","title","status","detail","instance"],"properties":{"type":{"type":"string","description":"URI reference identifying the problem type"},"title":{"type":"string"},"status":{"type":"integer","minimum":400,"maximum":599},"detail":{"type":"string"},"instance":{"type":"string","description":"URI reference identifying this occurrence"}},"additionalProperties":true},"BooleanStatus":{"type":"object","additionalProperties":false,"required":["status"],"properties":{"status":{"type":"boolean"}}},"CliDeviceAuthorization":{"type":"object","additionalProperties":false,"required":["device_code","user_code","verification_uri","verification_uri_complete","expires_in","interval"],"properties":{"device_code":{"type":"string"},"user_code":{"type":"string"},"verification_uri":{"type":"string","format":"uri"},"verification_uri_complete":{"type":"string","format":"uri"},"expires_in":{"type":"integer","minimum":1},"interval":{"type":"integer","minimum":1}}},"CliDeviceVerification":{"type":"object","additionalProperties":false,"required":["user_code","device_name","status","expires_at"],"properties":{"user_code":{"type":"string"},"device_name":{"type":"string"},"status":{"type":"string","enum":["pending","approved","denied"]},"expires_at":{"type":"string","format":"date-time"}}},"CliCredential":{"type":"object","additionalProperties":false,"required":["tenant_id","tenant_name","api_key_prefix","name"],"properties":{"tenant_id":{"type":"string"},"tenant_name":{"type":"string"},"api_key_prefix":{"type":"string"},"name":{"type":"string"}}},"CliToken":{"type":"object","additionalProperties":false,"required":["api_key","api_key_prefix","tenant_id","tenant_name"],"properties":{"api_key":{"type":"string"},"api_key_prefix":{"type":"string"},"tenant_id":{"type":"string"},"tenant_name":{"type":"string"}}},"ProviderTreasurySummary":{"type":"object","additionalProperties":false,"required":["provider","balance_usd","committed_usd","safety_buffer_usd","loss_cap_usd","required_usd","recommended_top_up_usd","unfunded_usd","balance_stale","observed_at"],"properties":{"provider":{"type":"string"},"balance_usd":{"type":"number","minimum":0},"committed_usd":{"type":"number","minimum":0},"safety_buffer_usd":{"type":"number","minimum":0},"loss_cap_usd":{"type":"number","exclusiveMinimum":0},"required_usd":{"type":"number","minimum":0},"recommended_top_up_usd":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"unfunded_usd":{"type":"number","minimum":0},"balance_stale":{"type":"boolean"},"observed_at":{"type":"string","format":"date-time"}}},"GpuRecommendationRequest":{"type":"object","additionalProperties":false,"properties":{"gpu_count":{"type":"integer","minimum":1,"maximum":8,"default":1},"minimum_gpu_memory_gb":{"type":"integer","minimum":0,"maximum":1024,"default":0},"accelerator_family":{"anyOf":[{"type":"string","minLength":1,"maxLength":80},{"type":"null"}],"default":"auto"},"location":{"anyOf":[{"type":"string","enum":["europe","united_states"]},{"type":"null"}]},"host_class":{"type":"string","enum":["datacenter","any"],"default":"datacenter"},"maximum_hourly_price_microusd":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000000000000},{"type":"null"}]},"expected_duration_seconds":{"type":"integer","minimum":60,"maximum":604800,"default":3600},"preference":{"type":"string","enum":["balanced","cost","speed"],"default":"balanced"},"storage_gb":{"type":"integer","minimum":1,"maximum":10000,"default":50,"description":"Attached disk size in GB per machine. Included in the hourly quote; selected when provisioning. Existing disks are not resized."}}},"GpuRecommendation":{"type":"object","additionalProperties":false,"required":["id","gpu_family","gpu_count","gpu_memory_gb","location","purchase_model","estimated_cost_microusd","expected_duration_seconds","live_capacity_depth","price_checked_at","valid_until","estimated_hourly_price_microusd","preference","reason"],"properties":{"id":{"type":"string","pattern":"^gpuopt_[a-f0-9]{24}$"},"gpu_family":{"type":"string"},"gpu_count":{"type":"integer","minimum":1},"gpu_memory_gb":{"type":"number","exclusiveMinimum":0},"location":{"type":"string","enum":["europe","united_states","other"]},"purchase_model":{"type":"string","enum":["spot"]},"estimated_cost_microusd":{"type":"integer","minimum":1},"expected_duration_seconds":{"type":"integer","minimum":60},"live_capacity_depth":{"type":"integer","minimum":0},"price_checked_at":{"type":"string","format":"date-time"},"valid_until":{"type":"string","format":"date-time"},"estimated_hourly_price_microusd":{"type":"integer","minimum":1},"preference":{"type":"string","enum":["balanced","cost","speed"]},"reason":{"type":"string"}}}},"securitySchemes":{"AmicsApiKey":{"bearerFormat":"amics API key","description":"Tenant API key sent as a Bearer token.","scheme":"bearer","type":"http"},"AdminToken":{"description":"Bootstrap admin token.","in":"header","name":"x-admin-token","type":"apiKey"},"SessionToken":{"bearerFormat":"amics session token","description":"Authenticated user session with the admin role.","scheme":"bearer","type":"http"}}},"info":{"summary":"amics control plane for bounded, on-demand GPU execution","title":"amics-backend","version":"1.0.0"},"openapi":"3.1.0","paths":{"/healthz":{"get":{"operationId":"healthz_healthz_get","responses":{"200":{"content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"title":"Response Healthz Healthz Get","type":"object"}}},"description":"Successful Response"}},"summary":"Healthz"}},"/v1/waitlist":{"post":{"operationId":"join_waitlist","summary":"Join the early-access waitlist","tags":["engagement"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WaitlistRequest"}}}},"responses":{"202":{"description":"Submission accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementAccepted"}}}},"422":{"description":"Invalid submission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"Hourly submission limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/feedback":{"post":{"operationId":"submit_feedback","summary":"Submit product feedback","tags":["engagement"],"security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FeedbackRequest"}}}},"responses":{"202":{"description":"Submission accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngagementAccepted"}}}},"422":{"description":"Invalid submission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"Hourly submission limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/admin/waitlist":{"get":{"operationId":"list_waitlist","summary":"List the latest waitlist entries","tags":["admin","engagement"],"security":[{"AdminToken":[]},{"SessionToken":[]}],"responses":{"200":{"description":"Latest waitlist entries","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WaitlistEntry"}}}}},"401":{"description":"Authentication required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Admin access required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/admin/feedback":{"get":{"operationId":"list_feedback","summary":"List the latest feedback entries","tags":["admin","engagement"],"security":[{"AdminToken":[]},{"SessionToken":[]}],"responses":{"200":{"description":"Latest feedback entries","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/FeedbackEntry"}}}}},"401":{"description":"Authentication required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Admin access required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/activity":{"get":{"operationId":"activity_v1_activity_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlatformEvent"},"title":"Response Activity V1 Activity Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"security":[{"SessionToken":[]}],"summary":"Activity","tags":["platform"]}},"/v1/admin/activity":{"get":{"operationId":"admin_activity_v1_admin_activity_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminLogEntry"},"title":"Response Admin Activity V1 Admin Activity Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Admin Activity","security":[{"SessionToken":[]}]}},"/v1/admin/invites":{"post":{"operationId":"mint_invite_v1_admin_invites_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInviteRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteResponse"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Mint Invite","security":[{"AdminToken":[]},{"SessionToken":[]}]}},"/v1/admin/service-performance":{"get":{"operationId":"admin_service_performance_v1_admin_service_performance_get","parameters":[{"in":"query","name":"window","required":false,"schema":{"default":"7d","enum":["24h","7d","30d"],"type":"string"}},{"in":"query","name":"service","required":false,"schema":{"default":"all","enum":["all","general_compute"],"type":"string"}},{"in":"query","name":"outcome","required":false,"schema":{"default":"all","enum":["all","in_progress","succeeded","failed","cancelled"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminServicePerformance"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Admin Service Performance","security":[{"SessionToken":[]}]}},"/v1/admin/overview":{"get":{"operationId":"admin_overview_v1_admin_overview_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOverview"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Admin Overview","security":[{"SessionToken":[]}]}},"/v1/admin/tenants":{"get":{"operationId":"admin_tenants_v1_admin_tenants_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminTenant"},"title":"Response Admin Tenants V1 Admin Tenants Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Admin Tenants","security":[{"SessionToken":[]}]}},"/v1/admin/tenants/{tenant_id}":{"get":{"operationId":"admin_tenant_detail_v1_admin_tenants__tenant_id__get","parameters":[{"in":"path","name":"tenant_id","required":true,"schema":{"maxLength":64,"minLength":1,"title":"Tenant Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminTenantDetail"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Admin Tenant Detail","security":[{"SessionToken":[]}]}},"/v1/admin/tenants/{tenant_id}/credit-purchases":{"put":{"operationId":"set_tenant_credit_purchases_v1_admin_tenants__tenant_id__credit_purchases_put","parameters":[{"in":"path","name":"tenant_id","required":true,"schema":{"maxLength":64,"minLength":1,"title":"Tenant Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["credit_purchases_enabled"],"properties":{"credit_purchases_enabled":{"type":"boolean"}}}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"type":"object","required":["tenant_id","credit_purchases_enabled"],"properties":{"tenant_id":{"type":"string"},"credit_purchases_enabled":{"type":"boolean"}}}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"The requested tenant was not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Set Tenant Credit Purchases","security":[{"SessionToken":[]}]}},"/v1/admin/tenants/{tenant_id}/execution-provider":{"put":{"operationId":"set_tenant_execution_provider_v1_admin_tenants__tenant_id__execution_provider_put","parameters":[{"in":"path","name":"tenant_id","required":true,"schema":{"maxLength":64,"minLength":1,"title":"Tenant Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTenantExecutionProviderRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantExecutionProviderResponse"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Set Tenant Execution Provider","security":[{"SessionToken":[]}]}},"/v1/admin/users/promote":{"post":{"description":"Bootstrap an operator: grant/revoke admin scope for an existing user\n(admin-token authed, so the first operator can be minted before any admin\nuser exists).","operationId":"promote_user_v1_admin_users_promote_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoteRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Promote User","security":[{"AdminToken":[]}]}},"/v1/auth/invitations/{invitation_id}":{"get":{"operationId":"get_workspace_invitation_v1_auth_invitations__invitation_id__get","parameters":[{"in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceInvitation"}}},"description":"Successful Response"}},"summary":"Get workspace invitation"}},"/v1/auth/invitations/{invitation_id}/accept":{"post":{"operationId":"accept_workspace_invitation_v1_auth_invitations__invitation_id__accept_post","parameters":[{"in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Accept workspace invitation","security":[{"SessionToken":[]}]}},"/v1/auth/invitations/{invitation_id}/signup":{"post":{"operationId":"signup_from_workspace_invitation_v1_auth_invitations__invitation_id__signup_post","parameters":[{"in":"path","name":"invitation_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationSignupRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}},"description":"Successful Response"}},"summary":"Create account from workspace invitation"}},"/v1/auth/login":{"post":{"operationId":"login_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}},"description":"Successful Response"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Login"}},"/v1/auth/logout":{"post":{"operationId":"logout_v1_auth_logout_post","responses":{"204":{"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Logout","security":[{"SessionToken":[]}]}},"/v1/auth/me":{"get":{"operationId":"me_v1_auth_me_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionInfo"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Me","security":[{"SessionToken":[]}]}},"/v1/auth/signup":{"post":{"operationId":"signup_v1_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}},"description":"Successful Response"},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Signup"}},"/v1/platform/activity":{"get":{"operationId":"activity_v1_platform_activity_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/PlatformEvent"},"title":"Response Activity V1 Platform Activity Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Activity","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/billing/credits":{"get":{"operationId":"list_credit_purchases_v1_platform_billing_credits_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CreditPurchase"},"type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"List Credit Purchases","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/billing/credits/{purchase_id}":{"get":{"operationId":"get_credit_purchase_v1_platform_billing_credits_purchase_id_get","parameters":[{"in":"path","name":"purchase_id","required":true,"schema":{"type":"string","title":"Purchase Id"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPurchase"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Credit purchase not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Get Credit Purchase","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/billing/config":{"get":{"operationId":"stripe_billing_config_v1_platform_billing_config_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeBillingConfig"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Stripe Billing Config","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/billing/checkout-session":{"post":{"operationId":"create_credit_checkout_v1_platform_billing_checkout_session_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditPurchaseRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditCheckoutSession"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Create Credit Checkout","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/billing/ledger":{"get":{"operationId":"billing_ledger_v1_platform_billing_ledger_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/BillingLedgerItem"},"title":"Response Billing Ledger V1 Platform Billing Ledger Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Billing Ledger","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/billing/summary":{"get":{"operationId":"platform_billing_summary_v1_platform_billing_summary_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformBillingSummary"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Platform Billing Summary","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/compute/source-snapshots":{"post":{"operationId":"create_compute_source_snapshot","summary":"Create or resume an immutable source snapshot","description":"Creates a tenant-scoped content-addressed snapshot. Repeating the same project and digest returns the existing snapshot.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateComputeSourceSnapshotRequest"}}}},"responses":{"200":{"description":"Existing source snapshot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeSourceSnapshot"}}}},"201":{"description":"Source snapshot created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeSourceSnapshot"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Digest conflicts with existing snapshot metadata","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid manifest, digest, or archive bounds","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"503":{"description":"Source staging is temporarily unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/source-snapshots/{snapshotId}":{"get":{"operationId":"get_compute_source_snapshot","summary":"Get source snapshot upload state","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"parameters":[{"in":"path","name":"snapshotId","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Tenant-scoped source snapshot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeSourceSnapshot"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Source snapshot not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/source-snapshots/{snapshotId}/chunks/{chunkIndex}":{"put":{"operationId":"upload_compute_source_snapshot_chunk","summary":"Upload one immutable source snapshot chunk","description":"Uploads an exact-size chunk with an end-to-end SHA-256 checksum. Repeating the same bytes is idempotent.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"parameters":[{"in":"path","name":"snapshotId","required":true,"schema":{"type":"string","minLength":1}},{"in":"path","name":"chunkIndex","required":true,"schema":{"type":"integer","minimum":0}},{"in":"header","name":"X-Amics-Chunk-SHA256","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"}}],"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"responses":{"200":{"description":"Updated source snapshot upload state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeSourceSnapshot"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Source snapshot not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Chunk was already committed with different bytes","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"415":{"description":"Request is not application/octet-stream","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Chunk index, size, or checksum is invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"503":{"description":"Source staging is temporarily unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/runs":{"get":{"operationId":"list_compute_runs","summary":"List compute runs for the authenticated tenant","description":"Cursor-paged run history in reverse chronological order. Filter by project, compute resource, or run status.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"parameters":[{"in":"query","name":"project_id","required":false,"schema":{"type":"string","maxLength":96,"pattern":"^[A-Za-z0-9][A-Za-z0-9._-]*$"}},{"in":"query","name":"compute_id","required":false,"schema":{"type":"string","minLength":1,"maxLength":120}},{"in":"query","name":"status","required":false,"description":"Comma-separated run statuses.","schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":200,"default":50}},{"in":"query","name":"cursor","required":false,"description":"Opaque cursor returned as next_cursor by a previous page.","schema":{"type":"string"}}],"responses":{"200":{"description":"Ordered page of compute runs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeRunPage"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Filter, limit, or cursor is invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"post":{"operationId":"create_compute_run","summary":"Execute a literal command on compatible GPU compute","description":"Persists the run before acquisition or submission. Repeating the same Idempotency-Key and body returns the same run; a changed body conflicts.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"parameters":[{"in":"header","name":"Idempotency-Key","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]{0,199}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateComputeRunRequest"}}}},"responses":{"200":{"description":"Existing idempotent run","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeRun"}}}},"202":{"description":"Run accepted and durably queued","headers":{"Location":{"schema":{"type":"string"},"description":"Run inspection URL"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeRun"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"402":{"description":"Insufficient credits for acquisition","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Idempotency conflict or source/workspace is not ready","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid command, constraint, price, runtime, or lifecycle intent","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"503":{"description":"Execution or workspace capacity is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/services/{runId}":{"get":{"operationId":"get_compute_service","summary":"Get service lifecycle and readiness state","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"parameters":[{"in":"path","name":"runId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Tenant-scoped service run with readiness in service.status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeRun"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Service not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/services/{runId}/stop":{"post":{"operationId":"stop_compute_service","summary":"Stop a service and release its compute","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"parameters":[{"in":"path","name":"runId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Service was already terminal"},"202":{"description":"Stop requested"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Service not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/runs/{runId}":{"get":{"operationId":"get_compute_run","summary":"Get durable compute run state","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"parameters":[{"in":"path","name":"runId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}}],"responses":{"200":{"description":"Tenant-scoped compute run","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeRun"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Compute run not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/runs/{runId}/output":{"get":{"operationId":"list_compute_run_output","summary":"Read byte-exact stdout and stderr frames","description":"Returns ordered binary-safe frames after an opaque generation-bound cursor.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute","logs"],"parameters":[{"in":"path","name":"runId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":200}}],"responses":{"200":{"description":"Ordered output page","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeOutputPage"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Compute run not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Cursor is invalid or belongs to another run generation","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/runs/{runId}/output/stream":{"get":{"operationId":"stream_compute_run_output","summary":"Follow byte-exact compute output as NDJSON","description":"Each non-empty line is a ComputeOutputFrame. Blank heartbeat lines may be ignored. Reconnect with the last acknowledged cursor.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute","logs"],"parameters":[{"in":"path","name":"runId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"NDJSON output-frame stream","content":{"application/x-ndjson":{"schema":{"type":"string"},"example":"{\"version\":1,\"cursor\":\"opaque\",\"sequence\":\"1\",\"stream\":\"stdout\",\"byte_offset\":\"0\",\"payload_base64\":\"b2sK\",\"observed_at\":\"2026-07-21T12:00:00.000Z\"}\n"}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Compute run not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Cursor is invalid or belongs to another run generation","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/runs/{runId}/runtime-logs/stream":{"get":{"operationId":"stream_compute_run_runtime_logs","summary":"Follow runtime preparation logs","description":"Streams the redacted setup log associated with this run without exposing its internal control-plane identity.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute","logs"],"parameters":[{"in":"path","name":"runId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}},{"in":"query","name":"follow","required":false,"schema":{"type":"boolean","default":true}},{"in":"query","name":"tail","required":false,"schema":{"type":"integer","minimum":1,"maximum":1000,"default":200}}],"responses":{"200":{"description":"Plain-text runtime preparation log","content":{"text/plain":{"schema":{"type":"string"}}}},"204":{"description":"Runtime preparation has not created a log yet"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Compute run not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Follow or tail is invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/runs/{runId}/cancel":{"post":{"operationId":"cancel_compute_run","summary":"Cancel one compute run generation","description":"Cancellation is idempotent. cancel_compute also requests release of a provided compute resource; auto-acquired resources always obey their server-side lease policy.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"parameters":[{"in":"path","name":"runId","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{32}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelComputeRunRequest"}}}},"responses":{"200":{"description":"Run was already terminal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeRun"}}}},"202":{"description":"Cancellation requested","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeRun"}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Compute run not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Cancellation generation is stale","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Cancellation request is invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/instance-types":{"get":{"operationId":"platform_instance_types_v1_platform_instance_types_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InstanceType"},"title":"Response Platform Instance Types V1 Platform Instance Types Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Platform Instance Types","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/onboarding":{"get":{"operationId":"onboarding_status_v1_platform_onboarding_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Onboarding Status","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/onboarding/skill-installed":{"post":{"operationId":"record_skill_install_v1_platform_onboarding_skill_installed_post","requestBody":{"content":{"application/json":{"schema":{"properties":{"agents":{"items":{"type":"string"},"minItems":1,"type":"array"}},"required":["agents"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"No valid installed agent was provided"}},"summary":"Record Skill Installation","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/onboarding/skill-skipped":{"post":{"operationId":"record_skill_skip_v1_platform_onboarding_skill_skipped_post","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"CLI is not connected"}},"summary":"Record Skill Skip","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/resources/{resource_id}/health":{"get":{"operationId":"resource_health_v1_platform_resources__resource_id__health_get","parameters":[{"in":"path","name":"resource_id","required":true,"schema":{"title":"Resource Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceHealth"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Resource Health","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/resources/{resource_id}/logs":{"get":{"operationId":"resource_logs_v1_platform_resources__resource_id__logs_get","parameters":[{"in":"path","name":"resource_id","required":true,"schema":{"title":"Resource Id","type":"string"}},{"in":"query","name":"cursor","required":false,"schema":{"type":"string","maxLength":512}},{"in":"query","name":"levels","required":false,"schema":{"type":"string","pattern":"^(debug|info|warning|error)(,(debug|info|warning|error))*$"}},{"in":"query","name":"limit","required":false,"schema":{"type":"integer","minimum":1,"maximum":500,"default":200}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogPage"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Resource Logs","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/resources/{resource_id}/logs/download":{"get":{"operationId":"resource_log_download_v1_platform_resources__resource_id__logs_download_get","parameters":[{"in":"path","name":"resource_id","required":true,"schema":{"title":"Resource Id","type":"string"}}],"responses":{"200":{"content":{"application/gzip":{"schema":{"type":"string","format":"binary"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Resource Log Download","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/resources/{resource_id}/metrics":{"get":{"operationId":"resource_metrics_v1_platform_resources__resource_id__metrics_get","parameters":[{"in":"path","name":"resource_id","required":true,"schema":{"title":"Resource Id","type":"string"}},{"in":"query","name":"window","required":false,"schema":{"default":"24h","pattern":"^(1h|6h|24h|7d)$","title":"Window","type":"string"}},{"description":"Inclusive lower observation bound. Defaults to one window before until.","in":"query","name":"since","required":false,"schema":{"format":"date-time","title":"Since","type":"string"}},{"description":"Inclusive upper observation bound. Defaults to the current time.","in":"query","name":"until","required":false,"schema":{"format":"date-time","title":"Until","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentMetricsResponse"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Resource Metrics","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/resources/{resource_id}/traces":{"get":{"operationId":"resource_traces_v1_platform_resources__resource_id__traces_get","parameters":[{"in":"path","name":"resource_id","required":true,"schema":{"title":"Resource Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TracePage"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Resource Traces","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/settings":{"get":{"operationId":"settings_v1_platform_settings_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsSummary"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Settings","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/settings/api-keys":{"post":{"operationId":"create_platform_key_v1_platform_settings_api_keys_post","parameters":[{"in":"query","name":"team_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePlatformApiKeyRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedPlatformApiKey"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Create Platform Key","tags":["platform"],"security":[{"SessionToken":[]}]},"get":{"description":"List all active (non-revoked) API keys for the caller's tenant.","operationId":"list_keys_v1_keys_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ApiKeyListItem"},"title":"Response List Keys V1 Keys Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"List organization API keys","security":[{"SessionToken":[]}]}},"/v1/platform/settings/api-keys/{prefix}":{"delete":{"operationId":"delete_platform_key_v1_platform_settings_api_keys__prefix__delete","parameters":[{"in":"path","name":"prefix","required":true,"schema":{"minLength":1,"title":"Prefix","type":"string"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Delete Platform Key","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/settings/members":{"post":{"operationId":"add_member_v1_platform_settings_members_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddMemberRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberItem"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Add Member","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/settings/members/{member_id}":{"delete":{"operationId":"delete_member_v1_platform_settings_members__member_id__delete","parameters":[{"in":"path","name":"member_id","required":true,"schema":{"minLength":1,"title":"Member Id","type":"string"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Delete Member","tags":["platform"],"security":[{"SessionToken":[]}]},"patch":{"operationId":"update_member_v1_platform_settings_members__member_id__patch","parameters":[{"in":"path","name":"member_id","required":true,"schema":{"minLength":1,"title":"Member Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemberRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberItem"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Update Member","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/settings/secrets/{name}":{"delete":{"operationId":"delete_secret_v1_platform_settings_secrets__name__delete","parameters":[{"in":"path","name":"name","required":true,"schema":{"maxLength":200,"minLength":1,"title":"Name","type":"string"}},{"in":"query","name":"team_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Team Id"}}],"responses":{"204":{"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Delete Secret","tags":["platform"],"security":[{"SessionToken":[]}]},"put":{"operationId":"upsert_secret_v1_platform_settings_secrets__name__put","parameters":[{"in":"path","name":"name","required":true,"schema":{"maxLength":200,"minLength":1,"title":"Name","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpsertSecretRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecretItem"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Upsert Secret","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/snapshot":{"get":{"operationId":"snapshot_v1_platform_snapshot_get","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlatformSnapshot"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Snapshot","tags":["platform"],"security":[{"SessionToken":[]}]}},"/v1/platform/training":{"get":{"operationId":"training_v1_platform_training_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ComputeLease"},"title":"Response Training V1 Platform Training Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"Training","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. Use /v1/platform/compute/leases.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/training/jobs":{"post":{"operationId":"create_training_job_v1_platform_training_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateComputeLeaseRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Idempotency key is bound to a different compute launch","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Create Training Job","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. Use /v1/platform/compute/leases.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]},"get":{"operationId":"list_training_jobs_compatibility","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ComputeLease"},"title":"Response List Compute Leases V1 Platform Compute Leases Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"List training jobs","tags":["platform"],"description":"Compatibility alias for released clients. Use /v1/platform/compute/leases.","deprecated":true,"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/training/jobs/{job_id}":{"delete":{"operationId":"delete_training_job_v1_platform_training_jobs__job_id__delete","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"minLength":1,"title":"Job Id","type":"string"}},{"in":"query","name":"training_project_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Project Id"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Delete Training Job","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. Use /v1/platform/compute/leases.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]},"get":{"operationId":"training_job_detail_v1_platform_training_jobs__job_id__get","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"minLength":1,"title":"Job Id","type":"string"}},{"in":"query","name":"training_project_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Project Id"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Training Job Detail","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. Use /v1/platform/compute/leases.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]},"patch":{"operationId":"rename_compute_cluster_v1_platform_training_jobs__job_id__patch","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"minLength":1,"title":"Job Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"maxLength":200,"minLength":1,"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Rename Compute Cluster","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. Use /v1/platform/compute/leases.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/training/jobs/{job_id}/stop":{"post":{"operationId":"stop_training_job_v1_platform_training_jobs__job_id__stop_post","parameters":[{"in":"path","name":"job_id","required":true,"schema":{"minLength":1,"title":"Job Id","type":"string"}},{"in":"query","name":"training_project_id","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Training Project Id"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Stop Training Job","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. Use /v1/platform/compute/leases.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/compute/leases":{"get":{"operationId":"list_compute_leases_v1_platform_compute_leases_get","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ComputeLease"},"title":"Response List Compute Leases V1 Platform Compute Leases Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"List compute leases","tags":["platform"],"description":"Lists reusable compute leases for the authenticated tenant.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]},"post":{"operationId":"create_compute_lease_v1_platform_compute_leases_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateComputeLeaseRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Idempotency key is bound to a different compute launch","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Create compute lease","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/compute/leases/{lease_id}":{"delete":{"operationId":"delete_compute_lease_v1_platform_compute_leases__lease_id__delete","parameters":[{"in":"path","name":"lease_id","required":true,"schema":{"minLength":1,"title":"Lease Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Stop compute lease","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]},"get":{"operationId":"get_compute_lease_v1_platform_compute_leases__lease_id__get","parameters":[{"in":"path","name":"lease_id","required":true,"schema":{"minLength":1,"title":"Lease Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Get compute lease","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]},"patch":{"operationId":"rename_compute_lease_v1_platform_compute_leases__lease_id__patch","parameters":[{"in":"path","name":"lease_id","required":true,"schema":{"minLength":1,"title":"Lease Id","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"properties":{"name":{"maxLength":200,"minLength":1,"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Rename compute lease","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/compute/leases/{lease_id}/stop":{"post":{"operationId":"stop_compute_lease_v1_platform_compute_leases__lease_id__stop_post","parameters":[{"in":"path","name":"lease_id","required":true,"schema":{"minLength":1,"title":"Lease Id","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Stop compute lease","tags":["platform"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/compute/gpu-options":{"post":{"operationId":"list_compute_gpu_options","summary":"List live GPU options","description":"Returns current provider-neutral GPU families, prices, locations, and capacity depth without choosing for the caller.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"tags":["platform","compute"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GpuOptionsRequest"}}}},"responses":{"200":{"description":"Live compatible GPU options","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GpuOption"}}}}},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid GPU option filters","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/auth/cli/device":{"post":{"operationId":"start_cli_device_authorization","summary":"Start CLI device authorization","tags":["auth","cli"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"properties":{"device_name":{"type":"string","maxLength":80}}}}}},"responses":{"200":{"description":"Device authorization created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliDeviceAuthorization"}}}},"422":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/auth/cli/device/verify":{"post":{"operationId":"verify_cli_device_authorization","summary":"Verify a CLI device code","tags":["auth","cli"],"security":[{"SessionToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["user_code"],"properties":{"user_code":{"type":"string","maxLength":32}}}}}},"responses":{"200":{"description":"Device authorization state","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliDeviceVerification"}}}},"401":{"description":"Not authenticated","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Device code not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"410":{"description":"Device code expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/auth/cli/device/approve":{"post":{"operationId":"approve_cli_device_authorization","summary":"Approve a CLI device code","tags":["auth","cli"],"security":[{"SessionToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["user_code"],"properties":{"user_code":{"type":"string","maxLength":32}}}}}},"responses":{"200":{"description":"Device authorization approved","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["status"],"properties":{"status":{"type":"string","const":"approved"}}}}}},"401":{"description":"Not authenticated","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Missing compute permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Device code not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Device code already processed","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"410":{"description":"Device code expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/auth/cli/token":{"post":{"operationId":"exchange_cli_device_code","summary":"Exchange a CLI device code","tags":["auth","cli"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["device_code"],"properties":{"device_code":{"type":"string","maxLength":256}}}}}},"responses":{"200":{"description":"Tenant CLI credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliToken"}}}},"202":{"description":"Authorization pending","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["status","interval"],"properties":{"status":{"type":"string","const":"authorization_pending"},"interval":{"type":"integer","minimum":1}}}}}},"400":{"description":"Invalid device code","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Authorization denied","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"410":{"description":"Device code expired","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"Polling too frequently","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/auth/cli":{"get":{"operationId":"inspect_cli_credential","summary":"Inspect the current CLI credential","tags":["auth","cli"],"security":[{"AmicsApiKey":[]}],"responses":{"200":{"description":"Current CLI credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliCredential"}}}},"401":{"description":"Credential missing or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}},"delete":{"operationId":"revoke_cli_credential","summary":"Revoke the current CLI credential","tags":["auth","cli"],"security":[{"AmicsApiKey":[]}],"responses":{"204":{"description":"Credential revoked"},"401":{"description":"Credential missing or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/auth/password/forgot":{"post":{"operationId":"request_password_reset","summary":"Request a password reset","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["email"],"properties":{"email":{"type":"string","format":"email","maxLength":320}}}}}},"responses":{"200":{"description":"Request accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BooleanStatus"}}}},"422":{"description":"Invalid request","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/auth/password/reset":{"post":{"operationId":"reset_password","summary":"Complete a password reset","tags":["auth"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["token","new_password"],"properties":{"token":{"type":"string","maxLength":512},"new_password":{"type":"string","minLength":8,"maxLength":256,"writeOnly":true}}}}}},"responses":{"200":{"description":"Password reset","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BooleanStatus"}}}},"400":{"description":"Invalid or expired reset link","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid password","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"429":{"description":"Rate limit exceeded","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"500":{"description":"Password screening unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/compute/recommendations":{"post":{"operationId":"recommend_compute_gpu","summary":"Recommend a live GPU option","description":"Chooses one provider-neutral option using the caller's price, speed, or balanced preference.","tags":["platform","compute"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GpuRecommendationRequest"}}}},"responses":{"200":{"description":"Recommended GPU option","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GpuRecommendation"}}}},"401":{"description":"Not authenticated","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Missing compute permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Requested capacity is unavailable","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid recommendation filters","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/resources/{resource_id}/logs/stream":{"get":{"operationId":"stream_resource_logs","summary":"Stream resource logs","tags":["platform","telemetry"],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}],"parameters":[{"name":"resource_id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"levels","in":"query","required":false,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","maxLength":512}},{"name":"Last-Event-ID","in":"header","required":false,"schema":{"type":"string","maxLength":512}}],"responses":{"200":{"description":"Server-sent resource log events","content":{"text/event-stream":{"schema":{"type":"string"}}}},"401":{"description":"Not authenticated","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Missing logs permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"404":{"description":"Resource not found","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid cursor or log level","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/admin/provider-treasury":{"get":{"operationId":"list_provider_treasury","summary":"List provider treasury state","tags":["admin"],"security":[{"SessionToken":[]}],"responses":{"200":{"description":"Provider treasury summaries","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ProviderTreasurySummary"}}}}},"401":{"description":"Not authenticated","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Admin role required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/admin/provider-treasury/{provider}":{"put":{"operationId":"record_provider_treasury_snapshot","summary":"Record a provider treasury snapshot","tags":["admin"],"security":[{"SessionToken":[]}],"parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["balance_usd","loss_cap_usd","safety_buffer_usd","idempotency_key"],"properties":{"balance_usd":{"type":"number","minimum":0},"loss_cap_usd":{"type":"number","exclusiveMinimum":0},"safety_buffer_usd":{"type":"number","minimum":0},"balance_ttl_minutes":{"type":"integer","minimum":1,"maximum":1440,"default":30},"idempotency_key":{"type":"string","minLength":8,"maxLength":200},"observed_at":{"type":"string","format":"date-time"}}}}}},"responses":{"200":{"description":"Recorded provider treasury summary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderTreasurySummary"}}}},"401":{"description":"Not authenticated","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"Admin role required","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Idempotency or snapshot ordering conflict","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"description":"Invalid provider treasury snapshot","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}},"/v1/platform/training/workstations":{"get":{"operationId":"list_training_workstations_compatibility","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ComputeLease"},"title":"Response List Compute Leases V1 Platform Compute Leases Get","type":"array"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}},"summary":"List training workstations","tags":["platform"],"description":"Compatibility alias for released clients. Use /v1/platform/compute/leases.","deprecated":true,"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/training/projects/{training_project_id}/workstations":{"post":{"operationId":"create_training_workstation_compatibility","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateComputeLeaseRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"409":{"description":"Idempotency key is bound to a different compute launch","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Create a training workstation","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. The training project identifier is ignored; use /v1/platform/compute/leases.","parameters":[{"name":"training_project_id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/training/projects/{training_project_id}/workstations/{workstation_id}":{"get":{"operationId":"get_training_workstation_compatibility","parameters":[{"name":"training_project_id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"workstation_id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Get a training workstation","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. The training project identifier is ignored; use /v1/platform/compute/leases/{lease_id}.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}},"/v1/platform/training/projects/{training_project_id}/workstations/{workstation_id}/stop":{"post":{"operationId":"stop_training_workstation_compatibility","parameters":[{"name":"training_project_id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"workstation_id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ComputeLease"}}},"description":"Successful Response"},"401":{"description":"Authentication is required or invalid","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"403":{"description":"The authenticated principal lacks permission","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}},"422":{"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}},"description":"Validation Error"}},"summary":"Stop a training workstation","tags":["platform"],"deprecated":true,"description":"Compatibility alias for released clients. The training project identifier is ignored; use /v1/platform/compute/leases/{lease_id}/stop.","security":[{"AmicsApiKey":[]},{"SessionToken":[]}]}}}}