{"components":{"schemas":{"AccountApiKeyResponse":{"properties":{"api_key":{"type":"string"}},"required":["api_key"],"type":"object"},"AccountDailyUsageResponse":{"properties":{"day":{"format":"date-time","type":"string"},"exec_time_ms":{"type":"number"},"queries_executed":{"type":"integer"},"rows_touched":{"type":"integer"}},"required":["day","queries_executed","rows_touched","exec_time_ms"],"type":"object"},"AccountMonthlyUsageResponse":{"properties":{"exec_time_ms":{"type":"number"},"month":{"format":"date-time","type":"string"},"queries_executed":{"type":"integer"},"rows_touched":{"type":"integer"}},"required":["month","queries_executed","rows_touched","exec_time_ms"],"type":"object"},"AccountSetupRequest":{"properties":{"db_password":{"maxLength":128,"minLength":8,"type":"string"},"region":{"type":"string"},"tier_id":{"format":"uuid","type":"string"}},"required":["tier_id","db_password","region"],"type":"object"},"AccountSetupResponse":{"properties":{"api_key":{"type":"string"},"instance_host":{"type":["string","null"]},"instance_ready":{"type":"boolean"},"instance_status":{"type":["string","null"]},"is_configured":{"type":"boolean"},"project_count":{"type":"integer"},"project_limit":{"type":["integer","null"]},"region":{"type":"string"},"tier_id":{"format":"uuid","type":["string","null"]},"tier_name":{"type":["string","null"]},"waitlist_message":{"type":["string","null"]},"waitlisted":{"type":"boolean"}},"required":["api_key","region","is_configured","waitlisted","project_count","instance_ready"],"type":"object"},"AccountStatsResponse":{"properties":{"account_tag":{"type":"string"},"first_seen":{"format":"date-time","type":"string"},"last_seen":{"format":"date-time","type":"string"},"storage_limit_size_bytes":{"type":["integer","null"]},"total_connections":{"type":"integer"},"total_cpu_seconds":{"type":"integer"},"total_exec_time_ms":{"type":"number"},"total_file_storage_bytes":{"type":"integer"},"total_queries":{"type":"integer"},"total_rows":{"type":"integer"},"total_storage_bytes":{"type":"integer"},"usage_limit_size_bytes":{"type":["integer","null"]}},"required":["account_tag","total_storage_bytes","total_file_storage_bytes","total_connections","total_queries","total_rows"],"type":"object"},"AccountStatsRollupsResponse":{"properties":{"daily":{"items":{"$ref":"#/components/schemas/AccountDailyUsageResponse"},"type":"array"},"monthly":{"items":{"$ref":"#/components/schemas/AccountMonthlyUsageResponse"},"type":"array"}},"required":["daily","monthly"],"type":"object"},"AdminCouponAssignmentsRequest":{"properties":{"emails":{"items":{"type":"string"},"type":"array"}},"required":["emails"],"type":"object"},"AdminCouponRedemptionResponse":{"properties":{"coupon_id":{"format":"uuid","type":"string"},"created_at":{"type":"integer"},"currency":{"type":"string"},"discount_amount_minor":{"type":"integer"},"final_amount_minor":{"type":"integer"},"id":{"format":"uuid","type":"string"},"original_amount_minor":{"type":"integer"},"payment_id":{"type":"string"},"subscription_id":{"type":"string"},"user_email":{"type":"string"},"user_id":{"format":"uuid","type":"string"}},"required":["id","coupon_id","user_id","user_email","subscription_id","payment_id","original_amount_minor","discount_amount_minor","final_amount_minor","currency","created_at"],"type":"object"},"AdminCouponRequest":{"properties":{"active":{"type":"boolean"},"amount_minor":{"type":["integer","null"]},"applies_to_all":{"type":"boolean"},"billing_scope":{"enum":["first_payment","recurring"],"type":"string"},"code":{"maxLength":64,"minLength":1,"type":"string"},"currency":{"type":["string","null"]},"discount_type":{"enum":["percentage","absolute"],"type":"string"},"expires_at":{"type":["integer","null"]},"percentage_bps":{"type":["integer","null"]},"razorpay_offer_id":{"type":["string","null"]},"tier_id":{"format":"uuid","type":"string"}},"required":["tier_id","code","discount_type","billing_scope","applies_to_all","active"],"type":"object"},"AdminCouponResponse":{"properties":{"active":{"type":"boolean"},"amount_minor":{"type":["integer","null"]},"applies_to_all":{"type":"boolean"},"assigned_emails":{"items":{"type":"string"},"type":"array"},"billing_scope":{"enum":["first_payment","recurring"],"type":"string"},"code":{"type":"string"},"created_at":{"type":"integer"},"currency":{"type":["string","null"]},"discount_type":{"enum":["percentage","absolute"],"type":"string"},"expires_at":{"type":["integer","null"]},"id":{"format":"uuid","type":"string"},"percentage_bps":{"type":["integer","null"]},"razorpay_offer_id":{"type":["string","null"]},"redemption_count":{"type":"integer"},"tier_id":{"format":"uuid","type":"string"},"tier_name":{"type":"string"},"updated_at":{"type":"integer"}},"required":["id","tier_id","tier_name","code","discount_type","billing_scope","applies_to_all","active","assigned_emails","redemption_count","created_at","updated_at"],"type":"object"},"AuthResponse":{"properties":{"avatar_url":{"type":["string","null"]},"refresh_token":{"type":"string"},"token":{"type":"string"}},"required":["token","refresh_token"],"type":"object"},"BillingProfileResponse":{"properties":{"address_line1":{"type":["string","null"]},"address_line2":{"type":["string","null"]},"city":{"type":["string","null"]},"company_name":{"type":["string","null"]},"country":{"type":"string"},"full_name":{"type":["string","null"]},"gstin":{"type":["string","null"]},"id":{"format":"uuid","type":["string","null"]},"postal_code":{"type":["string","null"]},"state":{"type":["string","null"]}},"required":["country"],"type":"object"},"CliOauthTokenRequest":{"properties":{"client_id":{"maxLength":2048,"minLength":1,"type":"string"},"code":{"maxLength":4096,"minLength":1,"type":"string"},"code_verifier":{"maxLength":256,"minLength":1,"type":"string"},"grant_type":{"maxLength":64,"minLength":1,"type":"string"},"redirect_uri":{"maxLength":2048,"minLength":1,"type":"string"},"resource":{"type":["string","null"]}},"required":["grant_type","client_id","redirect_uri","code","code_verifier"],"type":"object"},"CliOauthTokenResponse":{"properties":{"access_token":{"type":"string"},"scope":{"type":"string"},"token_type":{"type":"string"}},"required":["access_token","token_type","scope"],"type":"object"},"CreateProjectMigrationRequest":{"properties":{"project_selector":{"maxLength":256,"minLength":1,"type":"string"},"source_kind":{"type":"string"},"source_label":{"maxLength":512,"minLength":1,"type":"string"},"source_payload_base64":{"type":["string","null"]},"source_url":{"type":["string","null"]}},"required":["project_selector","source_kind","source_label"],"type":"object"},"CreateProjectRequest":{"properties":{"project_name":{"maxLength":256,"minLength":3,"type":"string"}},"required":["project_name"],"type":"object"},"CreateProjectRestoreRequest":{"properties":{"mode":{"maxLength":32,"minLength":1,"type":"string"},"scheduled_backup_id":{"format":"uuid","type":["string","null"]},"timestamp":{"type":["string","null"]}},"required":["mode"],"type":"object"},"CreateProjectTableRequest":{"properties":{"columns":{"items":{},"type":"array"},"create_schema":{"type":"boolean"},"schema":{"type":"string"},"table":{"type":"string"}},"required":["schema","table","columns"],"type":"object"},"CreateS3CredentialRequest":{"properties":{"can_delete":{"type":"boolean"},"can_read":{"type":"boolean"},"can_write":{"type":"boolean"},"expires_at":{"type":["integer","null"]},"label":{"type":["string","null"]},"project_id":{"format":"uuid","type":"string"}},"required":["project_id"],"type":"object"},"CreateS3CredentialResponse":{"properties":{"access_key_id":{"type":"string"},"bucket_addressing":{"type":"string"},"can_delete":{"type":"boolean"},"can_read":{"type":"boolean"},"can_write":{"type":"boolean"},"created_at":{"type":"integer"},"endpoint_url":{"type":"string"},"expires_at":{"type":"integer"},"force_path_style":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"label":{"type":["string","null"]},"project_id":{"format":"uuid","type":"string"},"region":{"type":"string"},"secret_access_key":{"type":"string"}},"required":["id","project_id","access_key_id","endpoint_url","region","force_path_style","bucket_addressing","can_read","can_write","can_delete","expires_at","created_at","secret_access_key"],"type":"object"},"CreateStorageBucketRequest":{"properties":{"allowed_mime_types":{"items":{"type":"string"},"type":"array"},"file_size_limit":{"type":["integer","null"]},"name":{"type":"string"},"project_id":{"format":"uuid","type":"string"},"public":{"type":"boolean"}},"required":["project_id","name"],"type":"object"},"CreateStorageFolderRequest":{"properties":{"name":{"type":"string"},"prefix":{"type":"string"},"project_id":{"format":"uuid","type":"string"}},"required":["project_id","name"],"type":"object"},"CurrentSubscriptionResponse":{"properties":{"billing_period":{"type":"string"},"can_cancel":{"type":"boolean"},"renews_at":{"type":["integer","null"]},"status":{"type":"string"},"subscription_id":{"type":"string"},"tier_name":{"type":"string"}},"required":["subscription_id","status","tier_name","billing_period","can_cancel"],"type":"object"},"DeleteTableRowRequest":{"properties":{"key":{},"keys":{"items":{},"type":"array"},"schema":{"type":"string"},"table":{"type":"string"}},"required":["schema","table"],"type":"object"},"DevicePollRequest":{"properties":{"device_code":{"maxLength":256,"minLength":1,"type":"string"}},"required":["device_code"],"type":"object"},"DevicePollResponse":{"properties":{"api_token":{"type":["string","null"]},"status":{"type":"string"}},"required":["status"],"type":"object"},"DeviceStartRequest":{"properties":{"client_name":{"type":["string","null"]}},"required":[],"type":"object"},"DeviceStartResponse":{"properties":{"device_code":{"type":"string"},"expires_in":{"type":"integer"},"poll_interval":{"type":"integer"},"user_code":{"type":"string"},"verification_url":{"type":"string"}},"required":["verification_url","user_code","device_code","poll_interval","expires_in"],"type":"object"},"DeviceVerifyRequest":{"properties":{"user_code":{"maxLength":32,"minLength":1,"type":"string"}},"required":["user_code"],"type":"object"},"EligibleCheckoutCouponResponse":{"properties":{"billing_scope":{"enum":["first_payment","recurring"],"type":"string"},"code":{"type":"string"},"discount_amount":{"type":"integer"},"discount_type":{"enum":["percentage","absolute"],"type":"string"},"final_amount":{"type":"integer"},"original_amount":{"type":"integer"}},"required":["code","discount_type","billing_scope","original_amount","discount_amount","final_amount"],"type":"object"},"ErrorResponse":{"properties":{"error":{"type":"string"}},"required":["error"],"type":"object"},"ExecuteProjectSqlRequest":{"properties":{"query":{"maxLength":65536,"minLength":1,"type":"string"}},"required":["query"],"type":"object"},"ExecuteProjectSqlResponse":{"properties":{"columns":{"items":{"type":"string"},"type":"array"},"completion_tags":{"items":{"type":"string"},"type":"array"},"db_error":{"anyOf":[{"$ref":"#/components/schemas/SqlDbError"},{"type":"null"}]},"rows":{"items":{"items":{"type":"string"},"type":"array"},"type":"array"}},"required":["columns","rows","completion_tags"],"type":"object"},"HelpResponse":{"properties":{"discord":{"type":["string","null"]},"email":{"type":["string","null"]},"whatsapp":{"type":["string","null"]}},"required":[],"type":"object"},"InsertTableRowRequest":{"properties":{"schema":{"type":"string"},"table":{"type":"string"},"values":{}},"required":["schema","table","values"],"type":"object"},"InvoiceResponse":{"properties":{"billing_period":{"type":"string"},"cgst":{"type":"integer"},"coupon_code":{"type":["string","null"]},"created_at":{"type":"integer"},"currency":{"type":"string"},"customer_email":{"type":"string"},"discount_amount_minor":{"type":"integer"},"final_amount_minor":{"type":["integer","null"]},"id":{"format":"uuid","type":"string"},"igst":{"type":"integer"},"invoice_number":{"type":"string"},"original_amount_minor":{"type":["integer","null"]},"payment_id":{"type":"string"},"sgst":{"type":"integer"},"subscription_id":{"type":"string"},"supply_type":{"type":"string"},"taxable_amount":{"type":"integer"},"tier_id":{"format":"uuid","type":"string"},"tier_name":{"type":"string"},"total_amount":{"type":"integer"}},"required":["id","invoice_number","tier_name","subscription_id","payment_id","currency","total_amount","created_at"],"type":"object"},"MessageResponse":{"properties":{"message":{"type":"string"}},"required":["message"],"type":"object"},"OauthExchangeRequest":{"properties":{"audience":{"type":["string","null"]},"code":{"maxLength":4096,"minLength":1,"type":"string"},"selected_plan":{"type":["string","null"]},"state":{"maxLength":4096,"minLength":1,"type":"string"}},"required":["code","state"],"type":"object"},"OauthStartResponse":{"properties":{"authorization_url":{"type":"string"},"state":{"type":"string"}},"required":["authorization_url","state"],"type":"object"},"PingResponse":{"properties":{"message":{"type":"string"},"reachable":{"type":"boolean"}},"required":["reachable","message"],"type":"object"},"ProjectConnectionOptionResponse":{"properties":{"best_for":{"type":"string"},"compatibility_note":{"type":"string"},"id":{"type":"string"},"label":{"type":"string"},"pooling_mode":{"type":"string"},"port":{"type":"integer"},"postgres_uri":{"type":"string"},"psql_command":{"type":"string"}},"required":["id","label","pooling_mode","port","compatibility_note","best_for","postgres_uri","psql_command"],"type":"object"},"ProjectCredentialsResponse":{"properties":{"connection_options":{"items":{"$ref":"#/components/schemas/ProjectConnectionOptionResponse"},"type":"array"},"postgres_uri":{"type":["string","null"]},"project_id":{"format":"uuid","type":"string"},"project_name":{"type":"string"}},"required":["project_id","project_name","connection_options"],"type":"object"},"ProjectMigrationResponse":{"properties":{"completed_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"error_message":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"phase":{"type":["string","null"]},"project_id":{"format":"uuid","type":"string"},"project_name":{"type":"string"},"source_kind":{"type":"string"},"source_label":{"type":["string","null"]},"started_at":{"format":"date-time","type":["string","null"]},"status":{"type":"string"},"target_time":{"format":"date-time","type":["string","null"]}},"required":["id","project_id","project_name","source_kind","status","created_at"],"type":"object"},"ProjectResponse":{"properties":{"aws_instance_id":{"type":["string","null"]},"backup_days":{"type":"integer"},"connection_options":{"items":{"$ref":"#/components/schemas/ProjectConnectionOptionResponse"},"type":"array"},"created_at":{"format":"date-time","type":"string"},"database_status":{"type":"string"},"db_host":{"type":["string","null"]},"db_name":{"type":["string","null"]},"db_uri":{"type":["string","null"]},"db_user":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"instance_url":{"type":["string","null"]},"pitr_enabled":{"type":"boolean"},"project_name":{"type":"string"},"restore_enabled":{"type":"boolean"},"status":{"type":"string"},"tier_name":{"type":"string"}},"required":["id","tier_name","project_name","status","database_status","connection_options","created_at"],"type":"object"},"ProjectRestoreAvailabilityDayResponse":{"properties":{"available_from":{"format":"date-time","type":"string"},"available_until":{"format":"date-time","type":"string"},"candidate_times":{"items":{"format":"date-time","type":"string"},"type":"array"},"restore_date":{"format":"date-time","type":"string"}},"required":["restore_date","available_from","available_until","candidate_times"],"type":"object"},"ProjectRestoreAvailabilityResponse":{"properties":{"available_from":{"format":"date-time","type":["string","null"]},"available_until":{"format":"date-time","type":["string","null"]},"backup_count":{"type":"integer"},"cache_refreshed_at":{"format":"date-time","type":["string","null"]},"cache_status":{"type":"string"},"candidate_days":{"items":{"$ref":"#/components/schemas/ProjectRestoreAvailabilityDayResponse"},"type":"array"},"pitr_enabled":{"type":"boolean"},"project_id":{"format":"uuid","type":"string"},"restore_enabled":{"type":"boolean"},"scheduled_backup_days":{"items":{"$ref":"#/components/schemas/ProjectScheduledBackupAvailabilityResponse"},"type":"array"}},"required":["project_id","restore_enabled","pitr_enabled","backup_count","candidate_days","scheduled_backup_days","cache_status"],"type":"object"},"ProjectRestoreResponse":{"properties":{"completed_at":{"format":"date-time","type":["string","null"]},"created_at":{"format":"date-time","type":"string"},"error_message":{"type":["string","null"]},"id":{"format":"uuid","type":"string"},"phase":{"type":["string","null"]},"project_id":{"format":"uuid","type":"string"},"project_name":{"type":"string"},"restore_kind":{"type":"string"},"source_label":{"type":["string","null"]},"started_at":{"format":"date-time","type":["string","null"]},"status":{"type":"string"},"target_time":{"format":"date-time","type":["string","null"]}},"required":["id","project_id","project_name","restore_kind","status","created_at"],"type":"object"},"ProjectScheduledBackupAvailabilityResponse":{"properties":{"completed_at":{"format":"date-time","type":["string","null"]},"restore_date":{"format":"date-time","type":"string"},"scheduled_backup_id":{"format":"uuid","type":"string"}},"required":["scheduled_backup_id","restore_date"],"type":"object"},"RefreshTokenRequest":{"properties":{"refresh_token":{"maxLength":4096,"minLength":1,"type":"string"}},"required":["refresh_token"],"type":"object"},"RenameProjectRequest":{"properties":{"project_name":{"maxLength":256,"minLength":3,"type":"string"}},"required":["project_name"],"type":"object"},"S3CredentialResponse":{"properties":{"access_key_id":{"type":"string"},"bucket_addressing":{"type":"string"},"can_delete":{"type":"boolean"},"can_read":{"type":"boolean"},"can_write":{"type":"boolean"},"created_at":{"type":"integer"},"endpoint_url":{"type":"string"},"expires_at":{"type":"integer"},"force_path_style":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"label":{"type":["string","null"]},"project_id":{"format":"uuid","type":"string"},"region":{"type":"string"}},"required":["id","project_id","access_key_id","endpoint_url","region","force_path_style","bucket_addressing","can_read","can_write","can_delete","expires_at","created_at"],"type":"object"},"SetProjectPasswordRequest":{"properties":{"password":{"maxLength":128,"minLength":8,"type":"string"}},"required":["password"],"type":"object"},"SqlDbError":{"properties":{"detail":{"type":["string","null"]},"hint":{"type":["string","null"]},"message":{"type":"string"},"position":{"type":["integer","null"]},"severity":{"type":"string"}},"required":["severity","message"],"type":"object"},"StorageBucketResponse":{"properties":{"allowed_mime_types":{"items":{"type":"string"},"type":"array"},"bucket_type":{"type":"string"},"created_at":{"type":"integer"},"file_size_limit":{"type":["integer","null"]},"id":{"format":"uuid","type":"string"},"name":{"type":"string"},"owner_id":{"format":"uuid","type":"string"},"project_id":{"format":"uuid","type":"string"},"public":{"type":"boolean"}},"required":["id","project_id","name","owner_id","public","bucket_type","created_at"],"type":"object"},"StorageObjectListResponse":{"properties":{"files":{"items":{},"type":"array"},"folders":{"items":{},"type":"array"},"prefix":{"type":"string"},"prefix_tokens":{"items":{"type":"string"},"type":"array"}},"required":["prefix","folders","files"],"type":"object"},"StoragePresignedUrlResponse":{"properties":{"expires_in_secs":{"type":"integer"},"url":{"type":"string"}},"required":["url","expires_in_secs"],"type":"object"},"StorageProjectSettingsResponse":{"properties":{"max_file_size_bytes":{"type":"integer"},"project_id":{"format":"uuid","type":"string"}},"required":["project_id","max_file_size_bytes"],"type":"object"},"StorageUploadUrlRequest":{"properties":{"bucket_name":{"type":"string"},"cli_direct":{"type":"boolean"},"path":{"type":"string"},"project_id":{"format":"uuid","type":"string"}},"required":["project_id","bucket_name","path"],"type":"object"},"TableEditorColumnResponse":{"properties":{"data_type":{"type":"string"},"default_value":{"type":["string","null"]},"is_nullable":{"type":"boolean"},"is_primary_key":{"type":"boolean"},"name":{"type":"string"}},"required":["name","data_type","is_nullable","is_primary_key"],"type":"object"},"TableEditorMetadataResponse":{"properties":{"schemas":{"items":{"type":"string"},"type":"array"},"tables":{"items":{"$ref":"#/components/schemas/TableEditorTableResponse"},"type":"array"}},"required":["schemas","tables"],"type":"object"},"TableEditorMutationResponse":{"properties":{"message":{"type":"string"},"row":{},"schema":{"type":"string"},"table":{"type":"string"}},"required":["schema","table","message"],"type":"object"},"TableEditorRowsResponse":{"properties":{"can_mutate_rows":{"type":"boolean"},"columns":{"items":{"$ref":"#/components/schemas/TableEditorColumnResponse"},"type":"array"},"limit":{"type":"integer"},"offset":{"type":"integer"},"primary_key":{"items":{"type":"string"},"type":"array"},"rows":{"items":{},"type":"array"},"schema":{"type":"string"},"table":{"type":"string"},"total_rows":{"type":"integer"}},"required":["schema","table","columns","primary_key","rows","total_rows","limit","offset","can_mutate_rows"],"type":"object"},"TableEditorTableResponse":{"properties":{"columns":{"items":{"$ref":"#/components/schemas/TableEditorColumnResponse"},"type":"array"},"name":{"type":"string"},"primary_key":{"items":{"type":"string"},"type":"array"},"schema":{"type":"string"}},"required":["schema","name","columns","primary_key"],"type":"object"},"TierPriceResponse":{"properties":{"currency":{"type":"string"},"monthly_amount":{"type":"number"},"monthly_amount_minor":{"type":"integer"},"yearly_amount":{"type":"number"},"yearly_amount_minor":{"type":"integer"}},"required":["currency","monthly_amount","monthly_amount_minor","yearly_amount","yearly_amount_minor"],"type":"object"},"TierResponse":{"properties":{"id":{"format":"uuid","type":"string"},"kind":{"type":"string"},"machine":{"type":"string"},"max_databases":{"type":"integer"},"name":{"type":"string"},"pool_ready_size":{"type":"integer"},"pool_size":{"type":"integer"},"pricing":{"items":{"$ref":"#/components/schemas/TierPriceResponse"},"type":"array"},"project_limit":{"type":"integer"},"waitlist_limit":{"type":"integer"}},"required":["id","name","kind","machine","project_limit","max_databases"],"type":"object"},"UpdateStorageProjectSettingsRequest":{"properties":{"max_file_size_bytes":{"type":"integer"},"project_id":{"format":"uuid","type":"string"}},"required":["project_id","max_file_size_bytes"],"type":"object"},"UpdateTableRowRequest":{"properties":{"key":{},"schema":{"type":"string"},"table":{"type":"string"},"values":{}},"required":["schema","table","key","values"],"type":"object"},"UsageResponse":{"properties":{"connections":{"type":"integer"},"cpu_seconds":{"type":"integer"},"file_storage_bytes":{"type":"integer"},"recorded_at":{"format":"date-time","type":"string"},"storage_bytes":{"type":"integer"}},"required":["storage_bytes","file_storage_bytes","connections","cpu_seconds","recorded_at"],"type":"object"}},"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"}}},"info":{"description":"Unified contract for Nyas API, CLI, MCP, and UI surfaces.\n\nCLI setup:\n\n```sh\ncurl -LsSf https://app.stage.nyas.io/install.sh | sh\n```\n\nBearer-authenticated project, database, account, billing, and storage operations.","title":"Nyas Platform API","version":"0.1.31"},"openapi":"3.1.0","paths":{"/account":{"get":{"operationId":"getAccount","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSetupResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get account","tags":["Account"]}},"/account/api-key/regenerate":{"post":{"operationId":"regenerateAccountApiKey","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountApiKeyResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Regenerate account API key","tags":["Account"]}},"/account/checkout/coupons":{"get":{"operationId":"listEligibleCheckoutCoupons","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EligibleCheckoutCouponResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"List eligible checkout coupons","tags":["Account"]}},"/account/setup":{"post":{"operationId":"setupAccount","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSetupRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSetupResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Set up account","tags":["Account"]}},"/account/stats":{"get":{"operationId":"getAccountStats","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatsResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get account stats","tags":["Account"]}},"/account/stats/rollups":{"get":{"operationId":"getAccountStatsRollups","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountStatsRollupsResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get account stats rollups","tags":["Account"]}},"/admin/coupons":{"get":{"operationId":"listAdminCoupons","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminCouponResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"List coupons","tags":["Admin"]},"post":{"operationId":"createAdminCoupon","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Create coupon","tags":["Admin"]}},"/admin/coupons/{coupon_id}":{"patch":{"operationId":"updateAdminCoupon","parameters":[{"in":"path","name":"coupon_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Update coupon","tags":["Admin"]}},"/admin/coupons/{coupon_id}/assignments":{"put":{"operationId":"setAdminCouponAssignments","parameters":[{"in":"path","name":"coupon_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponAssignmentsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminCouponResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Replace coupon assignments","tags":["Admin"]}},"/admin/coupons/{coupon_id}/redemptions":{"get":{"operationId":"listAdminCouponRedemptions","parameters":[{"in":"path","name":"coupon_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AdminCouponRedemptionResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"List coupon redemptions","tags":["Admin"]}},"/auth/cli/oauth/token":{"post":{"operationId":"exchangeCliOauthToken","parameters":[],"requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/CliOauthTokenRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CliOauthTokenResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"Exchange CLI OAuth token","tags":["Auth"]}},"/auth/device/poll":{"post":{"operationId":"pollDeviceAuth","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicePollRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DevicePollResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"Poll device authorization","tags":["Auth"]}},"/auth/device/start":{"post":{"operationId":"startDeviceAuth","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceStartRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceStartResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"Start device authorization","tags":["Auth"]}},"/auth/device/verify":{"post":{"operationId":"verifyDeviceCode","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeviceVerifyRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Verify device code","tags":["Auth"]}},"/auth/github/exchange":{"post":{"operationId":"exchangeGitHubOAuth","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OauthExchangeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"Exchange GitHub OAuth code","tags":["Auth"]}},"/auth/github/start":{"get":{"operationId":"startGitHubOAuth","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OauthStartResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"Start GitHub OAuth","tags":["Auth"]}},"/auth/google/exchange":{"post":{"operationId":"exchangeGoogleOAuth","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OauthExchangeRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"Exchange Google OAuth code","tags":["Auth"]}},"/auth/google/start":{"get":{"operationId":"startGoogleOAuth","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OauthStartResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"Start Google OAuth","tags":["Auth"]}},"/auth/refresh":{"post":{"operationId":"refreshAuthToken","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"Refresh access token","tags":["Auth"]}},"/billing/invoices":{"get":{"operationId":"listInvoices","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InvoiceResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"List invoices","tags":["Billing"]}},"/billing/invoices/{invoice_id}/pdf":{"get":{"operationId":"downloadInvoicePdf","parameters":[{"in":"path","name":"invoice_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/pdf":{"schema":{"format":"binary","type":"string"}}},"description":"Binary response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Download invoice PDF","tags":["Billing"]}},"/billing/profile":{"get":{"operationId":"getBillingProfile","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get billing profile","tags":["Billing"]},"put":{"operationId":"upsertBillingProfile","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileResponse"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Upsert billing profile","tags":["Billing"]}},"/billing/subscription":{"get":{"operationId":"getCurrentSubscription","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentSubscriptionResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get current subscription","tags":["Billing"]}},"/billing/subscription/cancel":{"post":{"operationId":"cancelCurrentSubscription","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Cancel current subscription","tags":["Billing"]}},"/help":{"get":{"operationId":"getHelp","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HelpResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get help links","tags":["Help"]}},"/migrations":{"get":{"operationId":"listProjectMigrations","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProjectMigrationResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"List migrations","tags":["Migrations"]},"post":{"operationId":"createProjectMigration","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectMigrationRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectMigrationResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Create migration","tags":["Migrations"]}},"/migrations/{migration_id}":{"get":{"operationId":"getProjectMigration","parameters":[{"in":"path","name":"migration_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectMigrationResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get migration","tags":["Migrations"]}},"/projects":{"get":{"operationId":"listProjects","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProjectResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"List projects","tags":["Projects"]},"post":{"operationId":"createProject","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Create project","tags":["Projects"]}},"/projects/{project_id}":{"delete":{"operationId":"deleteProject","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Delete project","tags":["Projects"]},"get":{"operationId":"getProject","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get project","tags":["Projects"]},"patch":{"operationId":"renameProject","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameProjectRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Rename project","tags":["Projects"]}},"/projects/{project_id}/credentials":{"get":{"operationId":"getProjectCredentials","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCredentialsResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get project credentials","tags":["Projects"]}},"/projects/{project_id}/database":{"delete":{"operationId":"destroyProjectDatabase","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Destroy the project's database and all its backups","tags":["Projects"]},"post":{"operationId":"createProjectDatabase","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Create the project's database","tags":["Projects"]}},"/projects/{project_id}/password":{"post":{"operationId":"setProjectPassword","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetProjectPasswordRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCredentialsResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Set project password","tags":["Projects"]}},"/projects/{project_id}/password/regenerate":{"post":{"operationId":"regenerateProjectPassword","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCredentialsResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Regenerate project password","tags":["Projects"]}},"/projects/{project_id}/ping":{"get":{"operationId":"pingProjectDatabase","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PingResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Ping project database","tags":["Projects"]}},"/projects/{project_id}/restore-availability":{"get":{"operationId":"getProjectRestoreAvailability","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRestoreAvailabilityResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get project restore availability","tags":["Restores"]}},"/projects/{project_id}/restores":{"get":{"operationId":"listProjectRestores","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProjectRestoreResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"List project restores","tags":["Restores"]},"post":{"operationId":"createProjectRestore","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectRestoreRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRestoreResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Create project restore","tags":["Restores"]}},"/projects/{project_id}/sql":{"post":{"operationId":"executeProjectSql","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteProjectSqlRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteProjectSqlResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Execute project SQL","tags":["Projects"]}},"/projects/{project_id}/table-editor/metadata":{"get":{"operationId":"getTableEditorMetadata","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorMetadataResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get table editor metadata","tags":["Table Editor"]}},"/projects/{project_id}/table-editor/rows":{"delete":{"operationId":"deleteTableRows","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteTableRowRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorMutationResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Delete table rows","tags":["Table Editor"]},"get":{"operationId":"listTableRows","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorRowsResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"List table rows","tags":["Table Editor"]},"patch":{"operationId":"updateTableRow","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTableRowRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorMutationResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Update table row","tags":["Table Editor"]},"post":{"operationId":"insertTableRow","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsertTableRowRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorMutationResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Insert table row","tags":["Table Editor"]}},"/projects/{project_id}/table-editor/tables":{"post":{"operationId":"createProjectTable","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProjectTableRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorMutationResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Create table","tags":["Table Editor"]}},"/projects/{project_id}/table-editor/tables/{schema}/{table}":{"delete":{"operationId":"deleteProjectTable","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"schema","required":true,"schema":{"type":"string"}},{"in":"path","name":"table","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorMutationResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Delete table","tags":["Table Editor"]}},"/projects/{project_id}/table-editor/tables/{schema}/{table}/duplicate":{"post":{"operationId":"duplicateProjectTable","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"schema","required":true,"schema":{"type":"string"}},{"in":"path","name":"table","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorMutationResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Duplicate table","tags":["Table Editor"]}},"/projects/{project_id}/table-editor/tables/{schema}/{table}/export":{"get":{"operationId":"exportProjectTable","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"schema","required":true,"schema":{"type":"string"}},{"in":"path","name":"table","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/octet-stream":{"schema":{"format":"binary","type":"string"}}},"description":"Binary response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Export table","tags":["Table Editor"]}},"/projects/{project_id}/table-editor/tables/{schema}/{table}/schema":{"get":{"operationId":"getProjectTableSchema","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"path","name":"schema","required":true,"schema":{"type":"string"}},{"in":"path","name":"table","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TableEditorTableResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get table schema","tags":["Table Editor"]}},"/projects/{project_id}/usage":{"get":{"operationId":"getProjectUsage","parameters":[{"in":"path","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get project usage","tags":["Projects"]}},"/restores/{restore_id}":{"get":{"operationId":"getProjectRestore","parameters":[{"in":"path","name":"restore_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRestoreResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"summary":"Get restore","tags":["Restores"]}},"/tiers":{"get":{"operationId":"listTiers","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/TierResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"summary":"List tiers","tags":["Tiers"]}},"/v1/buckets":{"get":{"operationId":"listStorageBuckets","parameters":[{"example":"00000000-0000-0000-0000-000000000000","in":"query","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/StorageBucketResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"List storage buckets","tags":["Storage"]},"post":{"operationId":"createStorageBucket","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStorageBucketRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageBucketResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Create storage bucket","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]},"/v1/buckets/{bucket_name}":{"delete":{"operationId":"deleteStorageBucket","parameters":[{"in":"path","name":"bucket_name","required":true,"schema":{"type":"string"}},{"example":"00000000-0000-0000-0000-000000000000","in":"query","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Delete storage bucket","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]},"/v1/buckets/{bucket_name}/folders":{"post":{"operationId":"createStorageFolder","parameters":[{"in":"path","name":"bucket_name","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateStorageFolderRequest"}}},"required":true},"responses":{"201":{"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Create storage folder","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]},"/v1/buckets/{bucket_name}/objects":{"delete":{"operationId":"deleteStorageObject","parameters":[{"in":"path","name":"bucket_name","required":true,"schema":{"type":"string"}},{"example":"00000000-0000-0000-0000-000000000000","in":"query","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Delete storage object","tags":["Storage"]},"get":{"operationId":"listStorageObjects","parameters":[{"in":"path","name":"bucket_name","required":true,"schema":{"type":"string"}},{"example":"00000000-0000-0000-0000-000000000000","in":"query","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"prefix","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageObjectListResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"List storage objects","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]},"/v1/download-url":{"get":{"operationId":"createStorageDownloadUrl","parameters":[{"example":"00000000-0000-0000-0000-000000000000","in":"query","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}},{"in":"query","name":"bucket_name","required":true,"schema":{"type":"string"}},{"in":"query","name":"path","required":true,"schema":{"type":"string"}},{"in":"query","name":"expires_secs","required":false,"schema":{"type":"integer"}},{"in":"query","name":"cli_direct","required":false,"schema":{"type":"boolean"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoragePresignedUrlResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Create presigned download URL","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]},"/v1/s3-credentials":{"get":{"operationId":"listStorageS3Credentials","parameters":[{"example":"00000000-0000-0000-0000-000000000000","in":"query","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/S3CredentialResponse"},"type":"array"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"List S3 credentials","tags":["Storage"]},"post":{"operationId":"createStorageS3Credential","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateS3CredentialRequest"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateS3CredentialResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Create S3 credential","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]},"/v1/s3-credentials/{credential_id}":{"delete":{"operationId":"revokeStorageS3Credential","parameters":[{"in":"path","name":"credential_id","required":true,"schema":{"format":"uuid","type":"string"}},{"example":"00000000-0000-0000-0000-000000000000","in":"query","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"No content"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Revoke S3 credential","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]},"/v1/storage-settings":{"get":{"operationId":"getStorageSettings","parameters":[{"example":"00000000-0000-0000-0000-000000000000","in":"query","name":"project_id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageProjectSettingsResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Get storage settings","tags":["Storage"]},"put":{"operationId":"updateStorageSettings","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateStorageProjectSettingsRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageProjectSettingsResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Update storage settings","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]},"/v1/upload-url":{"post":{"operationId":"createStorageUploadUrl","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StorageUploadUrlRequest"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StoragePresignedUrlResponse"}}},"description":"Successful response"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}},"description":"Successful response"}},"security":[{"bearerAuth":[]}],"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}],"summary":"Create presigned upload URL","tags":["Storage"]},"servers":[{"description":"Nyas storage API","url":"https://storage.stage.nyas.io"}]}},"servers":[{"description":"Nyas control-plane API","url":"https://api.stage.nyas.io"}]}