{ "components": { "schemas": { "AccessBinding": { "description": "The Cloudflare Access application in front of a signed-in address\n(ADR 065 D9): its JWTs carry `aud`, from the team of `provider_id`.", "properties": { "app_id": { "type": "string" }, "aud": { "type": "string" }, "provider_id": { "format": "int32", "type": "integer" } }, "required": [ "provider_id", "app_id", "aud" ], "type": "object" }, "AccessBundleList": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AccessBundleResponse" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "total", "page", "page_size" ], "type": "object" }, "AccessBundleResponse": { "properties": { "created_at": { "format": "date-time", "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "project_id": { "format": "int32", "type": [ "integer", "null" ] }, "service_ids": { "items": { "type": "string" }, "type": "array" }, "ttl_seconds": { "format": "int32", "type": "integer" }, "updated_at": { "format": "date-time", "type": "string" }, "vault_id": { "type": "string" }, "version": { "format": "int32", "type": "integer" } }, "required": [ "id", "vault_id", "name", "service_ids", "ttl_seconds", "version", "created_at", "updated_at" ], "type": "object" }, "AccessCapability": { "properties": { "can_manage_requests": { "description": "Caller has project and sandbox write permissions. Ownership is still\nchecked on each sandbox mutation.", "type": "boolean" }, "can_manage_services": { "description": "Caller may edit service policies in this project. Set by the handler.", "type": "boolean" }, "can_save_requests": { "type": "boolean" }, "can_use_project_github": { "description": "Caller may use the project-bound GitHub credential source.", "type": "boolean" }, "configured": { "type": "boolean" }, "reason": { "type": "string" }, "setup_path": { "type": [ "string", "null" ] }, "state": { "$ref": "#/components/schemas/AccessCapabilityState" } }, "required": [ "state", "configured", "can_save_requests", "can_manage_services", "can_use_project_github", "can_manage_requests", "reason" ], "type": "object" }, "AccessCapabilityState": { "enum": [ "available", "integration_unavailable" ], "type": "string" }, "AccessMethod": { "enum": [ "GET", "HEAD", "POST", "PUT", "PATCH", "DELETE" ], "type": "string" }, "AccessPermission": { "enum": [ "apps_edit", "organizations_read" ], "type": "string" }, "AccessPermissionCheck": { "properties": { "detail": { "description": "Why, and what to change on the token when it is not present.", "type": "string" }, "label": { "type": "string" }, "permission": { "$ref": "#/components/schemas/AccessPermission" }, "state": { "$ref": "#/components/schemas/PermissionState" } }, "required": [ "permission", "label", "state", "detail" ], "type": "object" }, "AccessProviderResponse": { "description": "A saved Access token. The token itself is never returned.", "properties": { "account_id": { "type": "string" }, "addresses": { "description": "How many addresses it protects.", "format": "int64", "minimum": 0, "type": "integer" }, "api_token": { "description": "Always `***`.", "type": "string" }, "created_at": { "format": "date-time", "type": "string" }, "id": { "format": "int32", "type": "integer" }, "key_count": { "description": "How many signing keys listeners have for it now.", "minimum": 0, "type": "integer" }, "keys_fetched_at": { "description": "When the team's signing keys were last fetched.", "format": "date-time", "type": [ "string", "null" ] }, "name": { "type": "string" }, "team_domain": { "description": "`.cloudflareaccess.com`.", "type": "string" } }, "required": [ "id", "name", "account_id", "team_domain", "api_token", "key_count", "addresses", "created_at" ], "type": "object" }, "AccessServiceList": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AccessServiceResponse" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "page", "page_size", "total" ], "type": "object" }, "AccessServiceProvider": { "enum": [ "github", "gitlab", "openai", "anthropic", "stripe", "resend", "sendgrid", "vercel", "netlify", "mistral", "groq" ], "type": "string" }, "AccessServiceResponse": { "properties": { "catalog": { "oneOf": [ { "$ref": "#/components/schemas/CatalogReference", "description": "The catalog service this origin belongs to, when it is one. Derived on\nread from the origin; never stored in the policy." }, { "type": "null" } ] }, "created_at": { "format": "date-time", "type": "string" }, "enabled": { "type": "boolean" }, "has_credential": { "type": "boolean" }, "id": { "type": "string" }, "max_ttl_seconds": { "format": "int32", "type": "integer" }, "name": { "type": "string" }, "policy": { "$ref": "#/components/schemas/SandboxAccessPolicy" }, "project_id": { "format": "int32", "type": [ "integer", "null" ] }, "updated_at": { "format": "date-time", "type": "string" }, "version": { "format": "int32", "type": "integer" } }, "required": [ "id", "name", "policy", "max_ttl_seconds", "enabled", "has_credential", "version", "created_at", "updated_at" ], "type": "object" }, "AccessSessionConsumer": { "description": "Extensible consumer identity. Only authenticated sandbox bindings are supported today.", "oneOf": [ { "properties": { "kind": { "enum": [ "sandbox" ], "type": "string" }, "sandbox_id": { "type": "string" } }, "required": [ "sandbox_id", "kind" ], "type": "object" } ] }, "AccessSessionDetail": { "properties": { "grants": { "items": { "$ref": "#/components/schemas/ServiceGrantResponse" }, "type": "array" }, "session": { "$ref": "#/components/schemas/AccessSessionResponse" } }, "required": [ "session", "grants" ], "type": "object" }, "AccessSessionList": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AccessSessionResponse" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "total", "page", "page_size" ], "type": "object" }, "AccessSessionResponse": { "properties": { "bundle_id": { "type": "string" }, "bundle_name": { "type": "string" }, "bundle_version": { "format": "int32", "type": "integer" }, "consumer": { "$ref": "#/components/schemas/AccessSessionConsumer" }, "created_at": { "format": "date-time", "type": "string" }, "created_by": { "format": "int32", "type": [ "integer", "null" ] }, "expires_at": { "format": "date-time", "type": "string" }, "id": { "type": "string" }, "project_id": { "format": "int32", "type": [ "integer", "null" ] }, "revoked_at": { "format": "date-time", "type": [ "string", "null" ] }, "service_count": { "minimum": 0, "type": "integer" }, "status": { "$ref": "#/components/schemas/AccessSessionStatus", "description": "Authorization state only. Inspect grants for acknowledged worker enforcement." }, "vault_id": { "type": "string" } }, "required": [ "id", "vault_id", "bundle_id", "bundle_name", "bundle_version", "consumer", "status", "service_count", "created_at", "expires_at" ], "type": "object" }, "AccessSessionStatus": { "enum": [ "issued", "expired", "revoked" ], "type": "string" }, "AccessTokenCheckRequest": { "properties": { "account_id": { "description": "The Cloudflare account the Access applications live in (32 hex\ncharacters, from the dashboard URL or the account's overview page).", "type": "string" }, "token": { "$ref": "#/components/schemas/SecretString", "description": "The token, as pasted. Used for this check only; not stored." } }, "required": [ "token", "account_id" ], "type": "object" }, "AccessTokenCheckResult": { "properties": { "error": { "description": "Why it did not, or why the account could not be checked.", "type": [ "string", "null" ] }, "permissions": { "items": { "$ref": "#/components/schemas/AccessPermissionCheck" }, "type": "array" }, "ready": { "description": "Every permission is present and the team domain is known.", "type": "boolean" }, "team_domain": { "description": "`.cloudflareaccess.com`, when Organizations Read is present.", "type": [ "string", "null" ] }, "token_url": { "description": "Where to create a token.", "type": "string" }, "valid": { "description": "Cloudflare accepted the token at all.", "type": "boolean" }, "warning": { "description": "What the token can do beyond Temps' own apps.", "type": "string" } }, "required": [ "valid", "permissions", "ready", "warning", "token_url" ], "type": "object" }, "AccessVaultDetail": { "properties": { "services": { "description": "Vaults are bounded to 100 services.", "items": { "$ref": "#/components/schemas/AccessServiceResponse" }, "type": "array" }, "vault": { "$ref": "#/components/schemas/AccessVaultResponse" } }, "required": [ "vault", "services" ], "type": "object" }, "AccessVaultList": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AccessVaultOverview" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "total", "page", "page_size" ], "type": "object" }, "AccessVaultOverview": { "properties": { "services": { "description": "Up to four services for the overview; service_ids gives the total.", "items": { "$ref": "#/components/schemas/AccessServiceResponse" }, "type": "array" }, "vault": { "$ref": "#/components/schemas/AccessVaultResponse" } }, "required": [ "vault", "services" ], "type": "object" }, "AccessVaultResponse": { "properties": { "created_at": { "format": "date-time", "type": "string" }, "id": { "type": "string" }, "name": { "type": "string" }, "project_id": { "format": "int32", "type": [ "integer", "null" ] }, "service_ids": { "items": { "type": "string" }, "type": "array" }, "updated_at": { "format": "date-time", "type": "string" }, "version": { "format": "int32", "type": "integer" } }, "required": [ "id", "name", "service_ids", "version", "created_at", "updated_at" ], "type": "object" }, "AcmeOrderResponse": { "properties": { "authorizations": {}, "certificate_url": { "type": [ "string", "null" ] }, "challenge_validation": { "oneOf": [ { "$ref": "#/components/schemas/ChallengeValidationStatus", "description": "Live challenge validation status fetched from Let's Encrypt" }, { "type": "null" } ] }, "created_at": { "format": "date-time", "type": "string" }, "domain_id": { "format": "int32", "type": "integer" }, "email": { "type": "string" }, "error": { "type": [ "string", "null" ] }, "error_type": { "type": [ "string", "null" ] }, "expires_at": { "format": "date-time", "type": [ "string", "null" ] }, "finalize_url": { "type": [ "string", "null" ] }, "id": { "format": "int32", "type": "integer" }, "identifiers": {}, "order_url": { "type": "string" }, "status": { "type": "string" }, "updated_at": { "format": "date-time", "type": "string" } }, "required": [ "id", "order_url", "domain_id", "email", "status", "identifiers", "created_at", "updated_at" ], "type": "object" }, "ActionKind": { "enum": [ "make_reachable", "deploy", "set_dns_record", "open_ingress", "open_worker", "wait", "run_command" ], "type": "string" }, "ActivateProviderResponse": { "properties": { "default_provider": { "type": "string" } }, "required": [ "default_provider" ], "type": "object" }, "ActiveHealthCheck": { "properties": { "enabled": { "default": false, "type": "boolean" }, "healthyThreshold": { "default": 2, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" }, "intervalSeconds": { "default": 2, "format": "int32", "maximum": 3600, "minimum": 1, "type": "integer" }, "path": { "default": null, "description": "Origin-relative path; defaults to deployment readiness path, then `/`.", "type": [ "string", "null" ] }, "timeoutSeconds": { "default": 2, "format": "int32", "maximum": 60, "minimum": 1, "type": "integer" }, "unhealthyThreshold": { "default": 3, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" } }, "type": "object" }, "ActiveVisitor": { "properties": { "current_page": { "type": [ "string", "null" ] }, "duration_seconds": { "format": "int64", "type": "integer" }, "event_count": { "format": "int32", "type": "integer" }, "is_active": { "type": "boolean" }, "last_activity": { "type": "string" }, "page_count": { "format": "int32", "type": "integer" }, "session_id": { "type": "string" }, "session_start": { "type": "string" }, "visitor_id": { "type": [ "string", "null" ] } }, "required": [ "session_id", "session_start", "last_activity", "page_count", "event_count", "duration_seconds", "is_active" ], "type": "object" }, "ActiveVisitorCountResponse": { "properties": { "active_visitors": { "format": "int64", "type": "integer" }, "window_minutes": { "format": "int32", "type": "integer" } }, "required": [ "active_visitors", "window_minutes" ], "type": "object" }, "ActiveVisitorsQuery": { "description": "Query parameters for active visitors endpoint", "properties": { "deployment_id": { "format": "int32", "type": [ "integer", "null" ] }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "project_id": { "format": "int32", "type": "integer" }, "window_minutes": { "format": "int32", "type": [ "integer", "null" ] } }, "required": [ "project_id" ], "type": "object" }, "ActiveVisitorsResponse": { "properties": { "count": { "format": "int64", "type": "integer" }, "visitors": { "items": { "$ref": "#/components/schemas/ActiveVisitor" }, "type": "array" }, "window_minutes": { "format": "int32", "type": "integer" } }, "required": [ "count", "visitors", "window_minutes" ], "type": "object" }, "ActivityCategory": { "properties": { "description": { "type": "string" }, "name": { "type": "string" } }, "required": [ "name", "description" ], "type": "object" }, "ActivityCooldowns": { "properties": { "preview_secs": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "report_secs": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "website_analysis_secs": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] } }, "type": "object" }, "ActivityDay": { "description": "Daily activity count for a single day", "properties": { "count": { "description": "Number of deployments on this day", "format": "int64", "type": "integer" }, "date": { "description": "Date in YYYY-MM-DD format", "example": "2024-06-15", "type": "string" }, "level": { "description": "Intensity level (0-4) for visualization\n0: No activity, 1: Low (1-2), 2: Medium (3-5), 3: High (6-10), 4: Very High (11+)", "example": 2, "format": "int32", "type": "integer" } }, "required": [ "date", "count", "level" ], "type": "object" }, "ActivityDetails": { "description": "The specifics of an entry; which fields are set depends on the kind.", "properties": { "assignee": { "oneOf": [ { "$ref": "#/components/schemas/Assignee", "description": "`assigned`: the new assignee; `None` when unassigned." }, { "type": "null" } ] }, "assignee_name": { "description": "`assigned`: the assignee's name when the entry was written.", "type": [ "string", "null" ] }, "bulk": { "description": "`status_changed`: the change came from a bulk request.", "type": "boolean" }, "fingerprints": { "description": "`merged`, `unmerged`, `split`: how many fingerprints moved.", "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "group_ids": { "description": "`merged`: the groups merged in. `unmerged`, `split`: the group on the\nother side (both groups get an entry).", "items": { "format": "int32", "type": "integer" }, "type": "array" }, "in_next_release": { "description": "`status_changed`: resolved in the next release.", "type": "boolean" }, "issue_title": { "description": "`issue_linked`, `issue_unlinked`: its title when linked.", "type": [ "string", "null" ] }, "issue_url": { "description": "`issue_linked`, `issue_unlinked`: the issue.", "type": [ "string", "null" ] }, "ownership_rule": { "description": "`assigned`: the ownership rule pattern that assigned a new group.", "type": [ "string", "null" ] }, "release": { "description": "`regressed`: the release of the event that reopened the group.", "type": [ "string", "null" ] }, "status": { "description": "`status_changed`: the new status. `regressed`: the status the group\nhad before the event reopened it (`resolved` or `ignored`).", "type": [ "string", "null" ] } }, "type": "object" }, "ActivityErrorBody": { "description": "RFC 7807 body of every activity error. Fields other than `title`,\n`detail` and `code` appear only when they apply to that code.", "properties": { "code": { "$ref": "#/components/schemas/ActivityErrorCode" }, "detail": { "type": "string" }, "model": { "description": "The model the AI Gateway routed the request to.", "type": [ "string", "null" ] }, "operation": { "oneOf": [ { "$ref": "#/components/schemas/ActivityOperation", "description": "The action that is running or cooling down." }, { "type": "null" } ] }, "provider_failure": { "oneOf": [ { "$ref": "#/components/schemas/ActivityProviderFailure" }, { "type": "null" } ] }, "provider_status": { "description": "The upstream HTTP status, when the provider answered.", "format": "int32", "minimum": 0, "type": [ "integer", "null" ] }, "retry_after_secs": { "description": "Also sent as the `Retry-After` header.", "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "setup_url": { "description": "Console path where the operator can fix the problem.", "type": [ "string", "null" ] }, "started_at": { "description": "When the running action started.", "format": "date-time", "type": [ "string", "null" ] }, "title": { "type": "string" } }, "required": [ "title", "detail", "code" ], "type": "object" }, "ActivityErrorCode": { "description": "Machine-readable reason in an activity error response.", "enum": [ "not_found", "validation", "analysis_running", "cooling_down", "server_busy", "superseded", "ai_unavailable", "provider_error", "site_unreadable", "invalid_model_output", "internal" ], "type": "string" }, "ActivityEvent": { "description": "A single activity event for the real-time activity feed", "properties": { "browser": { "description": "Browser", "type": [ "string", "null" ] }, "city": { "description": "Visitor's city (from ip_geolocations)", "type": [ "string", "null" ] }, "country": { "description": "Visitor's country (from ip_geolocations)", "type": [ "string", "null" ] }, "country_code": { "description": "Visitor's country code (from ip_geolocations)", "type": [ "string", "null" ] }, "device_type": { "description": "Device type", "type": [ "string", "null" ] }, "event_name": { "description": "Event name (for custom events)", "type": [ "string", "null" ] }, "event_type": { "description": "Event type: \"page_view\", \"custom\", etc.", "type": "string" }, "id": { "description": "Event ID", "format": "int64", "type": "integer" }, "is_crawler": { "description": "Whether this event was from a crawler", "type": "boolean" }, "latitude": { "description": "Latitude", "format": "double", "type": [ "number", "null" ] }, "longitude": { "description": "Longitude", "format": "double", "type": [ "number", "null" ] }, "operating_system": { "description": "Operating system", "type": [ "string", "null" ] }, "page_path": { "description": "Page path where the event happened", "type": "string" }, "page_title": { "description": "Page title", "type": [ "string", "null" ] }, "referrer": { "description": "Referrer", "type": [ "string", "null" ] }, "timestamp": { "description": "When the event occurred", "format": "date-time", "type": "string" }, "visitor_id": { "description": "Visitor numeric ID", "format": "int32", "type": [ "integer", "null" ] } }, "required": [ "id", "timestamp", "event_type", "page_path", "is_crawler" ], "type": "object" }, "ActivityEvidence": { "properties": { "event": { "type": "string" }, "path": { "type": "string" }, "properties": { "items": { "$ref": "#/components/schemas/ActivityProperty" }, "type": "array" }, "reference": { "description": "Local to this report, not a database event ID.", "format": "int32", "minimum": 0, "type": "integer" }, "timestamp": { "format": "date-time", "type": "string" }, "title": { "type": [ "string", "null" ] } }, "required": [ "reference", "timestamp", "path", "event", "properties" ], "type": "object" }, "ActivityGoal": { "additionalProperties": false, "properties": { "goal": { "type": "string" }, "missing_signals": { "type": "string" }, "rationale": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "goal", "rationale", "missing_signals" ], "type": "object" }, "ActivityGoals": { "properties": { "goals": { "items": { "$ref": "#/components/schemas/ActivityGoal" }, "type": "array" }, "model": { "type": "string" }, "pages_read": { "items": { "type": "string" }, "type": "array" } }, "required": [ "goals", "pages_read", "model" ], "type": "object" }, "ActivityGoalsRequest": { "properties": { "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "share_with_ai": { "type": "boolean" }, "url": { "type": "string" } }, "required": [ "url", "share_with_ai" ], "type": "object" }, "ActivityGraphQuery": { "description": "Query parameters for activity graph endpoint", "properties": { "days": { "description": "Number of days to include (default: 365 for last year)", "format": "int32", "type": "integer" }, "environment_id": { "description": "Optional environment ID to filter activity", "format": "int32", "type": [ "integer", "null" ] }, "project_id": { "description": "Optional project ID to filter activity", "format": "int32", "type": [ "integer", "null" ] } }, "type": "object" }, "ActivityGraphResponse": { "description": "Response for activity graph showing daily deployment activity", "properties": { "days": { "description": "Array of daily activity counts", "items": { "$ref": "#/components/schemas/ActivityDay" }, "type": "array" }, "end_date": { "description": "Date range end (YYYY-MM-DD)", "example": "2024-12-31", "type": "string" }, "start_date": { "description": "Date range start (YYYY-MM-DD)", "example": "2024-01-01", "type": "string" }, "total_count": { "description": "Total count of activities across all days", "format": "int64", "type": "integer" } }, "required": [ "days", "total_count", "start_date", "end_date" ], "type": "object" }, "ActivityInProgress": { "properties": { "operation": { "$ref": "#/components/schemas/ActivityOperation" }, "started_at": { "format": "date-time", "type": "string" } }, "required": [ "operation", "started_at" ], "type": "object" }, "ActivityKind": { "description": "What happened to the group.", "enum": [ "comment", "status_changed", "regressed", "assigned", "merged", "unmerged", "split", "issue_linked", "issue_unlinked" ], "type": "string" }, "ActivityOperation": { "description": "An AI-assisted activity action. Each one is limited to one at a time per\nproject and cools down briefly after it spends provider tokens.", "enum": [ "website_analysis", "preview", "report" ], "type": "string" }, "ActivityPreview": { "properties": { "report": { "$ref": "#/components/schemas/ActivityReport" }, "settings": { "$ref": "#/components/schemas/ActivitySettings" } }, "required": [ "settings", "report" ], "type": "object" }, "ActivityPreviewRequest": { "description": "An unsaved onboarding preview. Sharing is explicit and scheduling is never inferred.", "properties": { "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "goal": { "type": "string" }, "min_page_paths": { "format": "int32", "minimum": 0, "type": "integer" }, "min_sessions": { "format": "int32", "minimum": 0, "type": "integer" }, "property_keys": { "items": { "type": "string" }, "type": "array" }, "share_activity_with_ai": { "type": "boolean" }, "source_domain": { "type": [ "string", "null" ] }, "source_url": { "type": [ "string", "null" ] } }, "required": [ "goal", "share_activity_with_ai" ], "type": "object" }, "ActivityProperty": { "properties": { "key": { "type": "string" }, "value": { "type": "string" } }, "required": [ "key", "value" ], "type": "object" }, "ActivityProviderFailure": { "description": "Why the AI provider refused or failed the request.", "enum": [ "authentication", "model_not_found", "model_not_allowed", "rate_limited", "budget_exceeded", "timeout", "malformed_response", "unreachable", "misconfigured", "rejected", "provider_error" ], "type": "string" }, "ActivityReport": { "properties": { "categories": { "items": { "$ref": "#/components/schemas/ActivityCategory" }, "type": "array" }, "completed_at": { "format": "date-time", "type": "string" }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "events_considered": { "minimum": 0, "type": "integer" }, "model": { "type": [ "string", "null" ] }, "sampled": { "type": "boolean" }, "settings_revision": { "format": "int32", "type": "integer" }, "skipped_low_activity": { "minimum": 0, "type": "integer" }, "skipped_unchanged": { "minimum": 0, "type": "integer" }, "started_at": { "format": "date-time", "type": "string" }, "summary": { "type": "string" }, "visitors": { "items": { "$ref": "#/components/schemas/VisitorActivityAssessment" }, "type": "array" }, "window_end": { "format": "date-time", "type": "string" }, "window_start": { "format": "date-time", "type": "string" } }, "required": [ "started_at", "completed_at", "window_start", "window_end", "settings_revision", "categories", "summary", "sampled", "events_considered", "visitors" ], "type": "object" }, "ActivityRunSummary": { "properties": { "analyzed_visitors": { "minimum": 0, "type": "integer" }, "completed_at": { "format": "date-time", "type": "string" }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "error": { "type": [ "string", "null" ] }, "model": { "type": [ "string", "null" ] }, "skipped_low_activity": { "minimum": 0, "type": "integer" }, "skipped_unchanged": { "minimum": 0, "type": "integer" }, "skipped_visitors": { "minimum": 0, "type": "integer" }, "started_at": { "format": "date-time", "type": "string" }, "status": { "type": "string" }, "trigger": { "type": "string" } }, "required": [ "trigger", "status", "started_at", "completed_at", "analyzed_visitors", "skipped_visitors", "skipped_low_activity", "skipped_unchanged" ], "type": "object" }, "ActivitySettings": { "properties": { "application_context": { "type": "string" }, "categories": { "items": { "$ref": "#/components/schemas/ActivityCategory" }, "type": "array" }, "daily_enabled": { "type": "boolean" }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "goal_title": { "description": "Short operator-facing label for the selected analysis goal.", "type": [ "string", "null" ] }, "min_page_paths": { "format": "int32", "minimum": 0, "type": "integer" }, "min_sessions": { "format": "int32", "minimum": 0, "type": "integer" }, "property_keys": { "description": "Only these event-property keys may be sent to the provider.", "items": { "type": "string" }, "type": "array" }, "share_activity_with_ai": { "description": "Explicit permission to send the selected analytics fields to the configured AI provider.", "type": "boolean" }, "source_domain": { "type": [ "string", "null" ] }, "source_url": { "type": [ "string", "null" ] } }, "required": [ "application_context", "categories", "property_keys", "daily_enabled", "share_activity_with_ai" ], "type": "object" }, "ActivityStatus": { "properties": { "ai_model": { "type": [ "string", "null" ] }, "ai_provider": { "type": [ "string", "null" ] }, "configured": { "type": "boolean" }, "cooldowns": { "$ref": "#/components/schemas/ActivityCooldowns", "description": "Seconds until each action can use the AI provider again." }, "has_recent_activity": { "description": "Whether tracked non-crawler visitor events exist in the previous 24 hours.", "type": "boolean" }, "in_progress": { "oneOf": [ { "$ref": "#/components/schemas/ActivityInProgress", "description": "The AI-assisted action running for this project right now, if any:\na website analysis or preview started from the console, or a report run." }, { "type": "null" } ] }, "last_error": { "type": [ "string", "null" ] }, "next_run_at": { "format": "date-time", "type": [ "string", "null" ] }, "recent_runs": { "items": { "$ref": "#/components/schemas/ActivityRunSummary" }, "type": "array" }, "report": { "oneOf": [ { "$ref": "#/components/schemas/ActivityReport" }, { "type": "null" } ] }, "running": { "type": "boolean" }, "selected_environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "settings": { "$ref": "#/components/schemas/ActivitySettings" }, "settings_revision": { "format": "int32", "type": "integer" }, "setup_url": { "type": "string" } }, "required": [ "has_recent_activity", "configured", "setup_url", "settings", "settings_revision", "running", "recent_runs" ], "type": "object" }, "AddClusterMemberRequest": { "description": "Request body for adding a single member to a running cluster.", "properties": { "node_id": { "description": "Target worker node ID. Omit or null to run on the control plane.", "format": "int32", "type": [ "integer", "null" ] }, "role": { "description": "Member role. Currently only `replica` is accepted at runtime —\nmonitor is a singleton, primary is elected by pg_auto_failover.", "example": "replica", "type": "string" } }, "required": [ "role" ], "type": "object" }, "AddContextRequest": { "properties": { "message": { "type": "string" } }, "required": [ "message" ], "type": "object" }, "AddEnvironmentDomainRequest": { "properties": { "domain": { "type": "string" }, "is_primary": { "type": "boolean" } }, "required": [ "domain", "is_primary" ], "type": "object" }, "AddEventsRequest": { "properties": { "batchId": { "description": "Client-generated id, stable across retries of the same batch. When\npresent the append is idempotent; omitted, delivery is at-least-once.", "type": [ "string", "null" ] }, "events": { "type": "string" } }, "required": [ "events" ], "type": "object" }, "AddEventsResponse": { "properties": { "event_count": { "minimum": 0, "type": "integer" }, "message": { "type": "string" } }, "required": [ "event_count", "message" ], "type": "object" }, "AddManagedDomainApiRequest": { "description": "Request to add a managed domain", "properties": { "auto_manage": { "type": "boolean" }, "domain": { "example": "example.com", "type": "string" }, "generated_hostname_mode": { "description": "Generated hostname layout: `\"standard\"` (default) or `\"flat\"`.", "type": [ "string", "null" ] }, "proxied_by_default": { "type": "boolean" }, "sync_generated_records": { "description": "Opt in to reconciling generated hostnames into this domain's DNS zone.", "type": "boolean" } }, "required": [ "domain" ], "type": "object" }, "AddProviderModelRequest": { "properties": { "display_name": { "type": [ "string", "null" ] }, "model_id": { "type": "string" } }, "required": [ "model_id" ], "type": "object" }, "AddStatusPageDomainRequest": { "properties": { "hostname": { "description": "Hostname to serve the page on, e.g. `status.example.com`. Unicode names\nare converted to punycode; wildcards and IP addresses are refused.", "type": "string" }, "verification_method": { "$ref": "#/components/schemas/VerificationMethod", "description": "Defaults to `http-01`." } }, "required": [ "hostname" ], "type": "object" }, "AddressAudience": { "description": "Who one address is for, with what bounds a private one (ADR 064 D5).", "properties": { "audience": { "$ref": "#/components/schemas/Audience" }, "gate": { "oneOf": [ { "$ref": "#/components/schemas/GateKind", "description": "For `signed_in`: the gate in front of it (ADR 065 D7)." }, { "type": "null" } ] }, "gate_access": { "oneOf": [ { "$ref": "#/components/schemas/AccessBinding", "description": "For `signed_in` with Cloudflare Access: the application in front of\nit (ADR 065 D9)." }, { "type": "null" } ] }, "gate_allow": { "oneOf": [ { "$ref": "#/components/schemas/GateAllowList", "description": "For `signed_in` with the Temps gate: the teams and users that may\nsign in. `None` admits everyone with access to the project." }, { "type": "null" } ] }, "network_range": { "description": "For `private`: the network range a visitor must come from.", "type": [ "string", "null" ] }, "principals": { "description": "For `tailnet_users`: who it admits (ADR 065 D6), normalized. Undo\nputs the earlier list back with the audience.", "items": { "$ref": "#/components/schemas/TailnetPrincipal" }, "type": "array" }, "private_listener": { "description": "For `private`: that listener's address, which DNS points at and the\ninside check dials.", "type": [ "string", "null" ] }, "private_node_id": { "description": "For `private`: the worker whose private listener serves it.", "format": "int32", "type": [ "integer", "null" ] }, "private_service": { "description": "For `tailscale_service`: the `svc:` name.", "type": [ "string", "null" ] }, "private_via": { "description": "For `private`: how it is served (ADR 065 D1), `tailscale_serve` or\n`tailscale_service`. `None` is phase 2's listener, so runs journaled\nbefore this column compare equal to what they set.", "type": [ "string", "null" ] } }, "required": [ "audience" ], "type": "object" }, "AddressKind": { "description": "What kind of address the primary one is, in D4's order.", "enum": [ "custom_domain", "tunnel_host", "generated", "private" ], "type": "string" }, "AddressReachability": { "description": "One address of an environment and whether its audience can reach it.", "properties": { "action": { "oneOf": [ { "$ref": "#/components/schemas/ReachAction" }, { "type": "null" } ] }, "address": { "example": "myapp.example.com", "type": "string" }, "audience": { "$ref": "#/components/schemas/Audience" }, "custom_domain_id": { "description": "The custom domain row, for a custom domain.", "format": "int32", "type": [ "integer", "null" ] }, "findings": { "description": "What the check noticed on an address that is reachable anyway\n(ADR 070 D4). A `warning` is a problem and is also said in\n`reason`; an `info` note is not.", "items": { "$ref": "#/components/schemas/ReachFinding" }, "type": "array" }, "network": { "description": "For a private address: the network it is reachable from, `Tailscale`\nor the range (ADR 064 D7).", "example": "Tailscale", "type": [ "string", "null" ] }, "reason": { "example": "No DNS record for myapp.example.com exists yet.", "type": "string" }, "source": { "$ref": "#/components/schemas/AddressSource" }, "state": { "$ref": "#/components/schemas/ReachState" }, "way_in": { "description": "How traffic gets in: `tunnel:`, `direct:`,\n`direct:control-plane`, or `private:` for a worker's private\nlistener. `None` while nothing does.", "example": "tunnel:homelab", "type": [ "string", "null" ] } }, "required": [ "address", "audience", "source", "state", "reason" ], "type": "object" }, "AddressScope": { "description": "Who can reach an address.", "enum": [ "public", "private", "cgnat", "local" ], "type": "string" }, "AddressSource": { "description": "Where an address comes from.", "enum": [ "generated", "environment_domain", "custom_domain", "tunnel_host" ], "type": "string" }, "AdminGateResponse": { "properties": { "allowed_hosts": { "description": "`Host` header values allowed. Empty = any host.", "items": { "type": "string" }, "type": "array" }, "allowed_ips": { "description": "IPs / CIDRs allowed to reach the admin listener. Empty = any source.", "items": { "type": "string" }, "type": "array" }, "editable": { "description": "True when the config is writable through this API. False when env\nvars are dictating the active config.", "type": "boolean" }, "source": { "$ref": "#/components/schemas/AdminGateSource", "description": "Where the active config came from." }, "trust_forwarded_for": { "description": "When true, the gate trusts `X-Forwarded-For` from loopback peers.", "type": "boolean" } }, "required": [ "allowed_ips", "allowed_hosts", "trust_forwarded_for", "source", "editable" ], "type": "object" }, "AdminGateSource": { "description": "Where the active gate configuration came from. Env-supplied configs are\nfrozen at the process level — the UI shows them read-only and refuses to\npersist DB writes. DB-supplied configs are editable at runtime.", "enum": [ "default", "db", "env" ], "type": "string" }, "AdoptDeliveryRecord": { "properties": { "name": { "type": "string" }, "record_type": { "$ref": "#/components/schemas/DnsRecordType" } }, "required": [ "name", "record_type" ], "type": "object" }, "AdoptHostnameRecord": { "description": "A conflicting record the user confirmed the generated-hostname sync may\nadopt: stamp it as the sync's own record, then point it at the value the\nsync writes. The apply refuses it when the conflict changed after the\npreview, so only the record the user reviewed is ever adopted.", "properties": { "name": { "description": "The conflict's `name`.", "example": "pr-12.preview.example.com", "type": "string" }, "record_type": { "description": "The conflict's `record_type`.", "example": "A", "type": "string" }, "revision": { "description": "The conflict's `revision`, from the preview the user reviewed.", "type": "string" } }, "required": [ "name", "record_type", "revision" ], "type": "object" }, "AgentConfigResponse": { "description": "Response DTO for a single agent — masks the encrypted API key.", "properties": { "ai_model": { "description": "Preferred model for the CLI (e.g. \"sonnet\", \"gpt-6.2-sol\"). `None` means default.", "type": [ "string", "null" ] }, "ai_provider": { "type": "string" }, "ai_provider_key_id": { "format": "int32", "type": [ "integer", "null" ] }, "api_key_set": { "description": "`true` if an API key is set; `false` otherwise.", "type": "boolean" }, "branch_prefix": { "type": "string" }, "config_repo_branch": { "description": "Branch of the config repo to use.", "type": [ "string", "null" ] }, "config_repo_url": { "description": "Private config repo containing .claude/ directory (skills, MCP, plugins).", "type": [ "string", "null" ] }, "cooldown_minutes": { "format": "int32", "type": "integer" }, "created_at": { "type": "string" }, "daily_budget_cents": { "format": "int32", "type": "integer" }, "deliverable": { "type": "string" }, "description": { "type": [ "string", "null" ] }, "enabled": { "type": "boolean" }, "id": { "format": "int32", "type": "integer" }, "max_turns": { "format": "int32", "type": "integer" }, "mcp_servers_config": { "description": "MCP servers config (Claude Code settings.json mcpServers format).\nCredential-bearing legacy inline values are write-only and appear as\n`***`. Omit this field on update to preserve their stored values." }, "name": { "type": "string" }, "project_id": { "format": "int32", "type": "integer" }, "prompt": { "type": [ "string", "null" ] }, "sandbox_enabled": { "description": "None = use global sandbox setting, true = force on, false = force off", "type": [ "boolean", "null" ] }, "skills_config": { "description": "Skills config as JSON array." }, "slug": { "type": "string" }, "source": { "type": "string" }, "timeout_seconds": { "format": "int32", "type": "integer" }, "tools_config": { "description": "Tools config as JSON array. Legacy custom-tool webhook URLs and headers\nare write-only and appear as `***`. Omit this field on update to\npreserve their stored values." }, "trigger_config": {}, "updated_at": { "type": "string" }, "webhook_token": { "description": "Secret token for the `X-Webhook-Token` header.\n\nReturned in full exactly once, by the request that mints it (creating\nan agent with the webhook trigger on, or turning that trigger on).\nEvery later read is `***`: the row holds only a digest, so the token\ncannot be shown again. Turn the webhook trigger off and on to mint a\nreplacement.", "type": [ "string", "null" ] }, "webhook_url": { "description": "Public webhook URL for triggering this agent externally.\nOnly set when `on: { webhook: true }` is configured.\nUsage: `POST {webhook_url}` with header `X-Webhook-Token: {webhook_token}`", "type": [ "string", "null" ] } }, "required": [ "id", "project_id", "slug", "name", "source", "enabled", "trigger_config", "ai_provider", "api_key_set", "max_turns", "timeout_seconds", "daily_budget_cents", "cooldown_minutes", "branch_prefix", "deliverable", "created_at", "updated_at" ], "type": "object" }, "AgentRunLogResponse": { "properties": { "created_at": { "type": "string" }, "id": { "format": "int64", "type": "integer" }, "level": { "type": "string" }, "message": { "type": "string" }, "metadata": {}, "run_id": { "format": "int32", "type": "integer" } }, "required": [ "id", "run_id", "level", "message", "created_at" ], "type": "object" }, "AgentRunResponse": { "properties": { "agent_name": { "description": "Name of the agent that created this run, if available.", "type": [ "string", "null" ] }, "agent_slug": { "description": "Slug of the agent that created this run, if available.", "type": [ "string", "null" ] }, "ai_model": { "type": [ "string", "null" ] }, "ai_output": { "type": [ "string", "null" ] }, "ai_provider": { "description": "AI provider slug that executed this run (e.g. claude_cli, codex_cli, opencode).", "type": [ "string", "null" ] }, "ai_reasoning": { "type": [ "string", "null" ] }, "ai_session_id": { "description": "Claude CLI session UUID for resuming conversations via `--resume`.", "type": [ "string", "null" ] }, "analysis": { "description": "Report / analysis text produced by the agent (used for report/notification deliverables).", "type": [ "string", "null" ] }, "branch_name": { "type": [ "string", "null" ] }, "commit_sha": { "type": [ "string", "null" ] }, "completed_at": { "type": [ "string", "null" ] }, "config_id": { "description": "Optional. NULL for ephemeral CLI runs (`source = \"cli_ephemeral\"`) and\nhistorical autofixer runs that pre-date the agent_id column.", "format": "int32", "type": [ "integer", "null" ] }, "created_at": { "type": "string" }, "ephemeral_yaml": { "description": "Full WorkflowYamlConfig as YAML text. Populated only when\n`source = \"cli_ephemeral\"`. Used by the web UI to show a \"View YAML\"\nmodal so the user can see exactly what the executor ran.", "type": [ "string", "null" ] }, "error_message": { "type": [ "string", "null" ] }, "estimated_cost_cents": { "format": "int32", "type": "integer" }, "files_changed": { "format": "int32", "type": "integer" }, "id": { "format": "int32", "type": "integer" }, "phase": { "description": "Autofixer phase: \"analyzing\", \"analyzed\", \"fixing\", \"fix_ready\", \"no_fix\",\n\"pr_created\", or NULL for non-autofixer runs.", "type": [ "string", "null" ] }, "pr_number": { "format": "int32", "type": [ "integer", "null" ] }, "pr_url": { "type": [ "string", "null" ] }, "preview_url": { "type": [ "string", "null" ] }, "project_id": { "format": "int32", "type": "integer" }, "prompt_text": { "description": "Final assembled prompt the AI CLI actually saw (trigger context block +\nYAML prompt, with error-group fields interpolated). Captured once per\nrun. `None` for pre-migration rows.", "type": [ "string", "null" ] }, "run_config": { "oneOf": [ { "$ref": "#/components/schemas/AutofixRunConfig", "description": "Per-run AI options the user chose when starting an autofixer run\n(provider, model, max_turns, branch). NULL for generic agent runs\nand historical rows. Used to prefill the retry dialog." }, { "type": "null" } ] }, "sandbox_enabled": { "description": "Legacy field — all runs now execute in a sandbox. Kept for\nbackwards-compatible JSON shape; always `true`.", "type": "boolean" }, "source": { "description": "`committed` (the run's config lives in `project_agents`) or\n`cli_ephemeral` (the config was uploaded via the CLI for a one-off\ndry run; see `ephemeral_yaml`).", "type": "string" }, "started_at": { "type": [ "string", "null" ] }, "status": { "type": "string" }, "tokens_input": { "format": "int32", "type": "integer" }, "tokens_output": { "format": "int32", "type": "integer" }, "trigger_source_id": { "format": "int32", "type": [ "integer", "null" ] }, "trigger_source_type": { "type": [ "string", "null" ] }, "trigger_type": { "type": "string" }, "user_context": { "description": "User-provided context for this run (e.g. webhook payload, manual instructions).", "type": [ "string", "null" ] } }, "required": [ "id", "project_id", "source", "trigger_type", "status", "tokens_input", "tokens_output", "estimated_cost_cents", "files_changed", "created_at", "sandbox_enabled" ], "type": "object" }, "AgentRunWithLogsResponse": { "properties": { "logs": { "items": { "$ref": "#/components/schemas/AgentRunLogResponse" }, "type": "array" }, "run": { "$ref": "#/components/schemas/AgentRunResponse" } }, "required": [ "run", "logs" ], "type": "object" }, "AgentSandboxSettings": { "description": "Global agent sandbox settings. Controls whether agent runs are isolated\ninside Docker containers by default. Individual agents can override this.", "properties": { "allowed_node_ids": { "default": null, "description": "Nodes allowed to run sandboxes (ADR-048). `None` (the default) =\nevery node, including the control plane. `Some(ids)` = only those\nnodes; the control plane is id `0`. `Some([])` disables sandbox\ncreation. Owned by `PUT /sandboxes/placement`; the generic settings\nupdate preserves the stored value.", "items": { "format": "int32", "type": "integer" }, "type": [ "array", "null" ] }, "api_key_encrypted": { "default": null, "description": "DEPRECATED: use `providers[default_provider].credentials_encrypted` instead.", "type": [ "string", "null" ] }, "auth_type": { "default": "subscription", "description": "DEPRECATED: use `providers[default_provider].auth_type` instead.", "type": "string" }, "cpu_limit": { "default": 4, "description": "CPU limit in cores for sandbox containers", "example": 4, "format": "double", "type": "number" }, "custom_image": { "default": "", "description": "Custom Docker image (only used when runtime is \"custom\").\nMust have git and claude CLI installed.", "example": "", "type": "string" }, "default_provider": { "default": "claude_cli", "description": "Default AI provider for agents: \"claude_cli\", \"opencode\", or \"codex_cli\".\nWorkspaces always use this provider — no per-session override.", "example": "claude_cli", "type": "string" }, "enabled": { "default": true, "description": "Sandbox is always enabled — the executor refuses to run any agent\noutside a sandboxed container. Field is retained so existing settings\nrows still deserialize, but it is ignored at runtime.", "type": "boolean" }, "max_cpu_limit": { "default": null, "description": "Highest `cpu_limit` (cores) a `POST /sandboxes` request may ask for.\n`cpu_limit` above only sets the default for requests that omit the\nfield; this is the ceiling. `None` = the built-in ceiling (16 cores).\nA value above the built-in ceiling has no effect.", "example": 4, "format": "double", "minimum": 0.01, "type": [ "number", "null" ] }, "max_memory_limit_mb": { "default": null, "description": "Highest `memory_limit_mb` a `POST /sandboxes` request may ask for.\n`None` = the built-in ceiling (32768 MB). On the control plane the\nhost's physical memory is an additional ceiling.", "example": 8192, "format": "int64", "minimum": 6, "type": [ "integer", "null" ] }, "max_pids_limit": { "default": null, "description": "Highest `pids_limit` a `POST /sandboxes` request may ask for.\n`None` = the built-in ceiling (4096).", "example": 1024, "format": "int64", "minimum": 1, "type": [ "integer", "null" ] }, "max_sandboxes_per_user": { "default": null, "description": "Most sandboxes (not destroyed) one user may have created through\n`POST /sandboxes` at a time; a create over the cap is refused.\n`None` = unlimited. AI application workspaces, agent runs and the\nsandboxes the platform creates for AI chat or autofix do not count\nand are not refused. Sandboxes created before this setting existed\nare not counted either.", "example": 10, "format": "int32", "minimum": 1, "type": [ "integer", "null" ] }, "memory_limit_mb": { "default": 8192, "description": "Memory limit in MB for sandbox containers", "example": 8192, "format": "int64", "minimum": 0, "type": "integer" }, "network_mode": { "default": "full", "description": "Network access level: \"full\" (unrestricted), \"restricted\" (Temps network only), \"none\" (no network)", "example": "full", "type": "string" }, "providers": { "additionalProperties": { "$ref": "#/components/schemas/ProviderConfig" }, "default": {}, "description": "Per-provider auth + config. Keyed by provider id (e.g. `claude_cli`,\n`codex_cli`, `opencode`). Adding a new provider only requires a new\ncatalog entry on the Rust side — the JSON column stays migration-free.", "propertyNames": { "type": "string" }, "type": "object" }, "runtime": { "default": "node", "description": "Runtime preset: \"node\", \"bun\", \"python\", \"rust\", \"go\", \"full\", or \"custom\"", "example": "node", "type": "string" }, "sandbox_backend": { "default": null, "description": "Default isolation backend for sandboxes: \"docker\" (default),\n\"firecracker\" (ADR-029; requires `temps firecracker setup`) or\n\"microsandbox\" (ADR-050, experimental; requires `temps microsandbox\nsetup`). Only consulted when the selected microVM backend probes\navailable — otherwise Docker is used.", "example": "docker", "type": [ "string", "null" ] } }, "type": "object" }, "AgentSandboxSettingsMasked": { "description": "Agent sandbox settings with masked per-provider credentials.\nEach provider entry reports only whether a credential is saved, not\nthe encrypted blob itself. Non-sensitive fields (auth_type, default_model,\nextra) are passed through so the UI can render provider-specific state.", "properties": { "api_key_saved": { "type": "boolean" }, "auth_type": { "type": "string" }, "cpu_limit": { "format": "double", "type": "number" }, "custom_image": { "type": "string" }, "default_provider": { "type": "string" }, "enabled": { "type": "boolean" }, "max_cpu_limit": { "description": "Operator ceiling for a sandbox create request's `cpu_limit`; `null` = built-in.", "format": "double", "minimum": 0.01, "type": [ "number", "null" ] }, "max_memory_limit_mb": { "description": "Operator ceiling for `memory_limit_mb`; `null` = built-in.", "format": "int64", "minimum": 6, "type": [ "integer", "null" ] }, "max_pids_limit": { "description": "Operator ceiling for `pids_limit`; `null` = built-in.", "format": "int64", "minimum": 1, "type": [ "integer", "null" ] }, "max_sandboxes_per_user": { "description": "Most live sandboxes per user; `null` = unlimited.", "format": "int32", "minimum": 1, "type": [ "integer", "null" ] }, "memory_limit_mb": { "format": "int64", "minimum": 0, "type": "integer" }, "network_mode": { "type": "string" }, "providers": { "additionalProperties": { "$ref": "#/components/schemas/ProviderConfigMasked" }, "propertyNames": { "type": "string" }, "type": "object" }, "runtime": { "type": "string" }, "sandbox_backend": { "type": "string" } }, "required": [ "default_provider", "providers", "api_key_saved", "auth_type", "enabled", "runtime", "custom_image", "cpu_limit", "memory_limit_mb", "network_mode", "sandbox_backend" ], "type": "object" }, "AggregateResponse": { "properties": { "rows": { "items": { "$ref": "#/components/schemas/AggregateRow" }, "type": "array" } }, "required": [ "rows" ], "type": "object" }, "AggregateRow": { "description": "One row of an aggregation: the group values (in `group_by` order) and\nthe metric.", "properties": { "keys": { "items": { "type": "string" }, "type": "array" }, "lines": { "description": "Lines that contributed (always populated; equals `value` for\n`Count`).", "format": "int64", "type": "integer" }, "value": { "format": "double", "type": "number" } }, "required": [ "keys", "value", "lines" ], "type": "object" }, "AggregatedBucketItem": { "properties": { "count": { "format": "int64", "type": "integer" }, "timestamp": { "type": "string" } }, "required": [ "timestamp", "count" ], "type": "object" }, "AggregatedBucketsQuery": { "description": "Query parameters for aggregated metrics by time bucket", "properties": { "aggregation_level": { "$ref": "#/components/schemas/AggregationLevel", "description": "Aggregation level: events, sessions, or visitors" }, "bucket_size": { "description": "Time bucket size: \"1 hour\", \"1 day\", \"1 week\", etc. (default: \"1 hour\")", "type": "string" }, "deployment_id": { "description": "Optional deployment filter", "format": "int32", "type": [ "integer", "null" ] }, "end_date": { "description": "End date for the query range", "format": "date-time", "type": "string" }, "environment_id": { "description": "Optional environment filter", "format": "int32", "type": [ "integer", "null" ] }, "start_date": { "description": "Start date for the query range", "format": "date-time", "type": "string" } }, "required": [ "start_date", "end_date" ], "type": "object" }, "AggregatedBucketsResponse": { "properties": { "aggregation_level": { "type": "string" }, "bucket_size": { "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AggregatedBucketItem" }, "type": "array" }, "total": { "format": "int64", "type": "integer" } }, "required": [ "bucket_size", "aggregation_level", "items", "total" ], "type": "object" }, "AggregationLevel": { "enum": [ "events", "sessions", "visitors" ], "type": "string" }, "AggregationTemporality": { "description": "The aggregation temporality of a Sum/Histogram/ExponentialHistogram metric.\n\nMirrors OTel's `AggregationTemporality` proto enum: whether reported values\nare cumulative since the start of the series (Cumulative) or only the delta\nsince the previous report (Delta).", "enum": [ "unspecified", "delta", "cumulative" ], "type": "string" }, "AiAgentBreakdownResponse": { "description": "Response wrapping the AI agent breakdown rows.", "properties": { "end_time": { "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AiAgentBreakdownRow" }, "type": "array" }, "start_time": { "type": "string" } }, "required": [ "items", "start_time", "end_time" ], "type": "object" }, "AiAgentBreakdownRow": { "description": "One row in the AI-agent analytics breakdown. `agent` is the canonical\ncrawler name (e.g. `GPTBot`, `Claude-User`), `provider` is the vendor used\nfor grouping + logos. The UI mirrors the browsers card and ranks by\n`request_count`.", "properties": { "agent": { "type": "string" }, "last_seen": { "description": "Last-seen timestamp in RFC3339 format, or `None` if no rows matched.", "example": "2026-05-29T12:00:00Z", "type": [ "string", "null" ] }, "provider": { "type": "string" }, "purpose": { "type": "string" }, "request_count": { "format": "int64", "type": "integer" }, "unique_ips": { "format": "int64", "type": "integer" } }, "required": [ "provider", "agent", "purpose", "request_count", "unique_ips" ], "type": "object" }, "AiAgentDescriptor": { "description": "Static descriptor for one entry in the known-AI-agents taxonomy.", "properties": { "agent": { "type": "string" }, "provider": { "type": "string" }, "purpose": { "type": "string" } }, "required": [ "provider", "agent", "purpose" ], "type": "object" }, "AiAgentPageRow": { "description": "One row in the pages-by-agent breakdown. Returned by\n[`ProxyLogService::get_ai_agent_pages`] for a single named agent.\n`unique_ips` counts distinct client IPs that hit this path via that agent\n(same definition as the per-agent unique-IPs in [`AiAgentBreakdownRow`]).", "properties": { "last_seen": { "description": "Last-seen timestamp in RFC3339 format, or `None` if no rows matched.", "example": "2026-05-29T12:00:00Z", "type": [ "string", "null" ] }, "path": { "type": "string" }, "request_count": { "format": "int64", "type": "integer" }, "unique_ips": { "format": "int64", "type": "integer" } }, "required": [ "path", "request_count", "unique_ips" ], "type": "object" }, "AiAgentPagesResponse": { "description": "Response wrapping the per-agent pages breakdown rows.", "properties": { "agent": { "description": "The agent name this breakdown is scoped to.", "type": "string" }, "end_time": { "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AiAgentPageRow" }, "type": "array" }, "start_time": { "type": "string" } }, "required": [ "agent", "items", "start_time", "end_time" ], "type": "object" }, "AiAgentTimelineResponse": { "description": "Response wrapping the AI agent timeline rows.", "properties": { "bucket": { "description": "Bucket interval used for the buckets (so the UI can label the x-axis).", "example": "1 hour", "type": "string" }, "end_time": { "type": "string" }, "group_by": { "description": "Echoes the grouping dimension actually applied.", "example": "provider", "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AiAgentTimelineRow" }, "type": "array" }, "start_time": { "type": "string" } }, "required": [ "items", "start_time", "end_time", "bucket", "group_by" ], "type": "object" }, "AiAgentTimelineRow": { "description": "One point in the AI-agent timeline: the request count for a single\n(`bucket`, `key`) pair, where `key` is a provider or agent name depending on\nthe requested grouping. The UI pivots these into one stacked series per\n`key` across the shared bucket x-axis.", "properties": { "bucket": { "description": "Bucket start in RFC3339 format.", "example": "2026-05-29T12:00:00Z", "type": "string" }, "key": { "description": "Provider or agent name this count belongs to.", "example": "OpenAI", "type": "string" }, "request_count": { "format": "int64", "type": "integer" } }, "required": [ "bucket", "key", "request_count" ], "type": "object" }, "AiChatLimitsSettings": { "description": "Bounds on one AI chat turn.\n\nA turn is bounded by TIME rather than by a number of steps. A step count\nsays nothing about cost or about how long someone has been watching a\nspinner, and it cuts short exactly the long, productive turns the chat\nexists for. The user can already see each tool call and press Stop; the\ndeadline is what guarantees an *unattended* turn still ends.\n\nThe right value is a property of the model, which is why it is configurable\nrather than compiled in: a full alert-suggestion turn takes ~10 minutes\nagainst a slow local model and seconds against a hosted one.", "properties": { "turn_timeout_secs": { "default": 900, "description": "How long one turn may run before it is stopped and the partial answer\nreturned, in seconds. The user is told the turn was cut short.\n\nChecked between steps, not mid-call: a model round already in flight\nfinishes, so a turn can overrun by up to one round. Against a slow\nself-hosted model that is a minute or two. Aborting mid-stream would cut\nthe answer off in the middle of a sentence and throw away work already\npaid for, which is worse than a late stop.", "example": 900, "format": "int32", "maximum": 3600, "minimum": 30, "type": "integer" } }, "type": "object" }, "AiConfigSettings": { "description": "Global AI configuration settings. Controls the default config repo\ncontaining `.claude/` directory (skills, MCP servers, plugins) that\ngets overlaid into every agent sandbox.", "properties": { "config_repo": { "default": "", "description": "Global config repo URL in \"owner/repo\" format (e.g. \"myorg/claude-config\").\nCloned at agent run time and overlaid into the sandbox's `.claude/` directory.", "example": "", "type": "string" }, "config_repo_allowlist": { "default": [], "description": "Repositories a project's agents may name as their own `config_repo`,\nbesides the project's own repository. An entry is `owner/repo`, or an\nowner followed by a slash and an asterisk to allow every repository of\nthat owner. The global config repo above is the administrator's own\nchoice and does not need to be listed.", "example": [ "myorg/claude-config" ], "items": { "type": "string" }, "type": "array" }, "config_repo_branch": { "default": "main", "description": "Branch of the config repo to use.", "example": "main", "type": "string" } }, "type": "object" }, "AiHarnessCredential": { "description": "The credential that authenticated the harness. Never carries the secret,\nonly the identifiers the API-key list already shows.", "properties": { "id": { "format": "int32", "type": "integer" }, "key_prefix": { "type": "string" }, "kind": { "$ref": "#/components/schemas/AiHarnessCredentialKind" }, "last_used_at": { "example": "2026-01-01T00:00:00Z", "format": "date-time", "type": "string" }, "name": { "type": "string" } }, "required": [ "id", "name", "key_prefix", "kind", "last_used_at" ], "type": "object" }, "AiHarnessCredentialKind": { "description": "Which credential proved the harness connected.", "enum": [ "dedicated_key", "cli_login" ], "type": "string" }, "AiHarnessState": { "description": "Where the harness onboarding stands for the calling user.", "enum": [ "missing", "waiting", "connected" ], "type": "string" }, "AiHarnessStatusResponse": { "description": "`GET /api-keys/ai-harness/status`: the caller's AI harness connection.", "properties": { "connected_via": { "oneOf": [ { "$ref": "#/components/schemas/AiHarnessCredential", "description": "Set when `status` is `connected`." }, { "type": "null" } ] }, "key_created_at": { "example": "2026-01-01T00:00:00Z", "format": "date-time", "type": [ "string", "null" ] }, "key_id": { "description": "The dedicated harness key, when one exists (active or not).", "format": "int32", "type": [ "integer", "null" ] }, "reason": { "description": "Why the status is not `connected`, in words the console can show.", "type": [ "string", "null" ] }, "setup_path": { "description": "Console route that resolves `reason`.", "type": [ "string", "null" ] }, "status": { "$ref": "#/components/schemas/AiHarnessState" } }, "required": [ "status" ], "type": "object" }, "AiModelOptionDto": { "properties": { "default_thinking_option_id": { "type": [ "string", "null" ] }, "id": { "type": "string" }, "name": { "type": "string" }, "thinking_options": { "items": { "$ref": "#/components/schemas/AiSelectOptionDto" }, "type": "array" }, "tool_thinking_options": { "description": "Model-specific reasoning options valid while project-chat function\ntools are attached. Omitted when the normal options also apply.", "items": { "$ref": "#/components/schemas/AiSelectOptionDto" }, "type": [ "array", "null" ] } }, "required": [ "id", "name", "thinking_options" ], "type": "object" }, "AiPageBreakdownResponse": { "description": "Response wrapping the AI page breakdown rows.", "properties": { "end_time": { "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AiPageBreakdownRow" }, "type": "array" }, "start_time": { "type": "string" } }, "required": [ "items", "start_time", "end_time" ], "type": "object" }, "AiPageBreakdownRow": { "description": "One row in the AI-crawled-pages breakdown. `agent_count` is the number of\n*distinct* AI agents that hit this path, so the UI can show both how heavily\nand how broadly a page is being crawled.", "properties": { "agent_count": { "format": "int64", "type": "integer" }, "last_seen": { "description": "Last-seen timestamp in RFC3339 format, or `None` if no rows matched.", "example": "2026-05-29T12:00:00Z", "type": [ "string", "null" ] }, "path": { "type": "string" }, "request_count": { "format": "int64", "type": "integer" } }, "required": [ "path", "request_count", "agent_count" ], "type": "object" }, "AiProviderLoginResponse": { "allOf": [ { "$ref": "#/components/schemas/LoginSessionView" } ], "description": "Response wrapper kept separate from the service view so the wire shape is\nowned by the handler layer." }, "AiProviderStatusResponse": { "description": "Current API-gateway availability for this instance.\n\nThe `configured` field drives the UI onboarding state: when `false` the UI\nmust show _exactly what is missing_ (`reason`) and _where to fix it_\n(`setup_path`), not hide the feature.", "properties": { "available_providers": { "description": "Gateway providers available to API-backed chat and summaries. Credential\nsource is descriptive metadata only and never contains secret values.", "items": { "$ref": "#/components/schemas/AvailableAiProviderDto" }, "type": "array" }, "configured": { "description": "Whether the active provider is ready to serve requests.", "type": "boolean" }, "gateway_available": { "description": "Whether at least one active BYOK provider key exists.", "type": "boolean" }, "interactive_bridge_status": { "description": "Health of normalized mid-turn user interactions, or `null` when the\nactive adapter does not advertise them. Kept for API compatibility.", "type": [ "string", "null" ] }, "reason": { "description": "Human-readable explanation of why `configured` is `false`.", "type": [ "string", "null" ] }, "setup_path": { "description": "Console path the operator should visit to fix the missing configuration.", "type": [ "string", "null" ] }, "summary_preference": { "$ref": "#/components/schemas/AiSummaryPreferenceDto", "description": "Instance-wide defaults inherited by all server-authored AI summaries." }, "supports_interactive_tools": { "description": "Whether the active adapter's normalized realtime contract exposes tool\nevents. Kept under the legacy field name for API compatibility.", "type": "boolean" } }, "required": [ "configured", "gateway_available", "available_providers", "supports_interactive_tools", "summary_preference" ], "type": "object" }, "AiSelectOptionDto": { "properties": { "description": { "type": [ "string", "null" ] }, "id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "id", "name" ], "type": "object" }, "AiStatusBreakdownResponse": { "description": "Response wrapping the AI status breakdown rows.", "properties": { "end_time": { "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AiStatusBreakdownRow" }, "type": "array" }, "start_time": { "type": "string" } }, "required": [ "items", "start_time", "end_time" ], "type": "object" }, "AiStatusBreakdownRow": { "description": "One row in the AI-agent HTTP status breakdown: the request count for a\nstatus class (`1xx`/`2xx`/`3xx`/`4xx`/`5xx`/`other`) across crawler traffic.", "properties": { "request_count": { "format": "int64", "type": "integer" }, "status_class": { "description": "Status class label.", "example": "2xx", "type": "string" } }, "required": [ "status_class", "request_count" ], "type": "object" }, "AiSummaryPreferenceDto": { "properties": { "model": { "description": "`null` uses the selected provider's default model.", "type": [ "string", "null" ] }, "provider_id": { "description": "Normalized gateway route (`gateway_key:{id}`). `null` inherits the\nactive gateway key.", "type": [ "string", "null" ] }, "thinking_level": { "description": "`null` uses the selected model's default reasoning depth.", "type": [ "string", "null" ] } }, "type": "object" }, "AiToolInfo": { "properties": { "access": { "type": "string" }, "description": { "type": "string" }, "name": { "type": "string" } }, "required": [ "name", "description", "access" ], "type": "object" }, "AiWorkspaceFileLimitsSettings": { "description": "Runtime limits for workspace file transfer and browser previews.\n\nThe HTTP layer additionally enforces absolute ceilings so a malformed or\nlegacy settings row cannot turn a configurable limit into unbounded control\nplane memory use.", "properties": { "max_download_size_mb": { "default": 32, "example": 32, "format": "int32", "maximum": 32, "minimum": 1, "type": "integer" }, "max_file_size_mb": { "default": 16, "example": 16, "format": "int32", "maximum": 32, "minimum": 1, "type": "integer" }, "max_files_per_upload": { "default": 32, "example": 32, "format": "int32", "maximum": 100, "minimum": 1, "type": "integer" }, "max_image_preview_size_mb": { "default": 8, "example": 8, "format": "int32", "maximum": 16, "minimum": 1, "type": "integer" }, "max_text_preview_kb": { "default": 256, "example": 256, "format": "int32", "maximum": 1024, "minimum": 1, "type": "integer" }, "max_upload_size_mb": { "default": 32, "example": 32, "format": "int32", "maximum": 32, "minimum": 1, "type": "integer" }, "max_workspace_entries": { "default": 5000, "example": 5000, "format": "int32", "maximum": 50000, "minimum": 1, "type": "integer" }, "max_workspace_size_mb": { "default": 256, "example": 256, "format": "int32", "maximum": 2048, "minimum": 1, "type": "integer" } }, "type": "object" }, "AlarmListResponse": { "description": "Paginated list of alarms.", "properties": { "items": { "items": { "$ref": "#/components/schemas/AlarmResponse" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "total", "page", "page_size" ], "type": "object" }, "AlarmResponse": { "description": "Full alarm representation returned by list/summary endpoints.", "properties": { "acknowledged_at": { "description": "ISO-8601 UTC timestamp when the alarm was acknowledged, if any.", "type": [ "string", "null" ] }, "acknowledged_by": { "description": "User ID who acknowledged the alarm, if any.", "format": "int32", "type": [ "integer", "null" ] }, "alarm_type": { "type": "string" }, "container_id": { "format": "int32", "type": [ "integer", "null" ] }, "created_at": { "description": "ISO-8601 UTC timestamp when the row was created.", "type": "string" }, "deployment_id": { "format": "int32", "type": [ "integer", "null" ] }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "fired_at": { "description": "ISO-8601 UTC timestamp when the alarm fired.", "type": "string" }, "id": { "format": "int32", "type": "integer" }, "message": { "type": [ "string", "null" ] }, "metadata": { "description": "Arbitrary JSON metadata attached by the alarm source." }, "project_id": { "description": "`None` for host/control-plane-wide alarms with no associated project.", "format": "int32", "type": [ "integer", "null" ] }, "resolved_at": { "description": "ISO-8601 UTC timestamp when the alarm was resolved, if any.", "type": [ "string", "null" ] }, "service_id": { "format": "int32", "type": [ "integer", "null" ] }, "severity": { "type": "string" }, "silenced_until": { "description": "ISO-8601 UTC timestamp this alarm (and future re-fires of the same\ntype/scope) are muted until, if currently silenced. Not cleared when\nthe silence expires — check against the current time, or compare to\n`fired_at` on a *new* alarm of the same scope to know a silence has\nlapsed.", "type": [ "string", "null" ] }, "status": { "type": "string" }, "title": { "type": "string" }, "updated_at": { "description": "ISO-8601 UTC timestamp when the row was last updated.", "type": "string" } }, "required": [ "id", "alarm_type", "severity", "status", "title", "fired_at", "created_at", "updated_at" ], "type": "object" }, "AlarmSummaryResponse": { "description": "Re-export AlarmSummary for the OpenAPI schema.", "properties": { "acknowledged": { "format": "int32", "minimum": 0, "type": "integer" }, "by_type": { "additionalProperties": { "format": "int32", "minimum": 0, "type": "integer" }, "propertyNames": { "type": "string" }, "type": "object" }, "critical": { "format": "int32", "minimum": 0, "type": "integer" }, "firing": { "format": "int32", "minimum": 0, "type": "integer" }, "total_active": { "format": "int32", "minimum": 0, "type": "integer" }, "warning": { "format": "int32", "minimum": 0, "type": "integer" } }, "required": [ "total_active", "firing", "acknowledged", "critical", "warning", "by_type" ], "type": "object" }, "AlertRuleResponse": { "properties": { "cooldown_minutes": { "format": "int32", "type": "integer" }, "created_at": { "type": "string" }, "enabled": { "type": "boolean" }, "environment_filter": { "format": "int32", "type": [ "integer", "null" ] }, "error_level_filter": { "type": [ "string", "null" ] }, "id": { "format": "int32", "type": "integer" }, "name": { "type": "string" }, "notification_priority": { "type": "string" }, "project_id": { "format": "int32", "type": "integer" }, "trigger_config": {}, "trigger_type": { "type": "string" }, "updated_at": { "type": "string" } }, "required": [ "id", "project_id", "name", "trigger_type", "trigger_config", "notification_priority", "cooldown_minutes", "enabled", "created_at", "updated_at" ], "type": "object" }, "AlertSeriesSource": { "description": "What series a rule is evaluated on (ADR 108 D1).\n\nA log rule carries its saved search in the same value, so \"a log alert\nwith nothing to count\" cannot be constructed.", "oneOf": [ { "description": "The OTel metric the rule names. Every rule before ADR 108.", "properties": { "kind": { "enum": [ "metric" ], "type": "string" } }, "required": [ "kind" ], "type": "object" }, { "description": "The number of log lines matching a saved search per window.", "properties": { "kind": { "enum": [ "logs" ], "type": "string" }, "saved_search_id": { "description": "`log_saved_searches.id`, in the rule's own project.", "format": "int32", "type": "integer" } }, "required": [ "saved_search_id", "kind" ], "type": "object" } ] }, "AllocEntry": { "description": "Wire-format allocation. `null` in the JSON when the node hasn't been\nallocated yet — workers should treat that as \"single-host mode, do\nnot bring up the overlay\".", "properties": { "bridge_address": { "type": "string" }, "compute_cidr": { "type": "string" }, "node_id": { "description": "Stable v5 UUID derived from the database node id.", "type": "string" }, "overlay_network_name": { "description": "The overlay network name this node uses (ADR 059): its override, else\nthe cluster's. Agents that predate it ignore the field and keep\n`temps0`; an agent reading a control plane without it assumes\n`temps0`.", "type": [ "string", "null" ] }, "underlay_address": { "type": "string" } }, "required": [ "node_id", "compute_cidr", "bridge_address", "underlay_address" ], "type": "object" }, "AnalyticsCapability": { "properties": { "backend": { "oneOf": [ { "$ref": "#/components/schemas/LineIndexBackend", "description": "Where the index lives (`clickhouse`, `temps_cloud` or `timescaledb`)\nwhen configured. The TimescaleDB fallback answers the same endpoints\nbut scales with line count on the control-plane database; the\nonboarding copy points at ClickHouse or Temps Cloud for volume." }, { "type": "null" } ] }, "configured": { "description": "`true` when the line index is active and receiving sealed chunks.", "type": "boolean" }, "example": { "description": "What analytics would do here — shown as the example in the\nonboarding state.", "type": "string" }, "forget_backlog": { "description": "Chunks retired (compacted, purged, or expired by retention) whose\nremoval from the line index has not yet been confirmed — durably\nqueued in `log_line_forget_backlog` and drained by `ForgetSweeper`\n(ADR-047 §8a). Non-zero for more than a few sweep intervals (30s,\nsee [`crate::services::FORGET_SWEEP_INTERVAL`]) means the index\nstill holds rows for chunks that no longer exist — over-counted in\nfacets/histograms/aggregates until the sweeper catches up.", "format": "int64", "minimum": 0, "type": "integer" }, "indexed_chunks": { "format": "int64", "minimum": 0, "type": "integer" }, "live_chunks": { "description": "Live chunks in the manifest and how many of them are indexed. Equal\nnumbers mean the index is complete; a gap is the reindexer's queue.", "format": "int64", "minimum": 0, "type": "integer" }, "max_window_days": { "description": "Widest window one analytics query answers on this store, in days.\nThe TimescaleDB store clamps `start_time` to this many days before\n`end_time` so a query can never scan the whole control-plane\ndatabase; ClickHouse stores are unbounded (`None`).", "format": "int32", "minimum": 0, "type": [ "integer", "null" ] }, "reason": { "description": "Exactly what is missing, when `configured` is false.", "type": [ "string", "null" ] }, "setup_path": { "description": "Console route where the operator fixes it.", "type": "string" } }, "required": [ "configured", "setup_path", "example", "live_chunks", "indexed_chunks", "forget_backlog" ], "type": "object" }, "AnalyticsFacet": { "enum": [ "summary", "traffic", "pages", "events", "breakdown", "speed" ], "type": "string" }, "AnalyticsGoal": { "description": "A conversion goal.", "properties": { "created_at": { "format": "date-time", "type": "string" }, "event_filter": { "items": { "$ref": "#/components/schemas/SmartFilter" }, "type": "array" }, "event_name": { "type": [ "string", "null" ] }, "id": { "format": "int32", "type": "integer" }, "kind": { "$ref": "#/components/schemas/AnalyticsGoalKind" }, "name": { "type": "string" }, "page_path": { "type": [ "string", "null" ] }, "project_id": { "format": "int32", "type": "integer" }, "revenue_currency": { "type": [ "string", "null" ] }, "revenue_property": { "type": [ "string", "null" ] }, "updated_at": { "format": "date-time", "type": "string" } }, "required": [ "id", "project_id", "name", "kind", "event_filter", "created_at", "updated_at" ], "type": "object" }, "AnalyticsGoalBreakdownDimension": { "description": "What a goal breakdown groups converting visitors by.", "enum": [ "channel", "referrer", "utm_source", "utm_medium", "utm_campaign", "page", "country", "device_type", "browser", "operating_system" ], "type": "string" }, "AnalyticsGoalBreakdownResponse": { "description": "Response of `GET /projects/{project_id}/analytics/goals/{goal_id}/breakdown`.", "properties": { "dimension": { "$ref": "#/components/schemas/AnalyticsGoalBreakdownDimension" }, "goal_id": { "format": "int32", "type": "integer" }, "items": { "description": "Ordered by unique conversions, then total conversions.", "items": { "$ref": "#/components/schemas/AnalyticsGoalBreakdownRow" }, "type": "array" } }, "required": [ "goal_id", "dimension", "items" ], "type": "object" }, "AnalyticsGoalBreakdownRow": { "description": "One value of a goal breakdown.", "properties": { "conversion_rate": { "description": "`unique_conversions` as a percentage of `visitors`.", "format": "double", "type": "number" }, "revenue": { "oneOf": [ { "$ref": "#/components/schemas/AnalyticsGoalRevenue", "description": "Revenue total and average, when the goal names a revenue property." }, { "type": "null" } ] }, "total_conversions": { "format": "int64", "type": "integer" }, "unique_conversions": { "format": "int64", "type": "integer" }, "value": { "description": "`null` when the visitor or event has no value for the dimension.", "type": [ "string", "null" ] }, "visitors": { "description": "Distinct non-crawler visitors with that value in the period.", "format": "int64", "type": "integer" } }, "required": [ "visitors", "unique_conversions", "total_conversions", "conversion_rate" ], "type": "object" }, "AnalyticsGoalInput": { "description": "Body of `POST` and `PUT /projects/{project_id}/analytics/goals`.", "properties": { "event_filter": { "description": "Conditions every matching event must meet, in the vocabulary funnel\nsteps use, e.g. `[{\"type\":\"custom_data\",\"value\":{\"path\":\"plan\",\"value\":\"pro\"}}]`.", "items": { "$ref": "#/components/schemas/SmartFilter" }, "type": "array" }, "event_name": { "description": "Required for `event` goals, refused for `page` goals.", "example": "signup", "type": [ "string", "null" ] }, "kind": { "$ref": "#/components/schemas/AnalyticsGoalKind" }, "name": { "description": "Shown in the Conversions report, e.g. \"Signup\". Unique per project,\nignoring case.", "example": "Signup", "type": "string" }, "page_path": { "description": "Required for `page` goals, refused for `event` goals. Starts with `/`;\n`*` matches any run of characters, e.g. `/thank-you` or `/docs/*`.", "example": "/thank-you", "type": [ "string", "null" ] }, "revenue_currency": { "description": "ISO 4217 currency code of `revenue_property`, e.g. `EUR`.", "example": "EUR", "type": [ "string", "null" ] }, "revenue_property": { "description": "Event property holding the value of one conversion, e.g. `amount`.\nEvent goals only; requires `revenue_currency`.", "example": "amount", "type": [ "string", "null" ] } }, "required": [ "name", "kind" ], "type": "object" }, "AnalyticsGoalKind": { "description": "What a goal matches.", "enum": [ "event", "page" ], "type": "string" }, "AnalyticsGoalListResponse": { "description": "A page of goals, newest first.", "properties": { "items": { "items": { "$ref": "#/components/schemas/AnalyticsGoal" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "total", "page", "page_size" ], "type": "object" }, "AnalyticsGoalRevenue": { "description": "Revenue a goal's conversions carried.", "properties": { "average": { "description": "`total` divided by the conversions that carried a number.", "format": "double", "type": "number" }, "currency": { "type": "string" }, "total": { "description": "Sum of the revenue property over conversions that carried a number.", "format": "double", "type": "number" } }, "required": [ "currency", "total", "average" ], "type": "object" }, "AnalyticsGoalStats": { "description": "Conversion figures of one goal in a period.", "properties": { "conversion_rate": { "description": "`unique_conversions` as a percentage of the period's visitors.", "format": "double", "type": "number" }, "goal_id": { "format": "int32", "type": "integer" }, "kind": { "$ref": "#/components/schemas/AnalyticsGoalKind" }, "name": { "type": "string" }, "revenue": { "oneOf": [ { "$ref": "#/components/schemas/AnalyticsGoalRevenue", "description": "Present when the goal names a revenue property." }, { "type": "null" } ] }, "total_conversions": { "description": "Matching events, a visitor converting twice counting twice.", "format": "int64", "type": "integer" }, "unique_conversions": { "description": "Distinct visitors who converted.", "format": "int64", "type": "integer" } }, "required": [ "goal_id", "name", "kind", "unique_conversions", "total_conversions", "conversion_rate" ], "type": "object" }, "AnalyticsGoalStatsResponse": { "description": "Response of `GET /projects/{project_id}/analytics/goals/stats`.", "properties": { "goals": { "description": "Every goal of the project, in creation order, including the ones\nwithout conversions in the period.", "items": { "$ref": "#/components/schemas/AnalyticsGoalStats" }, "type": "array" }, "visitors": { "description": "Distinct non-crawler visitors with a page view in the period: the\ndenominator of every conversion rate, as on the overview.", "format": "int64", "type": "integer" } }, "required": [ "visitors", "goals" ], "type": "object" }, "AnalyticsIdentityMode": { "description": "Per-project visitor identity mode.", "enum": [ "persistent", "cookieless" ], "type": "string" }, "AnalyticsIdentitySettings": { "description": "How a project tells its visitors apart, and what that costs.", "properties": { "accept_browser_identify": { "description": "Whether `identify()` from the browser is applied (ADR 109 D4). When\n`false`, only the app's backend can identify a visitor. Defaults to\n`true`. Ignored in `cookieless` mode, where identify stores nothing.", "type": "boolean" }, "limitations": { "description": "Reports that behave differently in this mode, for the console to say\nso next to them.", "items": { "type": "string" }, "type": "array" }, "mode": { "$ref": "#/components/schemas/AnalyticsIdentityMode", "description": "`persistent` (the default): ids stored in a cookie or `localStorage`,\nvisitors recognised across days. `cookieless`: nothing stored on the\ndevice; a visitor is a new visitor every day." }, "project_id": { "format": "int32", "type": "integer" }, "sdk_option": { "description": "What the browser SDK must be told for this mode, so it writes nothing\neither: `cookieless: true`, or `data-cookieless=\"true\"` on the script\ntag. `None` in `persistent` mode.", "type": [ "string", "null" ] }, "updated_at": { "format": "date-time", "type": "string" } }, "required": [ "project_id", "mode", "accept_browser_identify", "limitations", "updated_at" ], "type": "object" }, "AnalyticsIngestEndpoint": { "description": "The public address an app Temps does not deploy should send analytics to.\n\nServed separately from the platform settings because `GET /settings`\nneeds `settings:read`, which a project member does not hold, while the\ninstall snippet this value goes into is shown to every role that can read\nthe project's analytics. Only the one address the snippet embeds is\nexposed; no other setting travels with it.", "properties": { "external_url": { "description": "The configured external URL, without a trailing slash. `null` when no\nexternal URL is stored (or no settings service is available), in which\ncase the caller must decide what to show instead; it is never guessed.", "type": [ "string", "null" ] } }, "type": "object" }, "AnalyticsIngestKey": { "description": "An analytics ingest key as returned by the admin API.\n\n`public_key` is present in full on every response — see the module docs.", "properties": { "allowed_origins": { "description": "Exact origins (`scheme://host[:port]`) permitted to use this key from a\nbrowser. `None` or `[]` means any origin. This is a browser-enforced\nconvenience control, not authentication — a non-browser client ignores\n`Origin` entirely.", "items": { "type": "string" }, "type": [ "array", "null" ] }, "created_at": { "example": "2026-01-01T00:00:00Z", "format": "date-time", "type": "string" }, "created_by_user_id": { "format": "int32", "type": [ "integer", "null" ] }, "environment_id": { "description": "`None` means the key is scoped to the whole project. An\nenvironment-scoped key additionally attributes ingested data to that\nenvironment's current deployment, when it has one.", "format": "int32", "type": [ "integer", "null" ] }, "event_count": { "format": "int64", "type": "integer" }, "id": { "format": "int32", "type": "integer" }, "is_active": { "type": "boolean" }, "last_used_at": { "example": "2026-01-01T00:00:00Z", "format": "date-time", "type": [ "string", "null" ] }, "name": { "description": "Operator-facing label.", "type": "string" }, "project_id": { "format": "int32", "type": "integer" }, "public_key": { "description": "The ingest key itself, `pa_` + 64 hex characters.\n\n**Not a secret.** It is designed to ship in client-side JavaScript and\nis returned unmasked so operators can copy it. See the module docs.", "type": "string" }, "rate_limit_per_minute": { "description": "`None` or `<= 0` means unlimited.", "format": "int32", "type": [ "integer", "null" ] }, "revoked_at": { "example": "2026-01-01T00:00:00Z", "format": "date-time", "type": [ "string", "null" ] }, "updated_at": { "example": "2026-01-01T00:00:00Z", "format": "date-time", "type": "string" } }, "required": [ "id", "project_id", "name", "public_key", "is_active", "event_count", "created_at", "updated_at" ], "type": "object" }, "AnalyticsIngestKeyList": { "description": "One page of a project's analytics ingest keys, newest first.", "properties": { "items": { "description": "The items on this page.", "items": { "$ref": "#/components/schemas/AnalyticsIngestKey" }, "type": "array" }, "page": { "description": "The page served, starting at 1.", "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "description": "The page size served (at most 100).", "format": "int64", "minimum": 0, "type": "integer" }, "total": { "description": "Items across all pages.", "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "total", "page", "page_size" ], "type": "object" }, "AnalyticsProjectOption": { "properties": { "project_id": { "format": "int32", "type": "integer" }, "project_name": { "type": "string" } }, "required": [ "project_id", "project_name" ], "type": "object" }, "AnalyticsRetentionSettings": { "description": "How long product analytics data, and the identifiers attached to it, are\nkept.\n\n`ip_geolocations` holds the full client IP address and is referenced by\nevents, proxy logs, error events, visitors, performance metrics and audit\nlogs. Before these settings existed nothing ever removed an IP once stored,\nand nothing removed visitors, so the retention of the referencing tables\nsaid nothing about how long an address was kept.\n\nA job removes an IP row only when **no** table references it, so the\neffective retention of an address is the longest window among the data that\nstill points at it. Audit logs keep their IP for as long as the audit\nrecord exists.\n\n`None` on an optional window means \"keep\" -- the behaviour before the\nsetting existed. Events have a required window (365 days by default),\nincluding the ClickHouse copy on upgrade. The unreferenced-IP cleanup\ndefaults to 30 days and only drops cache rows that nothing points at.", "properties": { "error_events_days": { "default": null, "description": "Retain captured error events for this many days. `null` keeps them\nuntil the project is deleted. Error groups keep their counters.", "example": 90, "format": "int32", "maximum": 3650, "minimum": 1, "type": [ "integer", "null" ] }, "events_days": { "default": 365, "description": "Retain analytics events (page views, custom events) for this many\ndays. Applied to the TimescaleDB events policy and, when configured,\nthe ClickHouse events TTL. Reconciled hourly and after ClickHouse\nmigrations. ClickHouse expiry follows asynchronous background merges.", "example": 365, "format": "int32", "maximum": 3650, "minimum": 1, "type": "integer" }, "unreferenced_ip_days": { "default": 30, "description": "Delete a stored client IP address (and its derived location) once\nnothing references it and it has not been looked up for this many\ndays. Never applied sooner than the proxy-log retention\n(`observability_retention.proxy_logs_days`): request logs kept outside\nPostgreSQL still point at the address. `null` keeps every address ever\nseen.", "example": 30, "format": "int32", "maximum": 3650, "minimum": 1, "type": [ "integer", "null" ] }, "visitor_days": { "default": null, "description": "Delete visitors that have not been seen for this many days. Their\nsession replays are deleted with them. With ClickHouse enabled, their\nproject-scoped events are deleted from both databases; failures leave\nvisitors for retry. With PostgreSQL only, events are detached and kept.\nProxy logs and error events keep their own retention. This is not\nerasure of all visitor data. `null` keeps visitors indefinitely.", "example": 425, "format": "int32", "maximum": 3650, "minimum": 1, "type": [ "integer", "null" ] } }, "type": "object" }, "AnalyticsSessionEventsResponse": { "properties": { "events": { "items": { "$ref": "#/components/schemas/SessionEvent" }, "type": "array" }, "session_id": { "type": "string" }, "total_events": { "minimum": 0, "type": "integer" } }, "required": [ "session_id", "events", "total_events" ], "type": "object" }, "AnnotatedSpan": { "description": "A single span annotated with the project that originally stored it.\nUsed in `UnifiedTrace` to let the UI colour-code spans by project.", "properties": { "project_id": { "description": "The project that stored this span (same as `span.project_id`).", "format": "int32", "type": "integer" }, "project_name": { "description": "Human-readable project name for waterfall colour-coding and legend.", "type": "string" }, "span": { "$ref": "#/components/schemas/SpanRecord", "description": "Original span data verbatim from storage." } }, "required": [ "project_id", "project_name", "span" ], "type": "object" }, "AnomalyAlgorithm": { "description": "Anomaly baseline algorithm. Adding one (e.g. a new robust variant) is a\ncode-only enum addition — no migration, since it lives inside the blob.", "enum": [ "robust", "basic", "agile", "ewma" ], "type": "string" }, "AnomalyParams": { "description": "Seasonal anomaly-band detector parameters (stub — not yet evaluated).", "properties": { "algorithm": { "$ref": "#/components/schemas/AnomalyAlgorithm", "description": "Baseline model. `robust` is the default (seasonal, stable, flags level\nshifts); `ewma`/`agile` adopt level shifts; `basic` is non-seasonal." }, "baseline_lookback_days": { "description": "How far back to build the baseline. `None` = an evaluator default.", "format": "int32", "type": [ "integer", "null" ] }, "deviations": { "description": "Band width in robust standard deviations (Datadog's `bounds`).", "format": "double", "type": "number" }, "direction": { "$ref": "#/components/schemas/Direction", "description": "Which side(s) of the band a deviation must be on to count." }, "pct_anomalous": { "description": "Fraction (0..=1) of points in the window that must be anomalous to fire.", "format": "double", "type": "number" }, "seasonality": { "$ref": "#/components/schemas/Seasonality", "description": "Seasonality model for the baseline." } }, "type": "object" }, "AnomalyPreviewPointResponse": { "properties": { "breaching": { "type": "boolean" }, "bucket": { "example": "2025-10-12T12:15:47Z", "type": "string" }, "lower": { "description": "Lower edge of the expected band at this point.", "format": "double", "type": "number" }, "upper": { "description": "Upper edge of the expected band at this point.", "format": "double", "type": "number" }, "value": { "format": "double", "type": "number" } }, "required": [ "bucket", "value", "lower", "upper", "breaching" ], "type": "object" }, "AnomalyPreviewRequest": { "properties": { "aggregation": { "description": "One of `avg|sum|min|max|count|rate|p50|p90|p95|p99`.", "type": "string" }, "detection_config": { "$ref": "#/components/schemas/DetectionConfig", "description": "The detector to backtest. `static` and `anomaly` are supported — the\nkinds the evaluator actually runs." }, "end_time": { "description": "RFC 3339; defaults to now.", "example": "2025-10-12T12:15:47Z", "type": [ "string", "null" ] }, "metric_name": { "type": "string" }, "project_id": { "format": "int32", "type": "integer" }, "start_time": { "description": "RFC 3339; defaults to 7 days before `end_time`.", "example": "2025-10-12T12:15:47Z", "type": [ "string", "null" ] }, "window_secs": { "format": "int32", "type": "integer" } }, "required": [ "project_id", "metric_name", "aggregation", "window_secs", "detection_config" ], "type": "object" }, "AnomalyPreviewResponse": { "properties": { "baseline_samples": { "description": "Baseline sample count (drives the `sufficient` flag).", "format": "int64", "type": "integer" }, "breach_count": { "description": "How many points in the range would have fired.", "format": "int64", "type": "integer" }, "points": { "items": { "$ref": "#/components/schemas/AnomalyPreviewPointResponse" }, "type": "array" }, "sufficient": { "description": "Whether the baseline had enough history for a trustworthy band.", "type": "boolean" } }, "required": [ "points", "breach_count", "baseline_samples", "sufficient" ], "type": "object" }, "AnswerCount": { "properties": { "count": { "format": "int64", "type": "integer" }, "value": { "description": "The choice, or the score as text.", "type": "string" } }, "required": [ "value", "count" ], "type": "object" }, "AnswerValue": { "description": "An answer as the responses list shows it.", "oneOf": [ { "description": "Open text or a single choice.", "type": "string" }, { "description": "A rating or NPS score.", "format": "double", "type": "number" }, { "description": "Multiple-choice selections.", "items": { "type": "string" }, "type": "array" } ] }, "ApiCallerEntry": { "description": "A single caller entry in the top-callers breakdown.", "properties": { "client_ip": { "description": "Caller IP address as recorded in proxy_logs.client_ip.", "type": "string" }, "error_rate": { "description": "Error rate for this caller (0.0–1.0).", "format": "double", "type": "number" }, "last_seen": { "description": "Timestamp of the most recent request from this IP in the period.", "format": "date-time", "type": "string" }, "request_count": { "description": "Total request count from this IP in the period.", "format": "int64", "type": "integer" } }, "required": [ "client_ip", "request_count", "error_rate", "last_seen" ], "type": "object" }, "ApiCallersResponse": { "description": "Top callers (by IP) ranked by request count for a given project + time window.", "properties": { "callers": { "description": "Top callers, ordered by request_count descending.", "items": { "$ref": "#/components/schemas/ApiCallerEntry" }, "type": "array" }, "total_callers": { "description": "Total distinct client IPs seen in the period (before the limit).", "format": "int64", "type": "integer" } }, "required": [ "callers", "total_callers" ], "type": "object" }, "ApiKeyListResponse": { "properties": { "api_keys": { "items": { "$ref": "#/components/schemas/ApiKeyResponse" }, "type": "array" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "api_keys", "total" ], "type": "object" }, "ApiKeyResponse": { "properties": { "created_at": { "example": "2024-01-01T00:00:00Z", "format": "date-time", "type": "string" }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "expires_at": { "example": "2024-12-31T23:59:59Z", "format": "date-time", "type": [ "string", "null" ] }, "id": { "format": "int32", "type": "integer" }, "is_active": { "type": "boolean" }, "key_prefix": { "type": "string" }, "last_used_at": { "example": "2024-01-01T00:00:00Z", "format": "date-time", "type": [ "string", "null" ] }, "name": { "type": "string" }, "permissions": { "items": { "type": "string" }, "type": [ "array", "null" ] }, "project_id": { "description": "Immutable optional deployment resource scope.", "format": "int32", "type": [ "integer", "null" ] }, "role_type": { "type": "string" } }, "required": [ "id", "name", "key_prefix", "role_type", "is_active", "created_at" ], "type": "object" }, "ApiRouteEntry": { "description": "A single route entry in the top-routes breakdown.\n\nRoutes are grouped by raw `(method, path)` — no template normalization.\nSee the module-level note on path cardinality.", "properties": { "avg_latency_ms": { "description": "Mean response time in milliseconds for this route.", "format": "double", "type": [ "number", "null" ] }, "error_rate": { "description": "Error rate for this route (0.0–1.0): requests with status >= 400.", "format": "double", "type": "number" }, "method": { "description": "HTTP method (e.g. \"GET\", \"POST\").", "type": "string" }, "path": { "description": "Raw request path (e.g. \"/api/users/123\"). High-cardinality paths with\ndynamic IDs will appear as separate rows until path normalization is\nimplemented.", "type": "string" }, "request_count": { "description": "Total request count for this route in the period.", "format": "int64", "type": "integer" } }, "required": [ "method", "path", "request_count", "error_rate" ], "type": "object" }, "ApiRoutesResponse": { "description": "Top routes by request count for a given project + time window.", "properties": { "routes": { "description": "Top routes, ordered by request_count descending.", "items": { "$ref": "#/components/schemas/ApiRouteEntry" }, "type": "array" }, "total_routes": { "description": "Total distinct (method, path) pairs in the period (before the limit).", "format": "int64", "type": "integer" } }, "required": [ "routes", "total_routes" ], "type": "object" }, "ApiTimeseriesPoint": { "description": "A single time bucket in the API request timeseries.", "properties": { "avg_latency_ms": { "description": "Mean response time in milliseconds. Null when no rows with a recorded\nresponse_time_ms exist in the bucket.", "format": "double", "type": [ "number", "null" ] }, "error_count": { "description": "Number of requests with status >= 400.", "format": "int64", "type": "integer" }, "error_rate": { "description": "Error rate: error_count / request_count (0.0–1.0). Zero when\nrequest_count == 0.", "format": "double", "type": "number" }, "p95_latency_ms": { "description": "p95 response time in milliseconds. Null when insufficient data.", "format": "double", "type": [ "number", "null" ] }, "p99_latency_ms": { "description": "p99 response time in milliseconds. Null when insufficient data.", "format": "double", "type": [ "number", "null" ] }, "request_count": { "description": "Total request count in this bucket.", "format": "int64", "type": "integer" }, "timestamp": { "description": "Bucket start timestamp (ISO 8601 with Z suffix).", "format": "date-time", "type": "string" } }, "required": [ "timestamp", "request_count", "error_count", "error_rate" ], "type": "object" }, "ApiTimeseriesResponse": { "description": "Timeseries of API request volume, error rate, and latency percentiles.", "properties": { "bucket_interval": { "description": "Bucket interval used for time series (e.g. \"1 hour\", \"6 hours\", \"1 day\").", "type": "string" }, "overall_avg_latency_ms": { "description": "Overall mean response time in milliseconds over the full period.", "format": "double", "type": [ "number", "null" ] }, "overall_error_rate": { "description": "Overall error rate over the full period (0.0–1.0).", "format": "double", "type": "number" }, "points": { "description": "Time-bucketed data points ordered ascending by timestamp.", "items": { "$ref": "#/components/schemas/ApiTimeseriesPoint" }, "type": "array" }, "total_errors": { "description": "Aggregate error count (status >= 400) over the full period.", "format": "int64", "type": "integer" }, "total_requests": { "description": "Aggregate request count over the full period.", "format": "int64", "type": "integer" } }, "required": [ "points", "total_requests", "total_errors", "overall_error_rate", "bucket_interval" ], "type": "object" }, "ApiTrafficSummary": { "description": "Structured AI summary of API traffic for a given project + time window.\n\nDerives `JsonSchema` so `complete_typed` can request this shape from the\nconfigured AI provider. All fields are intentionally short — the prompt\nfeeds aggregated stats (not raw log lines) to keep token usage bounded.\n\nWhen AI is not configured or the project has not opted in, the summary\nendpoint returns `null` for this field rather than an error.", "properties": { "anomalies": { "description": "Anomalies or concerns worth investigating (0–3 items). Empty when\ntraffic appears normal.", "items": { "type": "string" }, "type": "array" }, "findings": { "description": "Bullet-point findings (2–4 items). Each finding is a single sentence.", "items": { "type": "string" }, "type": "array" }, "headline": { "description": "One-sentence headline describing the traffic pattern.", "type": "string" }, "recommendation": { "description": "Optional single actionable recommendation.", "type": [ "string", "null" ] } }, "required": [ "headline", "findings", "anomalies" ], "type": "object" }, "ApiTrafficSummaryResponse": { "description": "Response from the AI traffic summary endpoint.", "properties": { "cached": { "description": "Whether this response was served from the backend AI-result cache.", "type": "boolean" }, "enabled": { "description": "Whether the project has `ai_api_traffic_summary_enabled = true`.", "type": "boolean" }, "summary": { "oneOf": [ { "$ref": "#/components/schemas/ApiTrafficSummary", "description": "The AI-generated summary, or `null` when AI is not configured or the\nproject has not opted in (`ai_api_traffic_summary_enabled = false`)." }, { "type": "null" } ] }, "unavailable_reason": { "description": "Why the summary is null when `summary` is None and `enabled` is true:\neither AI is not configured or the call failed/timed out.", "type": [ "string", "null" ] } }, "required": [ "enabled", "cached" ], "type": "object" }, "AppRole": { "enum": [ "web", "api", "worker", "cron", "static" ], "type": "string" }, "AppRuntime": { "description": "How Temps runs an app.", "enum": [ "preset", "dockerfile", "image" ], "type": "string" }, "AppSettings": { "description": "Application settings stored in the database\nAll fields have sensible defaults for easy onboarding", "properties": { "agent_sandbox": { "$ref": "#/components/schemas/AgentSandboxSettings", "default": { "allowed_node_ids": null, "api_key_encrypted": null, "auth_type": "subscription", "cpu_limit": 4, "custom_image": "", "default_provider": "claude_cli", "enabled": true, "max_cpu_limit": null, "max_memory_limit_mb": null, "max_pids_limit": null, "max_sandboxes_per_user": null, "memory_limit_mb": 8192, "network_mode": "full", "providers": {}, "runtime": "node", "sandbox_backend": null } }, "ai_chat_limits": { "$ref": "#/components/schemas/AiChatLimitsSettings", "default": { "turn_timeout_secs": 900 }, "description": "Limits on a single AI chat turn. Operator-tunable because the right\nvalue depends on the model: a turn against a slow self-hosted model can\nlegitimately take ten minutes, while a hosted one finishes in seconds\nand a shorter ceiling keeps costs predictable." }, "ai_config": { "$ref": "#/components/schemas/AiConfigSettings", "default": { "config_repo": "", "config_repo_allowlist": [], "config_repo_branch": "main" } }, "ai_workspace_file_limits": { "$ref": "#/components/schemas/AiWorkspaceFileLimitsSettings", "default": { "max_download_size_mb": 32, "max_file_size_mb": 16, "max_files_per_upload": 32, "max_image_preview_size_mb": 8, "max_text_preview_kb": 256, "max_upload_size_mb": 32, "max_workspace_entries": 5000, "max_workspace_size_mb": 256 }, "description": "Transfer and preview limits for files in persistent AI workspaces.\nThese are runtime settings because operators have different control\nplane memory budgets and commonly work with very different asset sizes." }, "analytics_retention": { "$ref": "#/components/schemas/AnalyticsRetentionSettings", "default": { "error_events_days": null, "events_days": 365, "unreferenced_ip_days": 30, "visitor_days": null }, "description": "Retention windows for product analytics data and for the personal\nidentifiers (visitors, client IP addresses) attached to it.\nApplied by a background job, not at save time, so a change takes\neffect within the job's interval." }, "anonymous_telemetry_enabled": { "default": null, "description": "Admin preference for anonymous product telemetry (the events sent to\nthe Temps maintainers by `temps-product-telemetry`; unrelated to Temps Cloud\nmirroring in `cloud.telemetry_enabled` and to OpenTelemetry ingest).\n\n- `None` (default) — the operator has not chosen; the built-in default\n applies (see `temps_product_telemetry::DEFAULT_TELEMETRY_ENABLED`).\n- `Some(true)` / `Some(false)` — an admin turned it on/off from\n Settings › Telemetry. Applied at runtime without a restart.\n\nThe `TEMPS_TELEMETRY=0` environment variable is a host-level kill\nswitch that wins over this value unconditionally. The dedicated\n`PATCH /settings/telemetry` endpoint is the only write path: the\ngeneric settings save restores the stored value under the row lock, so\nan older client round-tripping the whole document cannot flip it.", "type": [ "boolean", "null" ] }, "backup_executor": { "$ref": "#/components/schemas/BackupExecutorSettings", "default": { "max_concurrent": 4 }, "description": "Backup executor concurrency. Replaces\n`TEMPS_BACKUP_EXECUTOR_MAX_CONCURRENT`; applied at the next restart." }, "blob": { "$ref": "#/components/schemas/BlobSettings", "default": { "container_name": "" }, "description": "Managed Blob service (RustFS container) settings. Owned by\n`PATCH /blob/settings`; the generic settings update preserves the\nstored value." }, "build_limits": { "$ref": "#/components/schemas/BuildLimitsSettings", "default": { "build_cache_max_gb": 10, "build_cache_max_unused_days": 7, "cpu_limit_cores": 0, "max_concurrent": 2, "memory_limit_mb": 0 }, "description": "Build-time resource limits applied on the control plane to prevent\n`docker build` from saturating host CPU/RAM. Worker nodes are\nintentionally NOT subject to these limits (each worker is dedicated\nhardware that already has its own per-host headroom)." }, "bunny_new_projects": { "default": false, "description": "Enable Bunny delivery by default only for projects created after this is set.", "type": "boolean" }, "clickhouse": { "$ref": "#/components/schemas/ClickHouseSettings", "default": { "compression": "lz4" }, "description": "How Temps talks to the instance's ClickHouse server (wire compression\nof query responses). Read once when the process starts, so a change\nis applied by the next restart; the Settings API reports the mode the\nrunning process actually uses next to the stored one." }, "cloud": { "$ref": "#/components/schemas/CloudSettings", "default": { "backend_url": "https://app.temps.sh", "backups_enabled": false, "console_access_enabled": false, "notifications_enabled": false, "telemetry_bulk_anomaly_factor": null, "telemetry_bulk_rate_limit_spans_per_sec": null, "telemetry_consent_bootstrapped": false, "telemetry_enabled": false, "telemetry_outbox_max_bytes": 536870912 }, "description": "Managed control-plane connection. Credentials are deliberately not\nstored here; they live in the owner-only cloud-link state file." }, "cloudflare_new_projects": { "default": false, "description": "Enable Cloudflare delivery by default for projects created after this is set.", "type": "boolean" }, "cluster_dns": { "$ref": "#/components/schemas/ClusterDnsSettings", "default": { "enabled": false, "operator_chosen": false }, "description": "Cluster-DNS resolver settings (ADR-024, experimental beta). Off by\ndefault — see `ClusterDnsSettings` for the incident background and\ntrade-offs. Must be explicitly enabled by operators who need\n`*.temps.local` service-to-service resolution inside containers." }, "connection_limits": { "$ref": "#/components/schemas/ConnectionLimitSettings", "default": { "default_max_concurrent_connections": 0 }, "description": "Per-upstream concurrent-connection cap applied by the proxy to\ncustomer app traffic. `0` (the default) is unlimited. See issue #646." }, "console_force_https": { "default": null, "description": "Whether plain-HTTP requests to the console host (`external_url`) are\nredirected to HTTPS. Same tri-state contract as an environment's\n`force_https`:\n\n- `None` (default) — inherit the per-host heuristic: redirect only once\n the console hostname has actually completed TLS provisioning. An\n HTTP-only install, and an install whose TLS is terminated upstream,\n are both left alone.\n- `Some(true)` — always redirect. For operators who terminate TLS at\n Temps but have not provisioned the cert through Temps.\n- `Some(false)` — never redirect, even once a certificate exists.\n\nDeliberately operator-set rather than inferred. Temps cannot tell\n\"HTTPS terminated by an upstream CDN\" apart from \"plain HTTP\" — both\narrive as a plaintext connection, and `X-Forwarded-Proto` is not\ntrustworthy from an arbitrary peer — so inferring `true` from an\n`https://` `external_url` would 301 a CDN-fronted console into an\ninfinite redirect loop with no way out but the global kill switch.", "type": [ "boolean", "null" ] }, "console_version": { "default": null, "description": "Binary version tag (e.g. \"v0.1.0\") of the *console* process\n(`temps serve`, role=all or role=console) that last started. Written\non console startup; read by the standalone `temps proxy` to detect\nversion skew during a rolling upgrade (ADR-017 Phase 3). `None` on\ninstalls that never ran a console build carrying this field.\n\nThis is informational state written by the binary itself — NOT an\noperator-tunable setting. It is intentionally absent from\n`AppSettingsResponse` and the PATCH path so an operator cannot\naccidentally overwrite the self-recorded value.", "type": [ "string", "null" ] }, "container_logs": { "$ref": "#/components/schemas/ContainerLogSettings", "default": { "cache_mb": 2048, "head_buffer_mb": 8, "ingest_kib_per_sec": 256, "ingest_lines_per_sec": 250, "max_file": 3, "max_size": "50m", "service_max_file": 3, "service_max_size": "20m" } }, "control_plane_resources": { "$ref": "#/components/schemas/ControlPlaneResourceSettings", "default": { "enforce_reservations": false, "system_reserved_cpu_millis": null, "system_reserved_memory_mb": null }, "description": "The control plane's (node 0's) scheduling settings, the counterpart\nof `nodes.resource_policy` / `nodes.system_reserved` on worker rows\n(ADR-055 §5). Stored here because node 0 is not a `nodes` row; changed\nthrough `PUT /nodes/0/resources`." }, "disk_space_alert": { "$ref": "#/components/schemas/DiskSpaceAlertSettings", "default": { "check_interval_seconds": 300, "enabled": true, "monitor_path": null, "threshold_percent": 80 } }, "dns_provider": { "$ref": "#/components/schemas/DnsProviderSettings", "default": { "cloudflare_api_key": null, "provider": "manual" } }, "docker_registry": { "$ref": "#/components/schemas/DockerRegistrySettings", "default": { "ca_certificate": null, "enabled": false, "password": null, "registry_url": null, "tls_verify": true, "username": null } }, "edge_target": { "default": null, "description": "Public edge target that generated DNS records point at when a managed\ndomain opts into automatic record sync. An IPv4/IPv6 address produces an\n`A`/`AAAA` record; anything else is treated as a `CNAME` target. `None`\ndisables DNS record sync regardless of per-domain opt-in.", "type": [ "string", "null" ] }, "environment_hostname_template": { "default": null, "description": "Label of a new environment's generated hostname under `preview_domain`,\nfrom `{project}` and `{env}` (ADR 058 D9). `None` means\n[`temps_core::public_hostname::DEFAULT_ENVIRONMENT_LABEL_TEMPLATE`]. Applies to\nenvironments created after it is set; existing ones keep their names.", "type": [ "string", "null" ] }, "expose_platform_identity": { "default": null, "description": "Opt in to platform identity in proxy responses. Missing values preserve the stored choice.", "type": [ "boolean", "null" ] }, "external_url": { "default": null, "type": [ "string", "null" ] }, "geo": { "$ref": "#/components/schemas/GeoSettings", "default": { "build_epoch": null, "last_check_at": null, "last_check_status": null, "last_error": null, "last_refreshed_at": null, "maxmind_license_key_encrypted": null, "refresh_interval_hours": null, "source": null, "stale_lookup_days": null }, "description": "Geolocation database refresh policy, MaxMind credential (encrypted at\nrest), and the self-recorded freshness metadata of the last refresh." }, "image_retention": { "$ref": "#/components/schemas/ImageRetentionSettings", "default": { "default_hours": 336, "enabled": true }, "description": "Retention policy for locally-built deployment images. Modeled as a\nsettings row (not an env var) per CLAUDE.md so an operator can change\nthe system-wide default at runtime without restarting the binary.\nIndividual projects override it via `projects.image_retention_hours`." }, "insecure_tls": { "default": false, "description": "Skip TLS certificate verification on outbound HTTP clients built by the\nserver (deployer, agent, remote service client). Strictly opt-in for\noperators running self-signed control plane / worker certs on a trusted\ninternal network. Worker→control-plane traffic that traverses the public\ninternet must keep this `false` — otherwise a MitM steals the join token.", "type": "boolean" }, "internal_url": { "default": null, "description": "URL that service containers use to reach the Temps API from *inside*\nthe Docker network (OTLP metrics ingest, agent callbacks, etc.). On\nDocker Desktop this defaults to `http://host.docker.internal:`;\non Linux it requires the `host.docker.internal:host-gateway` host\nmapping (which Temps adds to provisioned containers). Distinct from\n`external_url`, which is the public-facing address.", "type": [ "string", "null" ] }, "kv": { "$ref": "#/components/schemas/KvSettings", "default": { "container_name": "" }, "description": "Managed KV service (Redis container) settings. Owned by\n`PATCH /kv/settings`; the generic settings update preserves the stored\nvalue." }, "letsencrypt": { "$ref": "#/components/schemas/LetsEncryptSettings", "default": { "email": null, "environment": "production" } }, "loopback_ja4_header": { "default": null, "description": "The header a trusted loopback proxy puts the visitor's JA4 TLS\nfingerprint in (ADR 066, D4), e.g. `x-ja4`. Read only from a peer\n`trust_loopback_forwarded_ip` trusts, and removed from every request\nbefore it goes upstream. `None` records no JA4 behind such a proxy.\nSet through [`normalize_loopback_ja4_header`].", "type": [ "string", "null" ] }, "managed_service_healthchecks": { "$ref": "#/components/schemas/ManagedServiceHealthcheckSettings", "default": { "interval_secs": null, "retries": null, "start_interval_secs": null, "start_period_secs": null, "timeout_secs": null }, "description": "Instance-wide defaults for the Docker healthcheck of managed service\ncontainers. Owned by `PUT /external-services/healthcheck-defaults`,\nwhich validates and audits them; the generic settings update\npreserves the stored value. Unset values use Temps' built-in timings." }, "mcp_server": { "$ref": "#/components/schemas/McpServerSettings", "default": { "enabled": false }, "description": "MCP server settings (ADR-039). Off by default — enable via the Settings\nUI to expose the MCP endpoint to the Temps CLI wizard." }, "monitoring": { "$ref": "#/components/schemas/MonitoringSettings", "default": { "clickhouse_url": null, "enabled": false, "retention_daily_years": 2, "retention_hourly_days": 90, "retention_raw_days": 7, "scrape_interval_secs": 30, "store": "timescale_db" }, "description": "Metrics observability settings. Controls the MetricsStore backend,\nscrape interval, and tiered retention windows." }, "multi_node": { "$ref": "#/components/schemas/MultiNodeSettings", "default": { "cluster_ca_cert_pem": null, "cluster_ca_key_encrypted": null, "join_token_hash": null, "legacy_shared_token_enabled": true, "node_cpu_alert_percent": 90, "node_disk_alert_percent": 90, "node_failover_after_secs": 300, "node_memory_alert_percent": 90, "private_address": null, "require_mtls": true, "wg_endpoint": null } }, "observability_compression": { "$ref": "#/components/schemas/ObservabilityCompressionSettings", "default": { "otel_spans_after_hours": 24, "proxy_logs_after_hours": 24 }, "description": "TimescaleDB compression delays for immutable observability data.\nChanges are applied at runtime by the Settings API." }, "observability_retention": { "$ref": "#/components/schemas/ObservabilityRetentionSettings", "default": { "container_logs_days": 30, "otel_logs_days": 90, "otel_metrics_days": 90, "otel_spans_days": 90, "proxy_logs_days": 30 }, "description": "Retention windows for raw proxy and OpenTelemetry telemetry.\nTimescaleDB policies are updated at runtime by the Settings API." }, "on_demand_tls": { "$ref": "#/components/schemas/OnDemandTlsSettings", "default": { "deployment_url_mode": "http", "enabled": true, "hourly_cap": 10, "max_concurrent": 3, "zone": null } }, "otel_ingest": { "$ref": "#/components/schemas/OtelIngestSettings", "default": { "enable_anomaly_detection": true, "enable_health_compute": true, "quota_gb_per_project": null, "rate_limit_requests": 1000, "rate_limit_window_secs": 60, "s3_archive": { "access_key_encrypted": null, "bucket": null, "endpoint": null, "prefix": "otel-logs", "region": null, "secret_key_encrypted": null } }, "description": "OTLP ingest rate limits, storage quota, background analysis jobs and\nS3 log archival (credentials encrypted at rest). Replaces the\n`TEMPS_OTEL_*` environment variables; applied at the next restart." }, "plugin_installation_reporting_enabled": { "default": false, "description": "Share verified external-plugin installation counts with the official\nregistry. Defaults to off; each plugin receives an unlinkable ID.", "type": "boolean" }, "preview_domain": { "default": "localho.st", "type": "string" }, "preview_gateway": { "$ref": "#/components/schemas/PreviewGatewaySettings", "default": { "auto_upgrade": true, "container_name": "temps-preview-gateway", "enabled": true, "host_port": 8090, "image": "" }, "description": "Workspace preview gateway settings (single shared container per node).\nOwned by `PATCH /preview-gateway/settings` and\n`POST /preview-gateway/upgrade`, which change the gateway's containers\nto match; the generic settings update preserves the stored value." }, "production_hostname_template": { "default": null, "description": "Label for an environment named `production`, when it should differ\n(e.g. `{project}` for `app.example.com`). `None` uses\n`environment_hostname_template`.", "type": [ "string", "null" ] }, "public_ingress_url": { "default": null, "description": "Base URL handed to third parties that call back into Temps: email\nopen/click tracking, git provider webhooks, SES/SNS events, revenue\nwebhooks, the Sentry DSN (ADR-051). `None` (the default) falls back to\n`external_url`, which is right whenever the console is publicly\nreachable. Set it when the console host is restricted (VPN, firewall,\nidentity-aware proxy) so only this hostname has to be public: the proxy\nserves nothing but the public callback routes on it. Read it through\n[`AppSettings::effective_public_ingress_url`].", "type": [ "string", "null" ] }, "rate_limiting": { "$ref": "#/components/schemas/RateLimitSettings", "default": { "blacklist_ips": [], "enabled": false, "max_requests_per_hour": 1000, "max_requests_per_minute": 60, "whitelist_ips": [] } }, "registry_mirror_prefix": { "default": null, "description": "Prefix applied to Docker Hub base images generated for a build (e.g.\nautopack's `FROM node:22-slim`), turning them into\n`{prefix}/node:22-slim`. Unlike `docker_registry` above — which\nauthenticates pulls to one *named* private registry a user's own image\nreference already points at — this rewrites Temps' own generated,\notherwise-anonymous `docker.io` references, for operators whose\ninternal registry is a path-prefixing reverse proxy rather than a\n`registry-mirrors`-compatible pull-through cache (which needs no\nrewriting at all — see docs/howto/configure-a-docker-registry-mirror).\n`None`/empty (the default) leaves every reference untouched.", "type": [ "string", "null" ] }, "request_timeouts": { "$ref": "#/components/schemas/RequestTimeoutSettings", "default": { "default_http_timeout_seconds": 0, "default_sse_idle_timeout_seconds": 0, "default_websocket_idle_timeout_seconds": 0, "max_request_timeout_seconds": 600 }, "description": "Upstream request/connection timeouts applied by the proxy to customer\napp traffic. Provides a global hard ceiling plus global defaults for\nregular HTTP, SSE, and WebSocket traffic; projects and environments\nmay set a shorter value but never exceed the ceiling here." }, "require_mfa_for_admins": { "default": false, "description": "When `true`, any user holding the `Admin` role must have MFA enrolled\n(`users.mfa_enabled = true`) to complete a **password** login. Users\nwithout MFA enrolled are rejected with a typed error instructing them\nto enroll before retrying. This only gates the password-login path\n(`AuthService::login`) -- SSO/OIDC logins are handled by a separate\ncode path (`OidcService::resolve_user` + `oidc_handler`) and are\nintentionally unaffected, since federating identity to a\nproperly-hardened IdP is itself an acceptable alternative to local\nTOTP MFA. Modeled as a settings row (not an env var) per CLAUDE.md so\nan operator can flip it at runtime via the Settings API without\nrestarting the binary.", "type": "boolean" }, "screenshots": { "$ref": "#/components/schemas/ScreenshotSettings", "default": { "enabled": false, "provider": "local", "url": "" } }, "security_headers": { "$ref": "#/components/schemas/SecurityHeadersSettings", "default": { "content_security_policy": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self' data:; connect-src 'self'; frame-ancestors 'self'", "enabled": false, "permissions_policy": "geolocation=(), microphone=(), camera=()", "preset": "moderate", "referrer_policy": "strict-origin-when-cross-origin", "strict_transport_security": "max-age=31536000; includeSubDomains", "x_content_type_options": "nosniff", "x_frame_options": "SAMEORIGIN", "x_xss_protection": "1; mode=block" } }, "self_update": { "default": null, "oneOf": [ { "$ref": "#/components/schemas/SelfUpdateSettings", "description": "One-click \"Update now\" from the console. Enabled by default; an admin\ncan turn it off here to keep upgrades on the CLI/config-management path.\n\nThis is the *soft* switch — it is stored in the database, so whoever can\nwrite settings can also turn it back on. Operators who need an upgrade\npath that no console session can re-open should start the server with\n`--disable-self-update`, which wins over this field unconditionally.\n`None` means the client did not express an opinion, NOT \"reset to\ndefault\". Every other field on this struct is safe to re-default on a\npartial write, but this one gates whether the server may replace its own\nbinary — silently flipping it back on because an older client PUT a\nsettings document without it would undo a deliberate security decision.\nThe update handler preserves the stored value when this is absent; read\nit through `self_update()`." }, { "type": "null" } ] }, "setup_complete": { "default": false, "description": "Set to `true` by `temps setup` (all modes) once initial configuration\nhas been applied. The web onboarding wizard reads this from the server\nand skips itself when true, preventing the \"Configure Base Domain\" wall\nfrom appearing on installs that were already configured via the CLI.", "type": "boolean" }, "shield": { "$ref": "#/components/schemas/ShieldSettings", "default": { "share_observations": true }, "description": "ADR 066: platform-wide Shield settings." }, "tenant_resource_ceilings": { "$ref": "#/components/schemas/TenantResourceCeilings", "default": { "allow_unlimited_request_timeouts": true, "max_concurrent_connections": 0, "max_memory_limit_mb": 0 }, "description": "Ceilings the operator places on what a *tenant* may configure for\ntheir own project/environment. Entirely unenforced by default, so an\nupgrade never changes what an existing config means." }, "trust_loopback_forwarded_ip": { "default": null, "description": "Allow the proxy to use forwarding headers from a loopback peer for\nclient IP attribution. `None` means an older client did not send the\nfield; the settings handler preserves the stored decision on PUT.\nThis is the sole control surface — there is no CLI/env override.", "type": [ "boolean", "null" ] }, "trusted_private_networks": { "default": [], "description": "Private networks (CIDRs or single addresses) that user-configured\noutbound requests may reach: webhooks, notification channels, uptime\nchecks, AI gateway providers, self-hosted git, importers. Empty by\ndefault, which keeps the SSRF guard blocking every private, loopback\nand CGNAT destination. Only private ranges are accepted, and cloud\nmetadata endpoints stay blocked regardless. Published process-wide via\n`url_validation::set_trusted_private_networks`.", "items": { "type": "string" }, "type": "array" }, "trusted_proxy_cidrs": { "default": [], "description": "Inbound reverse proxy IPs/CIDRs trusted to append or overwrite forwarded\nclient IP headers. Stored in the settings row; empty trusts no extra peers.", "items": { "type": "string" }, "type": "array" } }, "type": "object" }, "AppSettingsResponse": { "description": "Safe response for application settings that masks sensitive fields", "properties": { "agent_sandbox": { "$ref": "#/components/schemas/AgentSandboxSettingsMasked" }, "ai_chat_limits": { "$ref": "#/components/schemas/AiChatLimitsSettings", "description": "Per-turn limits for the AI chat. No sensitive content." }, "ai_config": { "$ref": "#/components/schemas/AiConfigSettings" }, "ai_workspace_file_limits": { "$ref": "#/components/schemas/AiWorkspaceFileLimitsSettings", "description": "Persistent AI workspace file transfer and preview limits." }, "analytics_retention": { "$ref": "#/components/schemas/AnalyticsRetentionSettings", "description": "Retention of analytics events and of the visitors and client IP\naddresses attached to them." }, "backup_executor": { "$ref": "#/components/schemas/BackupExecutorSettings", "description": "Backup executor concurrency. No sensitive content." }, "build_limits": { "$ref": "#/components/schemas/BuildLimitsSettings", "description": "Build-time resource limits (control-plane only). No sensitive content,\npassed through as-is." }, "bunny_new_projects": { "type": "boolean" }, "clickhouse": { "$ref": "#/components/schemas/ClickHouseSettingsResponse", "description": "ClickHouse wire compression: the stored choice, the mode the running\nprocess actually uses, and what the startup probe found. Always\npresent; `configured: false` explains what is missing instead of the\nsection disappearing." }, "cloud": { "$ref": "#/components/schemas/CloudSettings", "description": "Managed control-plane destination and explicit export consent flags." }, "cloudflare_new_projects": { "description": "Applies Cloudflare delivery only to future projects.", "type": "boolean" }, "cluster_dns": { "$ref": "#/components/schemas/ClusterDnsSettings", "description": "Cluster-DNS resolver settings (ADR-024, experimental beta). No masking\nneeded — `enabled` is a plain bool with no sensitive content. Passed\nthrough as-is so the settings UI can read and toggle the flag." }, "connection_limits": { "$ref": "#/components/schemas/ConnectionLimitSettings", "description": "Per-upstream concurrent-connection cap applied by the proxy to\ncustomer app traffic. No sensitive content. See issue #646." }, "console_force_https": { "description": "Whether plain-HTTP requests to the console host are redirected to HTTPS.\n`None` inherits the per-host certificate heuristic; `Some(b)` is an\nexplicit operator override. No sensitive content.", "type": [ "boolean", "null" ] }, "container_logs": { "$ref": "#/components/schemas/ContainerLogSettings" }, "disk_space_alert": { "$ref": "#/components/schemas/DiskSpaceAlertSettings" }, "dns_provider": { "$ref": "#/components/schemas/DnsProviderSettingsMasked" }, "docker_registry": { "$ref": "#/components/schemas/DockerRegistrySettingsMasked" }, "edge_target": { "description": "Public edge target that synced DNS records point at (IP → A/AAAA, else CNAME).", "type": [ "string", "null" ] }, "effective_metrics_store": { "$ref": "#/components/schemas/MetricsStoreKind", "description": "The storage backend the runtime is **actually** using for metrics,\nafter reconciling the `monitoring.store` toggle with the server's\n`TEMPS_CLICKHOUSE_*` configuration. When `monitoring.store` is\n`click_house` but those env vars are not fully set, the runtime falls\nback to TimescaleDB — in that case this reports `timescale_db` even\nthough `monitoring.store` says `click_house`. The UI shows this as the\neffective backend and warns when it diverges from the configured store." }, "effective_observability_store": { "$ref": "#/components/schemas/MetricsStoreKind", "description": "Storage backend actually used for proxy logs, OTel spans, and OTel\nmetrics. OTel logs remain TimescaleDB-backed. Unlike resource metrics,\nthese domains switch to ClickHouse whenever the server-level ClickHouse\nconnection is configured; they do not use the monitoring store toggle." }, "expose_platform_identity": { "description": "Opt in to proxy-added platform branding in public application responses.", "type": "boolean" }, "external_url": { "type": [ "string", "null" ] }, "geo": { "$ref": "#/components/schemas/GeoSettingsMasked", "description": "Geolocation refresh policy and freshness, with the MaxMind license key\nreported only as a boolean." }, "image_retention": { "$ref": "#/components/schemas/ImageRetentionSettings", "description": "Deployment-image retention policy. No sensitive content, passed through\nas-is so the settings UI can show and edit the system-wide default." }, "insecure_tls": { "type": "boolean" }, "internal_url": { "type": [ "string", "null" ] }, "letsencrypt": { "$ref": "#/components/schemas/LetsEncryptSettings" }, "loopback_ja4_header": { "description": "The header a trusted loopback proxy sends the visitor's JA4 in.\n`None` records no JA4 behind such a proxy.", "example": "x-ja4", "type": [ "string", "null" ] }, "mcp_server": { "$ref": "#/components/schemas/McpServerSettings", "description": "MCP (Model Context Protocol) server toggle (ADR-039). No sensitive\ncontent — passed through as-is so the settings UI can show and edit it." }, "monitored_services_count": { "description": "Number of enabled, running services the MetricsScraper currently\nincludes. Used for the lightweight storage estimate in the UI.", "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "monitoring": { "$ref": "#/components/schemas/MonitoringSettingsMasked" }, "multi_node": { "$ref": "#/components/schemas/MultiNodeSettingsMasked" }, "observability_compression": { "$ref": "#/components/schemas/ObservabilityCompressionSettings", "description": "TimescaleDB compression delays for immutable proxy logs and OTel spans." }, "observability_retention": { "$ref": "#/components/schemas/ObservabilityRetentionSettings", "description": "Retention windows for raw proxy logs and OpenTelemetry data." }, "on_demand_tls": { "$ref": "#/components/schemas/OnDemandTlsSettings", "description": "On-demand (lazy) HTTP-01 TLS issuance (ADR-018). No sensitive content,\npassed through as-is so operators can see whether on-demand\ncertificates are enabled and for which zone." }, "otel_ingest": { "$ref": "#/components/schemas/OtelIngestSettingsMasked", "description": "OTLP ingest limits, background jobs and S3 log archival. The archive\ncredentials are reported only as booleans." }, "plugin_installation_reporting_enabled": { "description": "Consent for verified external-plugin installation count reporting.", "type": "boolean" }, "preview_domain": { "type": "string" }, "preview_gateway": { "$ref": "#/components/schemas/PreviewGatewaySettingsMasked" }, "proxy_port": { "description": "Port the main Pingora proxy listens on (parsed from `--address`), the\nsame value `ConfigService::proxy_port()` feeds into\n`compute_deployment_url`/`compute_environment_url` when `external_url`\nis unset. The console uses this to preview a project's real\n`{slug}-{env_slug}.{preview_domain}:{port}` URL before it's deployed.", "format": "int32", "minimum": 0, "type": "integer" }, "public_ingress_url": { "description": "Base URL handed to third parties that call back into Temps (ADR-051).\n`None` means callbacks use `external_url`; see\n`GET /settings/public-ingress` for the effective value.", "type": [ "string", "null" ] }, "rate_limiting": { "$ref": "#/components/schemas/RateLimitSettings" }, "registry_mirror_prefix": { "description": "Prefix applied to implicit Docker Hub base images in generated\nDockerfiles (e.g. autopack's `FROM node:22-slim`). No sensitive\ncontent, passed through as-is. `None`/empty disables rewriting.", "type": [ "string", "null" ] }, "request_timeouts": { "$ref": "#/components/schemas/RequestTimeoutSettings", "description": "Upstream request/connection timeouts (hard ceiling + defaults) applied\nby the proxy to customer app traffic. No sensitive content." }, "require_mfa_for_admins": { "description": "When enabled, Admin-role accounts without MFA enrolled are rejected\nat password login (bherila/temps#32). SSO/OIDC logins are unaffected.", "type": "boolean" }, "screenshots": { "$ref": "#/components/schemas/ScreenshotSettings" }, "security_headers": { "$ref": "#/components/schemas/SecurityHeadersSettings" }, "self_update": { "$ref": "#/components/schemas/SelfUpdateSettings", "description": "Whether admins may apply a release from the console. This is the\ndatabase-backed toggle only — a server started with\n`--disable-self-update` refuses regardless of what this says, which\n`GET /settings/update` reports as the authoritative answer." }, "setup_complete": { "description": "Whether `temps setup` has been run at least once. The web onboarding\nwizard checks this field on load and skips itself when true.", "type": "boolean" }, "tenant_resource_ceilings": { "$ref": "#/components/schemas/TenantResourceCeilings", "description": "Upper bounds a project/environment override may not exceed. No\nsensitive content — this is operator policy the settings UI edits\ndirectly. Unenforced by default." }, "trust_loopback_forwarded_ip": { "description": "Database-backed opt-in; this is the sole control surface for every\nproxy process, including a standalone `temps proxy`.", "type": "boolean" }, "trusted_private_networks": { "description": "Private networks (normalized CIDRs) that user-configured outbound\nrequests may reach despite the SSRF guard. Empty means none.", "items": { "type": "string" }, "type": "array" }, "trusted_proxy_cidrs": { "description": "Inbound proxy IP addresses/CIDRs trusted for forwarded client IP headers.", "items": { "type": "string" }, "type": "array" } }, "required": [ "plugin_installation_reporting_enabled", "preview_domain", "cloudflare_new_projects", "bunny_new_projects", "proxy_port", "cloud", "screenshots", "letsencrypt", "dns_provider", "security_headers", "rate_limiting", "trust_loopback_forwarded_ip", "trusted_proxy_cidrs", "expose_platform_identity", "docker_registry", "disk_space_alert", "container_logs", "agent_sandbox", "ai_config", "preview_gateway", "multi_node", "monitoring", "observability_compression", "observability_retention", "analytics_retention", "clickhouse", "geo", "otel_ingest", "backup_executor", "effective_metrics_store", "effective_observability_store", "insecure_tls", "trusted_private_networks", "setup_complete", "require_mfa_for_admins", "on_demand_tls", "cluster_dns", "build_limits", "ai_chat_limits", "ai_workspace_file_limits", "request_timeouts", "connection_limits", "tenant_resource_ceilings", "self_update", "image_retention", "mcp_server" ], "type": "object" }, "AppStartWorkflowRunResponse": { "properties": { "created": { "type": "boolean" }, "run": { "$ref": "#/components/schemas/AppWorkflowRunResponse" } }, "required": [ "run", "created" ], "type": "object" }, "AppWorkflowRunResponse": { "description": "A run as the app that started it sees it: its result once finished.", "properties": { "created_at": { "format": "date-time", "type": "string" }, "error": { "description": "Set once the run failed.", "type": [ "string", "null" ] }, "error_kind": { "type": [ "string", "null" ] }, "finished_at": { "format": "date-time", "type": [ "string", "null" ] }, "id": { "format": "uuid", "type": "string" }, "output": { "description": "Set once the run completed.", "type": "object" }, "status": { "$ref": "#/components/schemas/WorkflowRunStatus" }, "workflow": { "type": "string" } }, "required": [ "id", "workflow", "status", "output", "created_at" ], "type": "object" }, "ApplicationGitConnectionsResponse": { "properties": { "bindings": { "items": { "$ref": "#/components/schemas/GitBindingResponse" }, "type": "array" }, "eligibleRepositories": { "items": { "$ref": "#/components/schemas/EligibleGitRepositoryResponse" }, "type": "array" } }, "required": [ "bindings", "eligibleRepositories" ], "type": "object" }, "ApplicationPreviewLinkResponse": { "properties": { "expires_at": { "description": "When the link stops working, ISO 8601 in UTC.", "format": "date-time", "type": "string" }, "url": { "description": "A short-lived authenticated URL. Its fragment carries the grant and\nnever reaches the development server or referrer headers.", "type": "string" } }, "required": [ "url", "expires_at" ], "type": "object" }, "ApplicationProjectDeploymentResponse": { "properties": { "environment_id": { "format": "int32", "type": "integer" }, "id": { "format": "int32", "type": "integer" }, "project_id": { "format": "int32", "type": "integer" }, "slug": { "type": "string" }, "source_type": { "type": "string" }, "state": { "type": "string" } }, "required": [ "id", "project_id", "environment_id", "slug", "state", "source_type" ], "type": "object" }, "ApplicationProjectEnvironmentResponse": { "properties": { "deployment_state": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "sleeping": { "type": "boolean" }, "slug": { "type": "string" } }, "required": [ "name", "slug", "sleeping" ], "type": "object" }, "ApplicationProjectResponse": { "properties": { "automatic_deploy": { "type": "boolean" }, "environments": { "items": { "$ref": "#/components/schemas/ApplicationProjectEnvironmentResponse" }, "type": "array" }, "id": { "format": "int32", "type": "integer" }, "is_primary": { "type": "boolean" }, "is_private": { "type": "boolean" }, "last_deployment_at": { "type": [ "string", "null" ] }, "main_branch": { "type": "string" }, "name": { "type": "string" }, "repository": { "type": [ "string", "null" ] }, "slug": { "type": "string" } }, "required": [ "id", "name", "slug", "main_branch", "is_private", "is_primary", "automatic_deploy", "environments" ], "type": "object" }, "ApplicationResponse": { "properties": { "created_at": { "type": "string" }, "description": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "projects": { "items": { "$ref": "#/components/schemas/ApplicationProjectResponse" }, "type": "array" }, "public_id": { "type": "string" }, "status": { "type": "string" }, "updated_at": { "type": "string" } }, "required": [ "public_id", "name", "status", "projects", "created_at", "updated_at" ], "type": "object" }, "ApplicationWorkspaceChangesResponse": { "properties": { "branch": { "type": [ "string", "null" ] }, "changes": { "items": { "$ref": "#/components/schemas/ApplicationWorkspaceFileResponse" }, "type": "array" }, "changes_truncated": { "type": "boolean" }, "clean": { "type": "boolean" }, "files": { "items": { "type": "string" }, "type": "array" }, "files_truncated": { "type": "boolean" }, "head": { "type": [ "string", "null" ] }, "listed_file_count": { "description": "Number of file paths discovered within the server-side safety cap.", "minimum": 0, "type": "integer" }, "next_cursor": { "description": "Opaque position for the next bounded page, when another page exists.", "minimum": 0, "type": [ "integer", "null" ] }, "truncated": { "type": "boolean" } }, "required": [ "clean", "truncated", "files_truncated", "changes_truncated", "listed_file_count", "files", "changes" ], "type": "object" }, "ApplicationWorkspaceDiffResponse": { "properties": { "diff": { "type": "string" }, "path": { "type": "string" }, "truncated": { "type": "boolean" } }, "required": [ "path", "diff", "truncated" ], "type": "object" }, "ApplicationWorkspaceDirectoryEntryResponse": { "properties": { "kind": { "type": "string" }, "name": { "type": "string" }, "path": { "type": "string" }, "size_bytes": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "name", "path", "kind", "size_bytes" ], "type": "object" }, "ApplicationWorkspaceDirectoryResponse": { "properties": { "entries": { "items": { "$ref": "#/components/schemas/ApplicationWorkspaceDirectoryEntryResponse" }, "type": "array" }, "next_cursor": { "minimum": 0, "type": [ "integer", "null" ] }, "path": { "type": "string" }, "truncated": { "type": "boolean" } }, "required": [ "path", "entries", "truncated" ], "type": "object" }, "ApplicationWorkspaceFileContentResponse": { "properties": { "binary": { "type": "boolean" }, "content": { "type": [ "string", "null" ] }, "content_b64": { "description": "Base64-encoded raster image bytes when this file has a verified,\nbrowser-safe image signature and is within the configured preview cap.", "type": [ "string", "null" ] }, "media_type": { "type": [ "string", "null" ] }, "path": { "type": "string" }, "size_bytes": { "format": "int64", "minimum": 0, "type": "integer" }, "truncated": { "type": "boolean" } }, "required": [ "path", "binary", "size_bytes", "truncated" ], "type": "object" }, "ApplicationWorkspaceFileResponse": { "properties": { "path": { "type": "string" }, "staged": { "type": "boolean" }, "status": { "type": [ "string", "null" ] }, "unstaged": { "type": "boolean" } }, "required": [ "path", "staged", "unstaged" ], "type": "object" }, "ApplicationWorkspaceFileWrite": { "additionalProperties": false, "properties": { "contents_b64": { "type": "string" }, "mode": { "format": "int32", "minimum": 0, "type": [ "integer", "null" ] }, "path": { "description": "Project-relative path. Absolute paths and traversal are rejected.", "type": "string" } }, "required": [ "path", "contents_b64" ], "type": "object" }, "ApplicationWorkspaceResponse": { "properties": { "cpu_limit": { "format": "double", "type": "number" }, "cpu_usage_usec": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "data_network_service_count": { "minimum": 0, "type": "integer" }, "desired_state": { "type": "string" }, "disk_limit_enforced": { "description": "Docker bind-mounted workspaces report usage but cannot enforce a\nper-directory quota. Firecracker workspaces enforce this value.", "type": "boolean" }, "disk_limit_mb": { "format": "int64", "type": "integer" }, "disk_used_bytes": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "idle_timeout_secs": { "format": "int64", "type": "integer" }, "image": { "type": [ "string", "null" ] }, "last_error": { "type": [ "string", "null" ] }, "memory_limit_mb": { "format": "int64", "type": "integer" }, "memory_used_bytes": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "open_preview_ports": { "items": { "format": "int32", "minimum": 0, "type": "integer" }, "type": "array" }, "persistent_volume_healthy": { "type": "boolean" }, "pids_limit": { "format": "int64", "type": "integer" }, "pids_used": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "runtime": { "type": "string" }, "runtime_compatible": { "type": [ "boolean", "null" ] }, "runtime_update_available": { "type": "boolean" }, "runtime_update_error": { "type": [ "string", "null" ] }, "runtime_update_image": { "type": [ "string", "null" ] }, "sandbox_public_id": { "type": [ "string", "null" ] }, "snapshot_id": { "type": [ "string", "null" ] }, "state": { "type": "string" } }, "required": [ "state", "desired_state", "runtime", "runtime_update_available", "cpu_limit", "memory_limit_mb", "pids_limit", "disk_limit_mb", "disk_limit_enforced", "idle_timeout_secs", "open_preview_ports", "persistent_volume_healthy", "data_network_service_count" ], "type": "object" }, "ApplyDomainDeliveryBindingRequest": { "properties": { "adopt_records": { "items": { "$ref": "#/components/schemas/AdoptDeliveryRecord" }, "type": "array" }, "preview_id": { "type": "string" } }, "required": [ "preview_id" ], "type": "object" }, "ApplyHostnameModeRequest": { "description": "Request to apply a hostname mode (recompute + optional DNS sync).", "properties": { "adopt_records": { "description": "Conflicting records, from the preview's `conflicts`, that the user\nconfirmed the sync may adopt — one entry per record, each only where\nthe conflict is `adoptable`. Requires `sync_dns`.", "items": { "$ref": "#/components/schemas/AdoptHostnameRecord" }, "type": "array" }, "mode": { "description": "Target mode to apply: `\"standard\"` or `\"flat\"`.", "type": "string" }, "skip_records": { "description": "Conflicting hostnames, from the preview's `conflicts`, that the user\nchose to leave untouched: the sync writes everything else. Requires\n`sync_dns`.", "items": { "$ref": "#/components/schemas/SkipHostnameRecord" }, "type": "array" }, "sync_dns": { "description": "Also reconcile the provider's DNS zone for the affected hostnames.", "type": "boolean" } }, "required": [ "mode" ], "type": "object" }, "ApplyRequest": { "description": "`POST …/reachability/apply`.", "properties": { "answers": { "description": "Answers to the option's fields by key. `address`, when given, must be\nthe plan's; `dns_provider_id` takes a provider id,\n`cloudflare_api_token` the token (held in memory for the run, never\nstored on it).", "type": "object" }, "confirmed": { "description": "The user saw and accepted the option's `confirmation`.", "type": "boolean" }, "option": { "$ref": "#/components/schemas/PlanOptionKind", "description": "Which option of the plan to carry out." }, "plan_id": { "description": "The plan this acts on, from `POST …/reachability/plan`.", "type": "string" } }, "required": [ "plan_id", "option" ], "type": "object" }, "ApplyServiceHealthcheckResponse": { "description": "After `apply`: the container was recreated with these timings.", "properties": { "applied": { "$ref": "#/components/schemas/HealthcheckTimings", "description": "As this host's Docker got them: below API 1.44 the interval is the\nstart interval." }, "healthcheck": { "oneOf": [ { "$ref": "#/components/schemas/ServiceHealthcheck", "description": "The service's healthcheck as it is now. `null` when it could not be\nread back; the recreate still succeeded, so read it again rather than\napplying again." }, { "type": "null" } ] }, "service_id": { "format": "int32", "type": "integer" } }, "required": [ "service_id", "applied" ], "type": "object" }, "ApproveSandboxService": { "additionalProperties": false, "properties": { "expected_version": { "format": "int32", "type": "integer" }, "expires_at": { "description": "Omit for the sandbox lifetime. A fixed expiry never renews beyond this deadline.", "format": "date-time", "type": [ "string", "null" ] }, "service_version": { "format": "int32", "type": "integer" } }, "required": [ "expected_version", "service_version" ], "type": "object" }, "ApproveServiceGrant": { "additionalProperties": false, "description": "Explicit operator approval, separate from a saved request. Reuse request_id\nonly when retrying this exact approval; it never extends an existing grant.", "properties": { "request_id": { "format": "uuid", "type": "string" }, "service_id": { "type": "string" }, "service_version": { "format": "int32", "type": "integer" }, "ttl_seconds": { "format": "int32", "type": "integer" } }, "required": [ "request_id", "service_id", "service_version", "ttl_seconds" ], "type": "object" }, "ArchiveFlagResponse": { "properties": { "archived_at": { "type": [ "string", "null" ] }, "key": { "type": "string" } }, "required": [ "key" ], "type": "object" }, "ArchiveMode": { "enum": [ "off", "on", "always", "unknown" ], "type": "string" }, "ArchiveTargetTestResponse": { "description": "What WAL-G said about a service's archive target.", "properties": { "checked_at": { "format": "date-time", "type": "string" }, "endpoint": { "description": "`AWS_ENDPOINT` exactly as WAL-G receives it.", "example": "http://10.0.0.5:9000", "type": "string" }, "force_path_style": { "description": "Whether WAL-G uses path-style addressing.", "type": "boolean" }, "live_settings_drift": { "description": "Set when the running container's `walg.env` differs from these\nsettings: PostgreSQL archives with that file, so archiving can be\nfailing even when this check passes. Says how to fix it.", "type": [ "string", "null" ] }, "message": { "description": "A confirmation, or WAL-G's error with credentials redacted.", "type": "string" }, "ok": { "description": "Whether WAL-G could write a probe object to the archive target, which\nis what `archive_command` needs. The object is never read back, and\nits removal afterwards is best effort: `ok` says nothing about read\nor delete permission.", "type": "boolean" }, "path_style_reason": { "description": "Why path style has that value.", "example": "forced: the endpoint is an IP address", "type": "string" }, "s3_source_id": { "description": "The S3 source WAL is archived to.", "format": "int32", "type": "integer" }, "s3_source_name": { "type": "string" }, "scheme": { "description": "`http`, `https`, or `aws` for AWS S3 itself.", "example": "http", "type": "string" } }, "required": [ "ok", "s3_source_id", "s3_source_name", "endpoint", "scheme", "force_path_style", "path_style_reason", "message", "checked_at" ], "type": "object" }, "ArtifactAssembleRequest": { "properties": { "checksum": { "type": "string" }, "chunks": { "items": { "type": "string" }, "type": "array" }, "dist": { "type": [ "string", "null" ] }, "projects": { "items": { "type": "string" }, "type": "array" }, "version": { "type": [ "string", "null" ] } }, "required": [ "checksum", "chunks", "projects" ], "type": "object" }, "ArtifactAssembly": { "properties": { "detail": { "type": [ "string", "null" ] }, "missingChunks": { "items": { "type": "string" }, "type": "array" }, "state": { "type": "string" } }, "required": [ "state", "missingChunks" ], "type": "object" }, "ArtifactKind": { "description": "The formats local checks read. Adding one needs no migration or new check kind.", "enum": [ "x509_certificate", "ssh_certificate", "openpgp_key", "jwt" ], "type": "string" }, "Assessment": { "description": "The score and how it was reached.", "properties": { "next_level": { "description": "What the next level needs and why it was not reached, below the top.", "type": [ "string", "null" ] }, "protected_paths": { "description": "Paths that block a policy merge.", "items": { "type": "string" }, "type": "array" }, "score": { "description": "Highest level of the confidence ladder the fix reached, 0-5.", "format": "int32", "type": "integer" }, "signals": { "items": { "$ref": "#/components/schemas/Signal" }, "type": "array" } }, "required": [ "score", "signals", "protected_paths" ], "type": "object" }, "AssetCachePurgeResponse": { "description": "Result of purging cached static assets.", "properties": { "deleted": { "description": "How many cached asset entries were removed (0 when the cache was empty).", "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "deleted" ], "type": "object" }, "AssignRoleRequest": { "additionalProperties": false, "description": "Body of `POST /users/{user_id}/roles`. The target user comes from the\npath; the body names only the role.", "properties": { "role_type": { "example": "admin", "type": "string" }, "user_id": { "deprecated": true, "description": "Deprecated: the target is the path's `user_id`. Still accepted for\nolder clients, but only when it equals the path id (otherwise 400).", "format": "int32", "type": [ "integer", "null" ] } }, "required": [ "role_type" ], "type": "object" }, "Assignee": { "description": "Who a group is assigned to.", "oneOf": [ { "properties": { "id": { "format": "int32", "type": "integer" }, "type": { "enum": [ "user" ], "type": "string" } }, "required": [ "id", "type" ], "type": "object" }, { "properties": { "id": { "format": "int32", "type": "integer" }, "type": { "enum": [ "team" ], "type": "string" } }, "required": [ "id", "type" ], "type": "object" } ] }, "AttachEnvironmentVolumeRequest": { "properties": { "mount_path": { "type": "string" }, "read_only": { "type": "boolean" } }, "required": [ "mount_path" ], "type": "object" }, "AttachScheduleServicesRequest": { "description": "Body for `POST /api/backups/schedules/{id}/services` — attach external\nservices to a backup schedule. Idempotent.", "properties": { "service_ids": { "description": "External service ids to attach. Duplicates are de-duplicated server-side.", "items": { "format": "int32", "type": "integer" }, "type": "array" } }, "required": [ "service_ids" ], "type": "object" }, "AttachScheduleServicesResponse": { "description": "Response for `POST /api/backups/schedules/{id}/services`.", "properties": { "inserted": { "description": "Number of rows actually inserted (excludes rows skipped by\n`ON CONFLICT DO NOTHING`).", "format": "int64", "minimum": 0, "type": "integer" }, "total_attached": { "description": "Total number of services now attached to the schedule.", "minimum": 0, "type": "integer" } }, "required": [ "inserted", "total_attached" ], "type": "object" }, "AttachmentChunkReceived": { "properties": { "received_bytes": { "description": "Bytes of the file the server now holds.", "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "received_bytes" ], "type": "object" }, "AttachmentChunkUpload": { "description": "Request body type for the chunk endpoint's OpenAPI entry.", "properties": { "chunk": { "format": "binary", "type": "string" } }, "required": [ "chunk" ], "type": "object" }, "AttachmentList": { "description": "The attachments of an event or feedback, in the order the SDK sent them.", "properties": { "data": { "items": { "$ref": "#/components/schemas/AttachmentView" }, "type": "array" } }, "required": [ "data" ], "type": "object" }, "AttachmentUploadStarted": { "properties": { "chunk_bytes": { "description": "The most bytes one chunk may carry.", "minimum": 0, "type": "integer" }, "upload_id": { "description": "Opaque id to send every chunk and the completion to.", "type": "string" } }, "required": [ "upload_id", "chunk_bytes" ], "type": "object" }, "AttachmentUsage": { "description": "Whether attachments can be stored, and how much of the quota is used.", "properties": { "configured": { "description": "Whether blob storage is set up and answering.", "type": "boolean" }, "dropped_over_quota": { "description": "Since the server started: attachments dropped because the project\nwas over its quota, across every project.", "format": "int64", "minimum": 0, "type": "integer" }, "dropped_queue_full": { "description": "Since the server started: attachments dropped because the upload\nqueue was full, across every project.", "format": "int64", "minimum": 0, "type": "integer" }, "files": { "format": "int64", "type": "integer" }, "max_attachment_bytes": { "format": "int64", "type": "integer" }, "max_attachments_per_event": { "format": "int64", "type": "integer" }, "max_event_attachment_bytes": { "format": "int64", "type": "integer" }, "quota_bytes": { "format": "int64", "type": "integer" }, "reason": { "description": "Why attachments are not stored, when they are not.", "type": [ "string", "null" ] }, "setup_path": { "description": "Console path where blob storage is enabled.", "type": [ "string", "null" ] }, "used_bytes": { "format": "int64", "type": "integer" } }, "required": [ "configured", "used_bytes", "files", "quota_bytes", "max_attachment_bytes", "max_event_attachment_bytes", "max_attachments_per_event", "dropped_over_quota", "dropped_queue_full" ], "type": "object" }, "AttachmentView": { "description": "A stored attachment.", "properties": { "attachment_type": { "type": "string" }, "content_type": { "description": "As the SDK sent it. The download is served as an image only for\nPNG, JPEG, GIF and WebP, and as a file to save otherwise.", "type": "string" }, "created_at": { "format": "date-time", "type": "string" }, "filename": { "type": "string" }, "id": { "format": "int64", "type": "integer" }, "owner_id": { "description": "The error event id or feedback id.", "format": "int64", "type": "integer" }, "owner_kind": { "description": "`error` or `feedback`.", "type": "string" }, "size_bytes": { "format": "int64", "type": "integer" } }, "required": [ "id", "owner_kind", "owner_id", "filename", "content_type", "attachment_type", "size_bytes", "created_at" ], "type": "object" }, "AttrOp": { "enum": [ "eq", "neq", "exists", "prefix", "gt", "lt" ], "type": "string" }, "AttrPredicate": { "description": "Predicate on one attribute (canonical or dynamic).", "properties": { "key": { "description": "Attribute key: a canonical key (`status_code`, `http_route`, …) or\nany extracted key (`worker`, `http.status`).", "type": "string" }, "op": { "$ref": "#/components/schemas/AttrOp" }, "value": { "description": "Omitted for `exists`.", "type": [ "string", "null" ] } }, "required": [ "key" ], "type": "object" }, "Attribute": { "additionalProperties": false, "properties": { "title": { "type": [ "string", "null" ] }, "type": { "$ref": "#/components/schemas/ScalarType" } }, "required": [ "type" ], "type": "object" }, "AttributeKeysResponse": { "properties": { "keys": { "items": { "$ref": "#/components/schemas/FacetValue" }, "type": "array" } }, "required": [ "keys" ], "type": "object" }, "AttributeSliceResponse": { "description": "One value of the requested attribute.", "properties": { "avg_ms": { "format": "double", "type": "number" }, "calls": { "format": "int64", "minimum": 0, "type": "integer" }, "max_ms": { "format": "double", "type": "number" }, "share": { "format": "double", "type": "number" }, "total_ms": { "format": "double", "type": "number" }, "value": { "description": "Null for calls without the attribute.", "type": [ "string", "null" ] } }, "required": [ "calls", "total_ms", "share", "avg_ms", "max_ms" ], "type": "object" }, "AttributeValue": { "description": "A targeting attribute: what the caller (or the server, implicitly) knows\nabout the subject.", "oneOf": [ { "type": "boolean" }, { "format": "double", "type": "number" }, { "type": "string" } ] }, "AttributesSchema": { "additionalProperties": false, "properties": { "properties": { "additionalProperties": { "$ref": "#/components/schemas/Attribute" }, "propertyNames": { "type": "string" }, "type": "object" }, "required": { "items": { "type": "string" }, "type": "array" }, "type": { "$ref": "#/components/schemas/ObjectType" } }, "required": [ "type", "properties", "required" ], "type": "object" }, "Audience": { "description": "Who an address is for.", "enum": [ "public", "private", "signed_in", "tailnet_users", "unsupported" ], "type": "string" }, "AudienceChoice": { "description": "Whether one audience can work for the environment, and how.", "properties": { "audience": { "$ref": "#/components/schemas/Audience" }, "available": { "description": "Whether at least one way in fits.", "type": "boolean" }, "blocked": { "oneOf": [ { "$ref": "#/components/schemas/PlanBlocked", "description": "Why none fits and what would make one, when `available` is false." }, { "type": "null" } ] }, "gate": { "oneOf": [ { "$ref": "#/components/schemas/GateKind", "description": "For `signed_in`: the gate this entry is for." }, { "type": "null" } ] }, "not_offered": { "description": "Ways in the planner left out, and why, while the audience is still\navailable another way.", "items": { "$ref": "#/components/schemas/PlanBlocked" }, "type": "array" }, "suggested_address": { "description": "The address Temps would suggest for it.", "type": [ "string", "null" ] }, "ways_in": { "description": "The ways in the planner offers with no address asked for, in the\norder it prefers them.", "items": { "$ref": "#/components/schemas/WayInChoice" }, "type": "array" } }, "required": [ "audience", "available", "ways_in", "not_offered" ], "type": "object" }, "AuditLogIpInfo": { "description": "IP address information in audit log", "properties": { "city": { "description": "City name", "example": "San Francisco", "type": [ "string", "null" ] }, "country": { "description": "Country code", "example": "US", "type": [ "string", "null" ] }, "ip": { "description": "IP address", "example": "192.168.1.1", "type": "string" }, "latitude": { "description": "Latitude", "example": 37.7749, "format": "double", "type": [ "number", "null" ] }, "longitude": { "description": "Longitude", "example": 122.4194, "format": "double", "type": [ "number", "null" ] } }, "required": [ "ip" ], "type": "object" }, "AuditLogResponse": { "description": "Response type for audit log entries", "properties": { "audit_date": { "description": "When the action occurred, ISO 8601 in UTC", "format": "date-time", "type": "string" }, "data": { "description": "Additional context about the action" }, "id": { "description": "Unique identifier for the audit log entry", "format": "int32", "type": "integer" }, "ip_address": { "oneOf": [ { "$ref": "#/components/schemas/AuditLogIpInfo", "description": "IP address details" }, { "type": "null" } ] }, "operation_type": { "description": "The type of action that was performed", "example": "USER_LOGIN", "type": "string" }, "user": { "oneOf": [ { "$ref": "#/components/schemas/AuditLogUserInfo", "description": "User details who performed the action" }, { "type": "null" } ] }, "user_id": { "description": "The user who performed the action (`null` when that account has\nsince been deleted; `data` retains the original actor context)", "format": "int32", "type": [ "integer", "null" ] } }, "required": [ "id", "operation_type", "audit_date" ], "type": "object" }, "AuditLogUserInfo": { "description": "User information in audit log", "properties": { "email": { "description": "User's email", "example": "john.doe@example.com", "type": "string" }, "id": { "description": "User ID", "format": "int32", "type": "integer" }, "name": { "description": "User's name", "example": "John Doe", "type": "string" } }, "required": [ "id", "name", "email" ], "type": "object" }, "AuthFlavorDto": { "description": "One auth flavor surfaced to the UI. Mirrors `AuthFlavor` in the catalog\nbut without the seed-path / env-var fields the frontend doesn't need\n(those are server-side only — exposing them just bloats the response).", "properties": { "description": { "type": "string" }, "env_var": { "description": "For `api_key` format: the env var name that will be set inside the\nsandbox. Useful for showing the user \"we'll set OPENAI_API_KEY\" so\nthey know what their key controls.", "type": [ "string", "null" ] }, "format": { "description": "`api_key`, `oauth_token`, or `config_file` — drives which input UI\nthe settings page renders (single-line vs. multi-line textarea).", "type": "string" }, "id": { "type": "string" }, "label": { "type": "string" } }, "required": [ "id", "label", "description", "format" ], "type": "object" }, "AuthResponse": { "properties": { "message": { "type": "string" }, "mfa_enrollment_required": { "type": "boolean" }, "mfa_required": { "type": "boolean" }, "mfa_setup": { "oneOf": [ { "$ref": "#/components/schemas/MfaSetupResponse" }, { "type": "null" } ] }, "password_change_required": { "type": "boolean" }, "success": { "type": "boolean" }, "user_id": { "format": "int32", "type": [ "integer", "null" ] } }, "required": [ "success", "message", "mfa_required", "mfa_enrollment_required", "password_change_required" ], "type": "object" }, "AuthStatusResponse": { "properties": { "cli_token": { "type": [ "string", "null" ] }, "status": { "type": "string" } }, "required": [ "status" ], "type": "object" }, "AuthTokenResponse": { "properties": { "access_token": { "type": "string" }, "expires_at": { "format": "date-time", "type": "string" }, "refresh_token": { "type": "string" } }, "required": [ "access_token", "refresh_token", "expires_at" ], "type": "object" }, "AuthorizeWorkspacePreviewRequest": { "properties": { "path": { "type": [ "string", "null" ] }, "port": { "format": "int32", "minimum": 0, "type": "integer" }, "sandbox_public_id": { "type": "string" } }, "required": [ "sandbox_public_id", "port" ], "type": "object" }, "AuthorizedEmailDomainProjectResponse": { "description": "A project authorized to send email through a sender domain.", "properties": { "id": { "format": "int32", "type": "integer" }, "name": { "type": "string" }, "slug": { "type": "string" } }, "required": [ "id", "name", "slug" ], "type": "object" }, "AutoWatchParams": { "description": "Auto-watch (Watchdog-style) detector parameters (stub — not evaluated).", "properties": { "direction": { "$ref": "#/components/schemas/Direction", "description": "The engine self-tunes the band; the user supplies only the direction." } }, "type": "object" }, "AutofixCapabilityResponse": { "description": "Whether autofix can run for a project, and what a fix would become.", "properties": { "configured": { "description": "An AI provider and sandboxes are available.", "type": "boolean" }, "delivery": { "description": "What a fix becomes: `pull_request`, `patch` or `report`.", "type": "string" }, "delivery_reason": { "description": "Why the delivery is what it is, e.g. the Git connection is missing.", "type": [ "string", "null" ] }, "reason": { "description": "Why autofix cannot run, when `configured` is false.", "type": [ "string", "null" ] }, "settings": { "$ref": "#/components/schemas/AutofixSettingsResponse" }, "setup_path": { "description": "Console path that fixes the missing configuration.", "type": [ "string", "null" ] }, "source_kind": { "description": "How the latest production deployment was built: `git`,\n`uploaded_source`, `report_only` or `none`.", "type": "string" } }, "required": [ "configured", "source_kind", "delivery", "settings" ], "type": "object" }, "AutofixEventListResponse": { "properties": { "incident_status": { "description": "The incident's status when the page was read, so a poller knows when\nto stop.", "type": "string" }, "items": { "items": { "$ref": "#/components/schemas/AutofixEventResponse" }, "type": "array" } }, "required": [ "items", "incident_status" ], "type": "object" }, "AutofixEventResponse": { "properties": { "actor": { "description": "`server`, `agent`, `policy` or `user:`.", "type": "string" }, "created_at": { "format": "date-time", "type": "string" }, "details": { "oneOf": [ { "$ref": "#/components/schemas/EventDetails" }, { "type": "null" } ] }, "id": { "format": "int64", "type": "integer" }, "kind": { "type": "string" }, "summary": { "type": "string" } }, "required": [ "id", "actor", "kind", "summary", "created_at" ], "type": "object" }, "AutofixIncidentListResponse": { "properties": { "items": { "items": { "$ref": "#/components/schemas/AutofixIncidentResponse" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "total", "page", "page_size" ], "type": "object" }, "AutofixIncidentResponse": { "properties": { "assessment": { "oneOf": [ { "$ref": "#/components/schemas/Assessment" }, { "type": "null" } ] }, "attempts": { "format": "int32", "type": "integer" }, "base_revision": { "type": [ "string", "null" ] }, "branch": { "type": [ "string", "null" ] }, "closed_at": { "format": "date-time", "type": [ "string", "null" ] }, "confidence": { "description": "Confidence level reached, 0-5: see `assessment` for what it proves.", "format": "int32", "type": [ "integer", "null" ] }, "conversation_id": { "description": "Public id of the incident chat.", "type": [ "string", "null" ] }, "created_at": { "format": "date-time", "type": "string" }, "decided_at": { "format": "date-time", "type": [ "string", "null" ] }, "decided_by_user_id": { "format": "int32", "type": [ "integer", "null" ] }, "decision": { "type": [ "string", "null" ] }, "delivery": { "type": [ "string", "null" ] }, "deployment_id": { "format": "int32", "type": [ "integer", "null" ] }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "error_group_id": { "format": "int32", "type": "integer" }, "failure_reason": { "type": [ "string", "null" ] }, "has_patch": { "type": "boolean" }, "head_revision": { "type": [ "string", "null" ] }, "id": { "description": "Public id (`afx_…`).", "type": "string" }, "is_open": { "type": "boolean" }, "owner_user_id": { "format": "int32", "type": "integer" }, "phase": { "description": "`queued`, `prepare`, `reproduce`, `verify`, `deliver` or `done`.", "type": "string" }, "pr_number": { "format": "int32", "type": [ "integer", "null" ] }, "pr_url": { "type": [ "string", "null" ] }, "project_id": { "format": "int32", "type": "integer" }, "sandbox_id": { "description": "Public id of the sandbox while it exists.", "type": [ "string", "null" ] }, "source_kind": { "type": [ "string", "null" ] }, "status": { "description": "`open`, `working`, `awaiting_review`, `merged`, `applied`, `rejected`,\n`failed` or `stopped`.", "type": "string" }, "summary": { "type": [ "string", "null" ] }, "title": { "type": "string" }, "trigger": { "description": "`manual` or `automatic`.", "type": "string" }, "updated_at": { "format": "date-time", "type": "string" }, "workspace_id": { "description": "Public id of the workspace the chat is in.", "type": [ "string", "null" ] } }, "required": [ "id", "project_id", "error_group_id", "title", "trigger", "status", "is_open", "phase", "owner_user_id", "has_patch", "attempts", "created_at", "updated_at" ], "type": "object" }, "AutofixRunConfig": { "description": "User-chosen per-run options, persisted as JSON in `agent_runs.run_config`.\nEvery field is optional — unset fields fall back to the provider defaults\nin settings, then to built-in defaults.", "properties": { "branch": { "default": null, "description": "Branch to clone instead of the project's main branch.", "type": [ "string", "null" ] }, "max_turns": { "default": null, "description": "Per-run turn cap applied to every phase of this run. Only enforced\nfor CLIs with a turn flag (Claude Code); Codex/OpenCode run to\ncompletion. `None` uses the provider's per-phase defaults.", "format": "int32", "type": [ "integer", "null" ] }, "model": { "default": null, "description": "Model id for the chosen provider. `None` uses the provider's saved\ndefault model, or the CLI's own default.", "type": [ "string", "null" ] }, "provider": { "default": null, "description": "AI provider id (\"claude_cli\", \"codex_cli\", \"opencode\"). `None` uses\nthe platform default provider from agent sandbox settings.", "type": [ "string", "null" ] } }, "type": "object" }, "AutofixSettingsResponse": { "properties": { "ai_model": { "type": [ "string", "null" ] }, "ai_provider": { "type": [ "string", "null" ] }, "min_confidence": { "description": "Confidence level, 0-5, an `auto_merge` fix must reach.", "format": "int32", "type": "integer" }, "mode": { "description": "`off`, `propose` or `auto_merge`.", "type": "string" }, "owner_user_id": { "description": "User automatic incidents act as.", "format": "int32", "type": [ "integer", "null" ] }, "paused": { "type": "boolean" }, "project_id": { "format": "int32", "type": "integer" }, "protected_paths": { "items": { "type": "string" }, "type": "array" }, "test_command": { "description": "Command the server runs to verify a fix, in addition to the agent's\nreproduction.", "type": [ "string", "null" ] }, "updated_at": { "format": "date-time", "type": [ "string", "null" ] } }, "required": [ "project_id", "mode", "min_confidence", "protected_paths", "paused" ], "type": "object" }, "AutofixerRunResponse": { "properties": { "ai_model": { "type": [ "string", "null" ] }, "ai_output": { "type": [ "string", "null" ] }, "ai_provider": { "description": "AI provider slug this run executes with (e.g. claude_cli, codex_cli).", "type": [ "string", "null" ] }, "analysis": { "type": [ "string", "null" ] }, "branch_name": { "type": [ "string", "null" ] }, "completed_at": { "type": [ "string", "null" ] }, "created_at": { "type": "string" }, "error_message": { "type": [ "string", "null" ] }, "files_changed": { "format": "int32", "type": "integer" }, "id": { "format": "int32", "type": "integer" }, "phase": { "type": [ "string", "null" ] }, "pr_number": { "format": "int32", "type": [ "integer", "null" ] }, "pr_url": { "type": [ "string", "null" ] }, "project_id": { "format": "int32", "type": "integer" }, "run_config": { "oneOf": [ { "$ref": "#/components/schemas/AutofixRunConfig", "description": "Per-run options the run was started with; used to prefill the\nretry / start-over dialog." }, { "type": "null" } ] }, "started_at": { "type": [ "string", "null" ] }, "status": { "type": "string" }, "tokens_input": { "format": "int32", "type": "integer" }, "tokens_output": { "format": "int32", "type": "integer" }, "trigger_source_id": { "format": "int32", "type": [ "integer", "null" ] }, "user_context": { "type": [ "string", "null" ] } }, "required": [ "id", "project_id", "status", "tokens_input", "tokens_output", "files_changed", "created_at" ], "type": "object" }, "AutofixerRunWithLogsResponse": { "properties": { "logs": { "items": { "$ref": "#/components/schemas/AgentRunLogResponse" }, "type": "array" }, "run": { "$ref": "#/components/schemas/AutofixerRunResponse" } }, "required": [ "run", "logs" ], "type": "object" }, "AvailableAiProviderDto": { "properties": { "auth_source": { "description": "`configured_key` for an encrypted gateway key.", "type": "string" }, "default_model_id": { "type": [ "string", "null" ] }, "default_permission_mode_id": { "type": [ "string", "null" ] }, "id": { "type": "string" }, "model_discovery_error": { "type": [ "string", "null" ] }, "model_discovery_status": { "description": "`ready` when the model list was loaded, `unavailable` when the provider\ncan still run with its own default but live discovery failed.", "type": "string" }, "models": { "items": { "$ref": "#/components/schemas/AiModelOptionDto" }, "type": "array" }, "name": { "type": "string" }, "permission_modes": { "items": { "$ref": "#/components/schemas/AiSelectOptionDto" }, "type": "array" } }, "required": [ "id", "name", "auth_source", "models", "model_discovery_status", "permission_modes" ], "type": "object" }, "AvailableContainerInfo": { "description": "Available Docker container that can be imported as a service", "properties": { "container_id": { "description": "Container ID or name", "example": "abc123def456", "type": "string" }, "container_name": { "description": "Container display name", "example": "my-postgres", "type": "string" }, "exposed_ports": { "description": "Exposed ports (e.g., [5432] for PostgreSQL, [6379] for Redis)", "items": { "format": "int32", "minimum": 0, "type": "integer" }, "type": "array" }, "image": { "description": "Docker image name (e.g., \"gotempsh/postgres-walg:18-bookworm\")", "example": "gotempsh/postgres-walg:18-bookworm", "type": "string" }, "is_running": { "description": "Whether the container is currently running", "example": true, "type": "boolean" }, "service_type": { "$ref": "#/components/schemas/ServiceTypeRoute", "description": "Service type this container represents" }, "version": { "description": "Extracted version from image", "example": "18", "type": "string" } }, "required": [ "container_id", "container_name", "image", "version", "service_type", "is_running" ], "type": "object" }, "AvailablePermissions": { "description": "Response containing all available permissions for frontend validation", "properties": { "permissions": { "description": "All available permissions in the system", "items": { "$ref": "#/components/schemas/PermissionInfo" }, "type": "array" }, "roles": { "description": "All available roles", "items": { "$ref": "#/components/schemas/RoleInfo" }, "type": "array" } }, "required": [ "permissions", "roles" ], "type": "object" }, "BackendRequestResponse": { "description": "One backend request that served the page.", "properties": { "duration_ms": { "format": "double", "type": "number" }, "error": { "type": "boolean" }, "service_name": { "type": "string" }, "span_name": { "type": "string" }, "start_time": { "format": "date-time", "type": "string" }, "trace_id": { "type": "string" } }, "required": [ "trace_id", "span_name", "service_name", "start_time", "duration_ms", "error" ], "type": "object" }, "BackupAlertListResponse": { "description": "Response body for the list-backup-alerts endpoint.", "properties": { "alerts": { "description": "All currently open (unresolved) alerts, newest first.", "items": { "$ref": "#/components/schemas/BackupAlertResponse" }, "type": "array" } }, "required": [ "alerts" ], "type": "object" }, "BackupAlertResponse": { "description": "A single open backup alert surfaced in the UI banner.\n\nAlerts are auto-opened by the watcher and auto-resolved when the triggering\ncondition clears. No manual dismiss is required or supported.\n\nThe optional `schedule_s3_source_id` field is included so the UI can\ndeep-link an `overdue_schedule` alert to the S3 source detail page that\nhosts the schedule. `stalled_job` alerts no longer carry a deep-link\ntarget — the alert message text contains the backup id for display.", "properties": { "id": { "description": "Database id of the alert row.", "format": "int64", "type": "integer" }, "kind": { "description": "`\"overdue_schedule\"` or `\"stalled_job\"`.", "type": "string" }, "message": { "description": "Human-readable description of the alert condition.", "type": "string" }, "opened_at": { "description": "RFC 3339 timestamp when the alert was opened.", "example": "2026-05-15T10:00:00Z", "type": "string" }, "schedule_id": { "description": "FK to `backup_schedules.id`. Set for `overdue_schedule` alerts.", "format": "int32", "type": [ "integer", "null" ] }, "schedule_name": { "description": "Human-readable name of the linked schedule, if applicable.", "type": [ "string", "null" ] }, "schedule_s3_source_id": { "description": "FK to `backup_schedules.s3_source_id`. The UI uses this to deep-link\nthe alert to the S3 source detail page that hosts the schedule.\nSet for `overdue_schedule` alerts.", "format": "int32", "type": [ "integer", "null" ] }, "severity": { "description": "`\"warning\"` or `\"critical\"`.", "type": "string" } }, "required": [ "id", "kind", "severity", "message", "opened_at" ], "type": "object" }, "BackupExecutorSettings": { "description": "Backup executor tuning. Replaces `TEMPS_BACKUP_EXECUTOR_MAX_CONCURRENT`.\nRead when the backup plugin starts, so a change applies at the next restart.", "properties": { "max_concurrent": { "default": 4, "description": "Backup jobs run concurrently on this control plane.", "example": 4, "format": "int32", "maximum": 64, "minimum": 1, "type": "integer" } }, "type": "object" }, "BackupList": { "description": "One page of a schedule's backups, newest first.", "properties": { "items": { "description": "The items on this page.", "items": { "$ref": "#/components/schemas/BackupResponse" }, "type": "array" }, "page": { "description": "The page served, starting at 1.", "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "description": "The page size served (at most 100).", "format": "int64", "minimum": 0, "type": "integer" }, "total": { "description": "Items across all pages.", "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "items", "total", "page", "page_size" ], "type": "object" }, "BackupResponse": { "description": "Response type for backup", "properties": { "attempts": { "description": "How many times this job has been claimed and run. `null` for legacy\nbackups with no `backup_jobs` row.", "format": "int32", "type": [ "integer", "null" ] }, "backup_id": { "type": "string" }, "backup_type": { "type": "string" }, "checksum": { "type": [ "string", "null" ] }, "completed_at": { "format": "date-time", "type": [ "string", "null" ] }, "compression_type": { "type": "string" }, "created_by": { "format": "int32", "type": "integer" }, "current_step": { "description": "Name of the engine step currently executing (e.g., `\"walg_push\"`).\n`null` when no `backup_jobs` row exists for this backup (legacy rows\npre-dating ADR-014), or when the job has not yet completed its first step.", "type": [ "string", "null" ] }, "error_message": { "type": [ "string", "null" ] }, "expires_at": { "format": "date-time", "type": [ "string", "null" ] }, "external_service": { "oneOf": [ { "$ref": "#/components/schemas/ExternalServiceSummary", "description": "External service that owns this backup (Redis, Postgres, etc.).\n`null` for control-plane backups (the Temps server's own database)." }, { "type": "null" } ] }, "file_count": { "format": "int32", "type": [ "integer", "null" ] }, "id": { "format": "int32", "type": "integer" }, "live_size_bytes": { "description": "Best-effort partial size while a backup is still running, computed\nby listing the S3 prefix. Null when the backup is finished\n(`size_bytes` is authoritative in that case).", "format": "int64", "type": [ "integer", "null" ] }, "max_attempts": { "description": "Maximum attempts before the job is permanently failed. `null` for\nlegacy backups.", "format": "int32", "type": [ "integer", "null" ] }, "max_runtime_secs": { "description": "Resolved wall-clock timeout for this backup job (seconds). `null` for\nlegacy backups. Derived from the three-tier resolution order:\ncaller override → schedule override → engine default.", "format": "int64", "type": [ "integer", "null" ] }, "metadata": {}, "name": { "type": "string" }, "s3_location": { "type": "string" }, "s3_source_id": { "format": "int32", "type": "integer" }, "schedule_id": { "format": "int32", "type": [ "integer", "null" ] }, "size_bytes": { "description": "Final size of the backup once completed. Null while running.", "format": "int64", "type": [ "integer", "null" ] }, "started_at": { "format": "date-time", "type": "string" }, "state": { "type": "string" }, "tags": { "items": { "type": "string" }, "type": "array" } }, "required": [ "id", "name", "backup_id", "backup_type", "state", "started_at", "s3_source_id", "s3_location", "metadata", "compression_type", "created_by", "tags" ], "type": "object" }, "BackupScheduleResponse": { "description": "Response type for backup schedule", "properties": { "backup_type": { "type": "string" }, "created_at": { "format": "date-time", "type": "string" }, "description": { "type": [ "string", "null" ] }, "enabled": { "type": "boolean" }, "id": { "format": "int32", "type": "integer" }, "include_control_plane": { "description": "When `true`, every run also produces a `control_plane` backup\n(Temps's own Postgres). When `false`, only the external service\nfan-out happens.", "type": "boolean" }, "last_run": { "format": "date-time", "type": [ "string", "null" ] }, "max_runtime_secs": { "description": "Per-schedule wall-clock timeout override for backup jobs (seconds).\n`null` means the default of four hours (14400 seconds) is used.", "format": "int64", "type": [ "integer", "null" ] }, "name": { "type": "string" }, "next_run": { "format": "date-time", "type": [ "string", "null" ] }, "retention_period": { "format": "int32", "type": "integer" }, "s3_source_id": { "format": "int32", "type": "integer" }, "schedule_expression": { "example": "0 0 3 * * *", "type": "string" }, "tags": { "items": { "type": "string" }, "type": "array" }, "target_all_services": { "description": "When `true`, the schedule auto-includes every external service on\nthe host (and any future ones). When `false`, the schedule only\ntargets services attached via `backup_schedule_services`.", "type": "boolean" }, "updated_at": { "format": "date-time", "type": "string" } }, "required": [ "id", "name", "backup_type", "retention_period", "s3_source_id", "schedule_expression", "enabled", "created_at", "updated_at", "tags", "target_all_services", "include_control_plane" ], "type": "object" }, "BatchObject": { "allOf": [ { "type": "object" }, { "properties": { "completion_window": { "type": "string" }, "created_at": { "format": "int64", "type": "integer" }, "endpoint": { "type": "string" }, "error_file_id": { "description": "Results of the failed requests.", "type": [ "string", "null" ] }, "id": { "type": "string" }, "input_file_id": { "type": "string" }, "model": { "type": [ "string", "null" ] }, "object": { "description": "Always `batch`", "type": "string" }, "output_file_id": { "description": "Results of the successful requests; download with\n`GET /ai/v1/files/{file_id}/content`.", "type": [ "string", "null" ] }, "request_counts": { "oneOf": [ { "$ref": "#/components/schemas/BatchRequestCounts" }, { "type": "null" } ] }, "status": { "description": "`validating`, `in_progress`, `finalizing`, `completed`, `failed`,\n`expired`, `cancelling` or `cancelled`", "type": "string" }, "usage": { "oneOf": [ { "$ref": "#/components/schemas/BatchUsage" }, { "type": "null" } ] } }, "required": [ "id", "object", "status" ], "type": "object" } ], "description": "A batch object as returned by the provider." }, "BatchRequestCounts": { "description": "Progress counters of a batch.", "properties": { "completed": { "format": "int64", "type": "integer" }, "failed": { "format": "int64", "type": "integer" }, "total": { "format": "int64", "type": "integer" } }, "type": "object" }, "BatchUsage": { "description": "Token usage of a finished batch, summed over its requests.", "properties": { "input_tokens": { "format": "int64", "type": "integer" }, "output_tokens": { "format": "int64", "type": "integer" }, "total_tokens": { "format": "int64", "type": "integer" } }, "type": "object" }, "BindApplicationGitConnectionRequest": { "properties": { "connectionId": { "format": "int32", "type": "integer" }, "projectId": { "format": "int32", "type": "integer" }, "remoteName": { "type": "string" }, "repositoryId": { "format": "int32", "type": "integer" } }, "required": [ "projectId", "connectionId", "repositoryId", "remoteName" ], "type": "object" }, "BindBlueprintComponentRequest": { "description": "The project (for an app part) or service (for a data part) to bind.", "properties": { "project_id": { "format": "int32", "type": [ "integer", "null" ] }, "service_id": { "format": "int32", "type": [ "integer", "null" ] } }, "type": "object" }, "BitbucketAuthInput": { "description": "Authentication input for a Bitbucket Cloud provider. Use `access_token` for\na Repository or Workspace Access Token (PAT), or `username` + `app_password`\nfor App Password (HTTP Basic) authentication.", "oneOf": [ { "description": "Personal / Workspace / Repository Access Token.", "properties": { "token": { "$ref": "#/components/schemas/SecretString", "description": "The Bitbucket access token value." }, "type": { "enum": [ "access_token" ], "type": "string" } }, "required": [ "token", "type" ], "type": "object" }, { "description": "HTTP Basic / App Password authentication.", "properties": { "password": { "$ref": "#/components/schemas/SecretString", "description": "App password generated in Bitbucket security settings." }, "type": { "enum": [ "app_password" ], "type": "string" }, "username": { "description": "Bitbucket account username.", "type": "string" } }, "required": [ "username", "password", "type" ], "type": "object" } ] }, "BlobResponse": { "description": "Response after uploading a blob", "properties": { "contentType": { "description": "Content type of the blob", "example": "image/png", "type": "string" }, "pathname": { "description": "Original pathname", "example": "images/avatar-abc123.png", "type": "string" }, "size": { "description": "Size in bytes", "example": 12345, "format": "int64", "type": "integer" }, "uploadedAt": { "description": "Upload timestamp", "example": "2025-01-03T12:00:00Z", "format": "date-time", "type": "string" }, "url": { "description": "URL path to access the blob", "example": "/api/blob/123/images/avatar-abc123.png", "type": "string" } }, "required": [ "url", "pathname", "contentType", "size", "uploadedAt" ], "type": "object" }, "BlobSettings": { "description": "Settings of the managed Blob service (the RustFS container behind `/blob`).\n\nSame reasoning as [`KvSettings`]: the container is named\n`rustfs-`.", "properties": { "container_name": { "default": "", "description": "Docker container name of the Blob RustFS container. Empty means the\nper-instance default. A custom value must start with `rustfs-`.", "example": "rustfs-temps-blob-staging", "type": "string" } }, "type": "object" }, "BlobStatusResponse": { "description": "Response for Blob service status", "properties": { "docker_image": { "description": "Docker image being used", "example": "rustfs/rustfs:1.0.0-rc.5", "type": [ "string", "null" ] }, "enabled": { "description": "Whether the Blob service is enabled", "example": true, "type": "boolean" }, "healthy": { "description": "Whether the service is healthy", "example": true, "type": "boolean" }, "version": { "description": "Current version (if running)", "example": "1.0.0-rc.5", "type": [ "string", "null" ] } }, "required": [ "enabled", "healthy" ], "type": "object" }, "BlueprintDocument": { "description": "The design of an application: what it is for, its parts and its flows.", "properties": { "components": { "items": { "$ref": "#/components/schemas/Component" }, "type": "array" }, "flows": { "items": { "$ref": "#/components/schemas/Flow" }, "type": "array" }, "summary": { "description": "One paragraph: what the application does and for whom.", "type": "string" } }, "required": [ "summary", "components" ], "type": "object" }, "BlueprintResponse": { "description": "A workspace's architecture: what was accepted, what waits for a\ndecision, and how each bound part is doing.", "properties": { "accepted": { "oneOf": [ { "$ref": "#/components/schemas/BlueprintVersionResponse" }, { "type": "null" } ] }, "application_id": { "type": "string" }, "bindings": { "additionalProperties": { "$ref": "#/components/schemas/ComponentBinding" }, "description": "Which project or service realises each part, by part id.", "propertyNames": { "type": "string" }, "type": "object" }, "live": { "additionalProperties": { "$ref": "#/components/schemas/ComponentLive" }, "description": "The live state of each bound part, by part id.", "propertyNames": { "type": "string" }, "type": "object" }, "proposal": { "oneOf": [ { "$ref": "#/components/schemas/BlueprintVersionResponse" }, { "type": "null" } ] }, "workspace_name": { "type": "string" } }, "required": [ "application_id", "workspace_name", "bindings", "live" ], "type": "object" }, "BlueprintVersionResponse": { "description": "What the console needs to draw one version.", "properties": { "change_summary": { "type": "string" }, "created_at": { "description": "ISO 8601.", "type": "string" }, "decided_at": { "description": "ISO 8601, once accepted or rejected.", "type": [ "string", "null" ] }, "document": { "$ref": "#/components/schemas/BlueprintDocument" }, "proposed_by_assistant": { "description": "Whether the model proposed it (in a chat) rather than the user writing it.", "type": "boolean" }, "status": { "$ref": "#/components/schemas/VersionStatus" }, "version": { "format": "int32", "type": "integer" } }, "required": [ "version", "document", "change_summary", "status", "proposed_by_assistant", "created_at" ], "type": "object" }, "BlueprintVersionsResponse": { "properties": { "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" }, "versions": { "items": { "$ref": "#/components/schemas/BlueprintVersionResponse" }, "type": "array" } }, "required": [ "versions", "total", "page", "page_size" ], "type": "object" }, "BranchInfo": { "properties": { "commit_sha": { "type": "string" }, "is_default": { "description": "Whether this is the repository's default branch, as reported by the\ngit provider (e.g. `main` or `master`). Clients should use this\ninstead of guessing from the branch name.", "type": "boolean" }, "name": { "type": "string" }, "protected": { "type": "boolean" } }, "required": [ "name", "commit_sha", "protected", "is_default" ], "type": "object" }, "BranchListResponse": { "properties": { "branches": { "items": { "$ref": "#/components/schemas/BranchInfo" }, "type": "array" } }, "required": [ "branches" ], "type": "object" }, "BreakdownGroupResponse": { "description": "One downstream call inside the operation.", "properties": { "avg_ms": { "description": "Exclusive time per call.", "format": "double", "type": "number" }, "calls": { "format": "int64", "minimum": 0, "type": "integer" }, "calls_per_instance": { "description": "Calls per sampled call of the operation.", "format": "double", "type": "number" }, "category": { "description": "`database`, `http`, `messaging`, `rpc`, `client`, `server`,\n`internal`, or `other` for the summed remainder.", "type": "string" }, "service_name": { "description": "Empty for the summed remainder.", "type": "string" }, "share": { "description": "`total_ms` over the operation's total time. Parallel calls can add\nup to more than 1.", "format": "double", "type": "number" }, "span_name": { "type": "string" }, "total_ms": { "description": "Exclusive time, summed over the sample.", "format": "double", "type": "number" } }, "required": [ "service_name", "span_name", "category", "total_ms", "share", "calls", "calls_per_instance", "avg_ms" ], "type": "object" }, "BrowserCount": { "properties": { "browser": { "type": "string" }, "count": { "format": "int64", "type": "integer" }, "percentage": { "format": "double", "type": "number" } }, "required": [ "browser", "count", "percentage" ], "type": "object" }, "BrowserIdentifyPayload": { "description": "Body of `POST /_temps/identify` (ADR 109 D4).", "properties": { "traits": { "description": "Traits merged into the visitor's `custom_data`; `null` removes a key.\nAt most 32 keys and 8 KB.", "type": [ "object", "null" ] }, "user_id": { "description": "The app's own id for the signed-in person. At most 256 characters.", "type": "string" }, "visitor_id": { "description": "The tracker's stored visitor id. Read only where events read it (a\nkeyed request); a proxied site's visitor comes from its cookie.", "type": [ "string", "null" ] } }, "required": [ "user_id" ], "type": "object" }, "BrowsersQuery": { "properties": { "end_date": { "format": "date-time", "type": "string" }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "limit": { "format": "int32", "type": [ "integer", "null" ] }, "project_id": { "format": "int32", "type": "integer" }, "start_date": { "format": "date-time", "type": "string" } }, "required": [ "start_date", "end_date", "project_id" ], "type": "object" }, "BuildConfiguration": { "description": "Build configuration (for building images from source)", "properties": { "args": { "additionalProperties": { "type": "string" }, "description": "Build arguments", "propertyNames": { "type": "string" }, "type": "object" }, "context": { "description": "Build context (Dockerfile path or buildpack)", "type": "string" }, "dockerfile": { "description": "Dockerfile path (relative to context)", "type": [ "string", "null" ] }, "target": { "description": "Target stage (for multi-stage builds)", "type": [ "string", "null" ] } }, "required": [ "context", "args" ], "type": "object" }, "BuildLimits": { "description": "Operator settings persisted on each node. These are control-plane operations,\nindependent of the proxy request path. Existing agents keep their fixed limits.", "properties": { "build_timeout_seconds": { "default": 1800, "format": "int32", "minimum": 0, "type": "integer" }, "concurrency": { "default": 1, "format": "int32", "minimum": 0, "type": "integer" }, "queue_wait_seconds": { "default": 300, "format": "int32", "minimum": 0, "type": "integer" } }, "type": "object" }, "BuildLimitsSettings": { "description": "Control-plane build resource limits.\n\nCaps how many builds run concurrently AND how much CPU/memory each build\nis allowed to consume. A single global gate in the deployer crate\nadmits at most `max_concurrent` `DockerRuntime::build_image` calls at a\ntime. When the gate is full, additional builds queue and wait — they do\nnot fail. Per-build CPU/memory caps are forwarded to Docker via\n`BuildImageOptions { memory, cpuquota, cpuperiod }`.\n\nChanges apply live, with no restart. Builds already running finish with the\nlimits they started with; queued and new builds use the new ones. Lowering\n`max_concurrent` never stops a running build: new builds wait until enough\nof them finish to get under the new limit.\n\n`cpu_limit_cores = 0.0` or `memory_limit_mb = 0` means \"no explicit cap\"\n— fall back to the legacy 50%-of-host heuristic for backwards\ncompatibility with operators who never visit the settings page.", "properties": { "build_cache_max_gb": { "default": 10, "description": "Upper bound for Docker's build cache, in gigabytes. The nightly\ncleanup removes the least recently used cache records that no build\nis using until the total is at or below this size. 0 disables the\nsize cap (only `build_cache_max_unused_days` applies). Re-read on\nevery nightly run. Applies to this host's Docker daemon; worker nodes\nuse the default.", "example": 10, "format": "int32", "minimum": 0, "type": "integer" }, "build_cache_max_unused_days": { "default": 7, "description": "Build cache records unused for longer than this many days are removed\nby the nightly cleanup, whatever the total size. Valid range 1..=365.", "example": 7, "format": "int32", "maximum": 365, "minimum": 1, "type": "integer" }, "cpu_limit_cores": { "default": 0, "description": "CPU cores allowed per build (float, e.g. 2.0 = 2 cores, 0.5 = half\na core). 0 means \"use the legacy 50%-of-host default\". Applied only\nby Docker's legacy builder: BuildKit, the default since Docker 18.09,\nignores the CPU and memory options of the image build API, so on\nBuildKit hosts this has no effect. Applies live to builds that start\nafter the change; a running build keeps the cap it started with.", "example": 2, "format": "float", "minimum": 0, "type": "number" }, "max_concurrent": { "default": 2, "description": "Maximum number of `docker build` operations allowed to run at the\nsame time on the control plane. Additional builds queue. Min 1.\nApplies live: raising it starts queued builds right away; lowering it\nlets running builds finish and holds new ones until they do.", "example": 2, "format": "int32", "minimum": 1, "type": "integer" }, "memory_limit_mb": { "default": 0, "description": "Memory allowed per build, in megabytes. 0 means \"use the legacy\n50%-of-host default\". Same scope as `cpu_limit_cores`: applied only\nby the legacy builder, ignored by BuildKit, applied live to builds that\nstart after the change.\nValues above 2047 MB are reduced to 2047 MB, the most the build API\naccepts through the client, with a warning in the server log.", "example": 2048, "format": "int32", "minimum": 0, "type": "integer" } }, "type": "object" }, "BuildLocation": { "description": "Where a source deployment's image is built.\n\nThe control plane is the default and the historical behaviour. `Node`\nmoves the build — the most CPU- and memory-hungry step of a deployment —\nonto a worker node so it stops competing with the proxy, the database\nand running workloads on the control plane. A node labelled\n`temps.sh/role=builder` is preferred; otherwise the node the deployment\nis placed on builds it.\n\n`Node` is a preference, not a requirement: when no worker can take the\nbuild (none joined, none of the right architecture, or a\nmulti-architecture build) the build runs on the control plane and the\nbuild log says why. A static site may build on a worker of any\narchitecture, since its output is read from that node and never runs.", "enum": [ "control_plane", "node", "ci" ], "type": "string" }, "BuildSpec": { "description": "Paths are relative to the root of the tar archive.\n\nDeliberately not `Debug`: [`BuildSpec::build_args`] holds variable values,\nand a stray `{:?}` must not be able to put them in a log.", "properties": { "build_args": { "additionalProperties": { "type": "string" }, "description": "Values for the Dockerfile's `ARG` instructions, applied exactly as\n`docker build --build-arg` would be (protocol v2). The control plane\ndecides which values may leave it -- never one marked secret or a\nplatform credential -- and sends only names the Dockerfile declares.\nA spec holding them is encrypted to the node's key\n([`SEALED_BUILD_SPEC_FIELD`]). They are held in memory on both sides;\nneither side writes them to disk or to a log.", "propertyNames": { "type": "string" }, "type": "object" }, "cache_namespace": { "description": "BuildKit's predefined `BUILDKIT_CACHE_MOUNT_NS`: the control plane's\nper-project/environment/ref namespace for `RUN --mount=type=cache`.\nNot a project variable and not a credential, so it is the one build\nargument a worker receives. Without it, every project built on the\nsame worker shares writable cache mounts. Optional on the wire: an\nagent that predates it ignores the field and builds as before.", "type": [ "string", "null" ] }, "dockerfile": { "type": "string" }, "image_name": { "type": "string" }, "labels": { "additionalProperties": { "type": "string" }, "description": "Labels for the built image, `sh.temps.image.*` keys only: which install,\nproject and deployment built it, so housekeeping can recognise the\nimage once the database rows naming it are gone. Not values a build\nreads. Optional on the wire: an agent that predates it ignores the\nfield and builds an unlabelled image, as before.", "propertyNames": { "type": "string" }, "type": "object" }, "platform": { "type": [ "string", "null" ] }, "version": { "format": "int32", "minimum": 0, "type": "integer" } }, "required": [ "version", "image_name", "dockerfile" ], "type": "object" }, "BulkActivationEstimateResponse": { "description": "The quote.", "properties": { "active_batch_id": { "description": "A job already running. Submitting would be refused with `409`, so the\nclient can offer \"watch the running job\" instead of a button that fails.", "type": [ "string", "null" ] }, "configured": { "description": "Whether a bulk activation could run at all right now.\n\n`false` is the normal state on an unlinked instance and must render as\nonboarding, not as an error.", "type": "boolean" }, "eligible_projects": { "minimum": 0, "type": "integer" }, "estimated_bytes": { "format": "int64", "minimum": 0, "type": "integer" }, "estimated_spans": { "description": "Totals over the **eligible** projects only — what confirming this quote\nwould actually send.", "format": "int64", "minimum": 0, "type": "integer" }, "plan_expires_at": { "format": "date-time", "type": [ "string", "null" ] }, "plan_hash": { "description": "Stable identity of the project set and windows, recorded on the job.", "type": [ "string", "null" ] }, "plan_token": { "description": "The handle to send back to `POST /bulk-jobs`.\n\n`None` when nothing is eligible: there is no bill to confirm, and\nhanding back a token that would be refused on submit would be a dead\nend with no explanation attached.", "type": [ "string", "null" ] }, "projects": { "description": "Every project considered, eligible or not, ascending by id.", "items": { "$ref": "#/components/schemas/BulkActivationProjectEstimateResponse" }, "type": "array" }, "reason": { "type": [ "string", "null" ] }, "setup_path": { "type": [ "string", "null" ] }, "skipped_projects": { "minimum": 0, "type": "integer" }, "total_projects": { "minimum": 0, "type": "integer" }, "window_from": { "format": "date-time", "type": "string" }, "window_to": { "format": "date-time", "type": "string" } }, "required": [ "configured", "window_from", "window_to", "projects", "total_projects", "eligible_projects", "skipped_projects", "estimated_spans", "estimated_bytes" ], "type": "object" }, "BulkActivationEtaState": { "description": "How much of the ETA this instance can honestly claim to know.", "enum": [ "estimating", "known", "finished" ], "type": "string" }, "BulkActivationJobProjectResponse": { "description": "One project's row inside a job.", "properties": { "bytes_shipped": { "format": "int64", "type": "integer" }, "completed_at": { "format": "date-time", "type": [ "string", "null" ] }, "estimated_bytes": { "format": "int64", "type": "integer" }, "estimated_spans": { "format": "int64", "type": "integer" }, "last_error": { "description": "Why this project stopped, when `status` is `failed`. The switch is never\nrolled back, so this project is Cloud-primary with a recorded hole in\nits history — which is retryable, and must be visible to be retried.", "type": [ "string", "null" ] }, "percent_complete": { "description": "`spans_shipped / estimated_spans`, clamped to 0–100. `None` when the\nestimate is zero or unknown — an empty window is not \"0% done\".", "format": "double", "type": [ "number", "null" ] }, "project_id": { "format": "int32", "type": "integer" }, "setup_path": { "type": [ "string", "null" ] }, "skip_detail": { "type": [ "string", "null" ] }, "skip_reason": { "type": [ "string", "null" ] }, "spans_shipped": { "format": "int64", "type": "integer" }, "started_at": { "format": "date-time", "type": [ "string", "null" ] }, "status": { "$ref": "#/components/schemas/BulkJobProjectStatus" }, "window_from": { "format": "date-time", "type": "string" }, "window_to": { "format": "date-time", "type": "string" } }, "required": [ "project_id", "status", "window_from", "window_to", "estimated_spans", "estimated_bytes", "spans_shipped", "bytes_shipped" ], "type": "object" }, "BulkActivationJobResponse": { "description": "A job, its projects, its progress and its ETA.", "properties": { "abort_detail": { "description": "The same reason as a sentence naming the fix and the page that applies\nit.", "type": [ "string", "null" ] }, "abort_reason": { "description": "Machine-readable instance-wide abort reason, e.g. `not_linked`.", "type": [ "string", "null" ] }, "batch_id": { "type": "string" }, "bytes_shipped": { "format": "int64", "type": "integer" }, "cancel_requested": { "description": "Set as soon as a cancel is requested, before the worker honours it at\nthe next chunk boundary — so the UI can stop offering Cancel twice.", "type": "boolean" }, "cancel_requested_at": { "format": "date-time", "type": [ "string", "null" ] }, "completed_at": { "format": "date-time", "type": [ "string", "null" ] }, "created_at": { "format": "date-time", "type": "string" }, "current_project_id": { "description": "The project being switched or backfilled right now.", "format": "int32", "type": [ "integer", "null" ] }, "estimated_bytes": { "format": "int64", "type": "integer" }, "estimated_spans": { "format": "int64", "type": "integer" }, "eta_seconds": { "description": "Seconds remaining, or `null` when `eta_state` is not `known`.", "format": "int64", "type": [ "integer", "null" ] }, "eta_state": { "$ref": "#/components/schemas/BulkActivationEtaState" }, "observed_spans_per_sec": { "description": "The average this job has actually achieved since it started. Sent so the\nclient can render a coarse rate instead of implying a precision the\naverage does not have.", "format": "double", "type": [ "number", "null" ] }, "percent_complete": { "format": "double", "type": [ "number", "null" ] }, "plan_hash": { "type": [ "string", "null" ] }, "projects": { "items": { "$ref": "#/components/schemas/BulkActivationJobProjectResponse" }, "type": "array" }, "projects_done": { "minimum": 0, "type": "integer" }, "projects_failed": { "minimum": 0, "type": "integer" }, "projects_pending": { "minimum": 0, "type": "integer" }, "projects_skipped": { "minimum": 0, "type": "integer" }, "projects_total": { "minimum": 0, "type": "integer" }, "requested_by_user_id": { "format": "int32", "type": [ "integer", "null" ] }, "spans_shipped": { "format": "int64", "type": "integer" }, "started_at": { "format": "date-time", "type": [ "string", "null" ] }, "status": { "$ref": "#/components/schemas/BulkJobStatus" }, "trigger": { "$ref": "#/components/schemas/BulkJobTrigger" } }, "required": [ "batch_id", "trigger", "status", "estimated_spans", "estimated_bytes", "spans_shipped", "bytes_shipped", "eta_state", "projects_total", "projects_pending", "projects_done", "projects_failed", "projects_skipped", "cancel_requested", "created_at", "projects" ], "type": "object" }, "BulkActivationProjectEstimateResponse": { "description": "One project's line on the quote.", "properties": { "average_span_bytes": { "format": "double", "type": "number" }, "eligible": { "description": "Whether this project is part of the plan the token covers.", "type": "boolean" }, "estimated_bytes": { "description": "`average_span_bytes * estimated_spans`, rounded up. Temps Cloud's own\nacknowledgement is authoritative; this is what this instance can know\nbefore sending.", "format": "int64", "minimum": 0, "type": "integer" }, "estimated_spans": { "description": "Exact count of local spans in the window. Zero for a skipped project —\nnothing was counted, because nothing would be sent.", "format": "int64", "minimum": 0, "type": "integer" }, "fidelity": { "$ref": "#/components/schemas/CloudTelemetryFidelity" }, "project_id": { "format": "int32", "type": "integer" }, "sampled_spans": { "description": "How many spans were actually projected to derive the average.", "format": "int64", "minimum": 0, "type": "integer" }, "setup_path": { "description": "Where the operator goes to unblock it, when anywhere.", "type": [ "string", "null" ] }, "skip_detail": { "description": "The same reason as a sentence, so no client has to map an enum to prose.", "type": [ "string", "null" ] }, "skip_reason": { "description": "Machine-readable reason it is not, e.g. `fidelity_not_queryable`.", "type": [ "string", "null" ] }, "window_from": { "format": "date-time", "type": "string" }, "window_to": { "format": "date-time", "type": "string" } }, "required": [ "project_id", "eligible", "fidelity", "window_from", "window_to", "estimated_spans", "estimated_bytes", "sampled_spans", "average_span_bytes" ], "type": "object" }, "BulkAlarmActionRequest": { "description": "Lifecycle transition for `POST .../alarms/bulk`.", "enum": [ "acknowledge", "resolve" ], "type": "string" }, "BulkAlarmFilter": { "description": "Filters selecting \"every alarm matching\" for a bulk update. Same\nsemantics as the list endpoint's query parameters.", "properties": { "alarm_type": { "description": "Filter by alarm type (e.g. `container_crash`).", "type": [ "string", "null" ] }, "deployment_id": { "description": "Filter by deployment ID.", "format": "int32", "type": [ "integer", "null" ] }, "environment_id": { "description": "Filter by environment ID.", "format": "int32", "type": [ "integer", "null" ] }, "severity": { "description": "Filter by severity: `info`, `warning`, or `critical`.", "type": [ "string", "null" ] }, "status": { "description": "Filter by status: `firing` or `acknowledged`.", "type": [ "string", "null" ] } }, "type": "object" }, "BulkAlarmRequest": { "description": "Request body for `POST .../alarms/bulk`. Provide exactly one of\n`alarm_ids` or `filter`.", "properties": { "action": { "$ref": "#/components/schemas/BulkAlarmActionRequest" }, "alarm_ids": { "description": "Explicit alarms to update (at most 1000).", "items": { "format": "int32", "type": "integer" }, "type": [ "array", "null" ] }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/BulkAlarmFilter", "description": "Update every alarm matching these filters, up to 1000 per request.\nUse `{}` to match all active alarms in scope." }, { "type": "null" } ] } }, "required": [ "action" ], "type": "object" }, "BulkAlarmResponse": { "description": "Result of a bulk alarm update.", "properties": { "action": { "$ref": "#/components/schemas/BulkAlarmActionRequest" }, "remaining": { "description": "Matching alarms left for a follow-up request because this one hit the\nper-request limit. Always 0 when `alarm_ids` was used.", "format": "int64", "minimum": 0, "type": "integer" }, "skipped": { "description": "Requested alarms already in (or past) the target state.", "format": "int64", "minimum": 0, "type": "integer" }, "updated": { "description": "Number of alarms that changed state.", "format": "int64", "minimum": 0, "type": "integer" }, "updated_ids": { "description": "IDs of the alarms that changed state.", "items": { "format": "int32", "type": "integer" }, "type": "array" } }, "required": [ "action", "updated", "updated_ids", "skipped", "remaining" ], "type": "object" }, "BulkErrorGroupAction": { "description": "Status transition a bulk request applies.", "enum": [ "resolve", "unresolve", "ignore" ], "type": "string" }, "BulkErrorGroupFilter": { "description": "Filters selecting \"every group matching\", with the same meaning they have\non the list endpoint. `{}` selects every group of the project that is not\nalready in the target status.", "properties": { "end_date": { "description": "With `start_date`: only groups with at least one event in the window.", "format": "date-time", "type": [ "string", "null" ] }, "environment_id": { "description": "Only groups first seen in this environment.", "format": "int32", "type": [ "integer", "null" ] }, "search": { "description": "Case-insensitive substring of the title, error type or message.\nWildcards are matched literally.", "type": [ "string", "null" ] }, "start_date": { "description": "With `end_date`: only groups with at least one event in the window.", "format": "date-time", "type": [ "string", "null" ] }, "status": { "description": "Only groups currently in this status.", "type": [ "string", "null" ] } }, "type": "object" }, "BulkErrorGroupRequest": { "description": "Request body for `POST .../error-groups/bulk`. Provide exactly one of\n`group_ids` or `filter`.", "properties": { "action": { "$ref": "#/components/schemas/BulkErrorGroupAction" }, "filter": { "oneOf": [ { "$ref": "#/components/schemas/BulkErrorGroupFilter", "description": "Update every group matching these filters, up to 1000 per request." }, { "type": "null" } ] }, "group_ids": { "description": "Explicit groups to update; every one must be in this project.", "items": { "format": "int32", "type": "integer" }, "type": [ "array", "null" ] }, "ignore": { "oneOf": [ { "$ref": "#/components/schemas/IgnoreConditionsRequest", "description": "With `action: ignore`: when the groups come back. Omitted, the next\nevent reopens them." }, { "type": "null" } ] }, "in_next_release": { "description": "With `status: resolved` (or `action: resolve`): resolved in the next\nrelease. Events from the project's newest release at this moment, or\nan older one, or with no release, keep it resolved; an event from a\nnewer release reopens it. Fails when the project has no release yet.", "type": "boolean" } }, "required": [ "action" ], "type": "object" }, "BulkErrorGroupResponse": { "description": "Result of a bulk group update.", "properties": { "action": { "$ref": "#/components/schemas/BulkErrorGroupAction" }, "remaining": { "description": "Matching groups left for a follow-up request because this one hit the\nper-request limit. Always 0 when `group_ids` was used.", "format": "int64", "minimum": 0, "type": "integer" }, "skipped": { "description": "Selected groups already in the target status.", "format": "int64", "minimum": 0, "type": "integer" }, "updated": { "description": "Number of groups whose status changed.", "format": "int64", "minimum": 0, "type": "integer" }, "updated_ids": { "description": "Ids of the groups whose status changed.", "items": { "format": "int32", "type": "integer" }, "type": "array" } }, "required": [ "action", "updated", "updated_ids", "skipped", "remaining" ], "type": "object" }, "BulkJobProjectStatus": { "description": "Where one project has got to inside a bulk job.\n\n`switching` and `backfilling` are separate on purpose: the switch is cheap,\natomic and egresses nothing, while the backfill can run for hours and costs\nmoney. An operator watching a stuck job needs to know which of the two it is\nstuck in, and a project that failed after switching is *not* rolled back\n(ADR-042 §7) — so the two must be distinguishable after the fact too.", "enum": [ "pending", "switching", "backfilling", "done", "failed", "skipped" ], "type": "string" }, "BulkJobStatus": { "description": "Lifecycle of a bulk job.\n\nThe three terminal-with-a-problem states are deliberately distinct.\n`completed_with_failures` means the job ran to the end and some projects\ndid not; `aborted` means an instance-wide condition stopped it and the\nuntouched projects are still `pending`, ready to resume; `cancelled` means\nan operator asked it to stop. Collapsing any two of those would leave the\nConsole unable to say what to do next.", "enum": [ "pending", "running", "completed", "completed_with_failures", "aborted", "cancelled" ], "type": "string" }, "BulkJobTrigger": { "description": "Which entry point created the job (ADR-042 §1).\n\nThe engine does not branch on this. It exists so an operator disputing an\ninvoice, or reading an audit trail, can tell \"this instance spent money\nbecause someone clicked a button\" apart from \"…because a purchase completed\nand the payment was the authorization\".", "enum": [ "purchase", "operator" ], "type": "string" }, "CancelBackupResponse": { "description": "Response body for cancel endpoints.", "properties": { "cancelled": { "description": "Number of rows that were actually flipped to `failed`. `0` is a valid\nsuccess and means the backup was already terminal — the call is\nidempotent.", "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "cancelled" ], "type": "object" }, "Candidate": { "description": "Detection output deliberately contains neither the secret nor matching substrings.", "properties": { "description": { "type": "string" }, "evidence": { "$ref": "#/components/schemas/DetectionEvidence" }, "id": { "type": "string" } }, "required": [ "id", "description", "evidence" ], "type": "object" }, "CatalogReference": { "description": "What the catalog knows about a saved service's destination: how to show it\nand where its credential is created, so a key can be rotated from the edit page.", "properties": { "credential_help": { "$ref": "#/components/schemas/CredentialHelp" }, "credential_labels": { "description": "One label for a single credential, or two (username, password).", "items": { "type": "string" }, "type": "array" }, "id": { "type": "string" }, "logo": { "type": "string" }, "name": { "type": "string" } }, "required": [ "id", "name", "logo", "credential_labels", "credential_help" ], "type": "object" }, "CertFailureCause": { "description": "Why the last certificate attempt for a domain failed.", "enum": [ "dns_lookup", "unreachable", "upstream_answered", "dns_record_mismatch", "caa_forbids", "rate_limited", "ca_transient", "config", "unknown" ], "type": "string" }, "CertStatusResponse": { "description": "Current on-demand cert status for a single hostname (ADR-018 §5). Backs\n`GET /domains/by-host/{hostname}/cert-status`.", "properties": { "backoff_until": { "description": "On-demand negative-cache deadline (ISO 8601, UTC), when in backoff.", "format": "date-time", "type": [ "string", "null" ] }, "hostname": { "description": "SNI hostname.", "type": "string" }, "last_attempt": { "oneOf": [ { "$ref": "#/components/schemas/OnDemandCertAttemptResponse", "description": "The most recent on-demand issuance attempt for this hostname, if any." }, { "type": "null" } ] }, "status": { "description": "Current cert lifecycle status from the `domains` row, when one exists.", "type": [ "string", "null" ] } }, "required": [ "hostname" ], "type": "object" }, "CertificateMethods": { "description": "Which certificate methods, and which tunnels, fit a domain here.", "properties": { "dns01_manual": { "$ref": "#/components/schemas/MethodCapability", "description": "A Let's Encrypt certificate validated by a DNS TXT record the\noperator adds by hand. Needs no inbound port and no provider." }, "dns01_provider": { "$ref": "#/components/schemas/MethodCapability", "description": "A Let's Encrypt certificate validated by a DNS TXT record that Temps\nwrites through a connected DNS provider." }, "dns_provider": { "description": "The DNS provider that would write the DNS-01 record.", "type": [ "string", "null" ] }, "http01": { "$ref": "#/components/schemas/MethodCapability", "description": "A Let's Encrypt certificate validated over public port 80." }, "http01_available": { "description": "`http01.configured`, kept for consoles that read only this.", "type": "boolean" }, "tunnel": { "$ref": "#/components/schemas/MethodCapability", "description": "Served through a tunnel that covers the domain, its provider serving\nHTTPS, so no certificate is issued here." }, "tunnels": { "description": "The tunnels that cover the domain, most specific first. Without a\ndomain, every tunnel.", "items": { "type": "string" }, "type": "array" } }, "required": [ "http01_available", "http01", "dns01_provider", "dns01_manual", "tunnel", "tunnels" ], "type": "object" }, "CertificateRenewalMode": { "description": "How the current certificate is renewed, independently of its future-order policy.", "enum": [ "manual", "acme" ], "type": "string" }, "ChallengeConfig": { "description": "Challenge configuration (future feature)\nFor CAPTCHA, JS challenges, proof-of-work, etc.", "properties": { "challengeType": { "description": "Challenge type: \"captcha\", \"js_challenge\", \"proof_of_work\"", "type": "string" }, "difficulty": { "description": "Challenge difficulty level (1-10)", "format": "int32", "minimum": 0, "type": "integer" }, "protectedPaths": { "description": "Paths that require challenges", "items": { "type": "string" }, "type": "array" } }, "required": [ "challengeType", "difficulty" ], "type": "object" }, "ChallengeError": { "properties": { "detail": { "description": "Human-readable error description", "type": "string" }, "status": { "description": "HTTP status code", "format": "int32", "type": "integer" }, "type": { "description": "Error type (e.g., \"urn:ietf:params:acme:error:unauthorized\")", "type": "string" } }, "required": [ "type", "detail", "status" ], "type": "object" }, "ChallengeValidationStatus": { "properties": { "error": { "oneOf": [ { "$ref": "#/components/schemas/ChallengeError", "description": "Error details if validation failed" }, { "type": "null" } ] }, "status": { "description": "Challenge status (e.g., \"pending\", \"valid\", \"invalid\")", "type": "string" }, "token": { "description": "Challenge token", "type": "string" }, "type": { "description": "Challenge type (e.g., \"dns-01\", \"http-01\")", "type": "string" }, "url": { "description": "Challenge validation URL", "type": "string" }, "validated": { "description": "When the challenge was validated (if successful)", "type": [ "string", "null" ] } }, "required": [ "type", "url", "status", "token" ], "type": "object" }, "ChangePasswordRequest": { "properties": { "current_password": { "example": "current_password_value", "type": "string" }, "mfa_code": { "description": "TOTP code (or recovery code). Required iff the user has MFA enabled.", "example": "123456", "type": [ "string", "null" ] }, "new_password": { "example": "new_password_value", "type": "string" }, "revoke_other_sessions": { "description": "When true, every session OTHER than the one making this request is\nrevoked. Defaults to false; the UI surfaces this as a checkbox.", "type": "boolean" } }, "required": [ "current_password", "new_password" ], "type": "object" }, "ChangeProjectSourceRequest": { "description": "Change a project's source type to a Git-less type (docker_image /\nstatic_files / manual). Switching TO `git` is done via the Git settings\nendpoint (which also supplies the repository + provider connection).", "properties": { "source_type": { "$ref": "#/components/schemas/SourceType" } }, "required": [ "source_type" ], "type": "object" }, "ChatAttachmentReference": { "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "required": [ "id", "name" ], "type": "object" }, "ChatAttachmentResponse": { "properties": { "id": { "type": "string" }, "is_image": { "type": "boolean" }, "mime_type": { "type": "string" }, "name": { "type": "string" }, "sandbox_path": { "type": "string" }, "size_bytes": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "id", "name", "mime_type", "size_bytes", "sandbox_path", "is_image" ], "type": "object" }, "ChatAttachmentUpload": { "properties": { "file": { "format": "binary", "type": "string" } }, "required": [ "file" ], "type": "object" }, "ChatCompletionChoice": { "properties": { "finish_reason": { "type": [ "string", "null" ] }, "index": { "format": "int32", "type": "integer" }, "message": { "$ref": "#/components/schemas/ChatMessage" } }, "required": [ "index", "message" ], "type": "object" }, "ChatCompletionRequest": { "allOf": [ { "additionalProperties": {}, "description": "Tolerates extra SDK fields (stream_options, logprobs, etc.)", "propertyNames": { "type": "string" }, "type": [ "object", "null" ] }, { "properties": { "frequency_penalty": { "format": "double", "type": [ "number", "null" ] }, "max_tokens": { "format": "int64", "type": [ "integer", "null" ] }, "messages": { "items": { "$ref": "#/components/schemas/ChatMessage" }, "type": "array" }, "model": { "type": "string" }, "n": { "format": "int32", "type": [ "integer", "null" ] }, "presence_penalty": { "format": "double", "type": [ "number", "null" ] }, "response_format": {}, "seed": { "format": "int64", "type": [ "integer", "null" ] }, "stop": { "oneOf": [ { "$ref": "#/components/schemas/StopSequence" }, { "type": "null" } ] }, "stream": { "type": "boolean" }, "temperature": { "format": "double", "type": [ "number", "null" ] }, "tool_choice": {}, "tools": { "items": {}, "type": [ "array", "null" ] }, "top_p": { "format": "double", "type": [ "number", "null" ] }, "user": { "type": [ "string", "null" ] } }, "required": [ "model", "messages" ], "type": "object" } ], "description": "OpenAI-compatible chat completion request.\nUses `deny_unknown_fields = false` (serde default) so that SDK-specific\nfields like `stream_options`, `logprobs`, `top_logprobs`, `logit_bias`,\n`parallel_tool_calls`, etc. are silently accepted without breaking." }, "ChatCompletionResponse": { "properties": { "choices": { "items": { "$ref": "#/components/schemas/ChatCompletionChoice" }, "type": "array" }, "created": { "format": "int64", "type": "integer" }, "id": { "type": "string" }, "model": { "type": "string" }, "object": { "type": "string" }, "usage": { "oneOf": [ { "$ref": "#/components/schemas/UsageInfo" }, { "type": "null" } ] } }, "required": [ "id", "object", "created", "model", "choices" ], "type": "object" }, "ChatFailureResponse": { "properties": { "code": { "type": "string" }, "detail": { "type": "string" }, "retryable": { "type": "boolean" }, "title": { "type": "string" } }, "required": [ "code", "title", "detail", "retryable" ], "type": "object" }, "ChatMessage": { "properties": { "content": { "oneOf": [ { "$ref": "#/components/schemas/MessageContent" }, { "type": "null" } ] }, "name": { "type": [ "string", "null" ] }, "role": { "type": "string" }, "tool_call_id": { "type": [ "string", "null" ] }, "tool_calls": { "items": {}, "type": [ "array", "null" ] } }, "required": [ "role" ], "type": "object" }, "ChatOperation": { "description": "One operation the chat started, with its current state.", "properties": { "deployment_id": { "format": "int32", "type": [ "integer", "null" ] }, "detail": { "description": "Where: the project and environment, or the S3 source.", "type": [ "string", "null" ] }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "error": { "description": "Why it failed, when the record says.", "type": [ "string", "null" ] }, "finished_at": { "format": "date-time", "type": [ "string", "null" ] }, "href": { "description": "Console path that shows the operation.", "type": [ "string", "null" ] }, "id": { "format": "int64", "type": "integer" }, "kind": { "$ref": "#/components/schemas/ChatOperationKind" }, "operation_id": { "description": "What started it: the API operation id, or `temps_deploy_sandbox_source`.", "type": "string" }, "project_id": { "format": "int32", "type": [ "integer", "null" ] }, "service_id": { "format": "int32", "type": [ "integer", "null" ] }, "started_at": { "description": "ISO 8601 time the chat started it.", "format": "date-time", "type": "string" }, "state": { "$ref": "#/components/schemas/ChatOperationState" }, "status": { "description": "The record's own status, e.g. `running` or `completed`.", "type": [ "string", "null" ] }, "title": { "description": "e.g. \"Deployment #41\", \"Backup of orders-db\".", "type": "string" } }, "required": [ "id", "kind", "operation_id", "title", "state", "started_at" ], "type": "object" }, "ChatOperationKind": { "description": "What a chat started.", "enum": [ "deployment", "backup", "service_backup", "restore" ], "type": "string" }, "ChatOperationState": { "description": "Where an operation is, in the same words for every kind.", "enum": [ "running", "succeeded", "failed", "cancelled", "not_started" ], "type": "string" }, "ChatOperationsResponse": { "description": "The operations a chat started, newest first.", "properties": { "operations": { "items": { "$ref": "#/components/schemas/ChatOperation" }, "type": "array" }, "running": { "description": "How many of them are still running.", "minimum": 0, "type": "integer" }, "truncated": { "description": "True when the chat started more operations than this response covers.", "type": "boolean" } }, "required": [ "operations", "running", "truncated" ], "type": "object" }, "ChatPreview": { "description": "How to reach a page served from the chat's sandbox.", "properties": { "port": { "description": "The port the assistant last confirmed serving a page, if it has.", "format": "int32", "minimum": 0, "type": [ "integer", "null" ] }, "url": { "description": "Address of that page, served by Temps.", "type": [ "string", "null" ] }, "url_template": { "description": "Address for any port: `{port}` stands for the port number.", "type": "string" } }, "required": [ "url_template" ], "type": "object" }, "ChatReadinessResponse": { "description": "What still has to be true before an AI chat can run a turn in this project.", "properties": { "ai_configured": { "description": "An AI provider is configured on this instance. Fixed in\nSettings → AI Providers; instance-wide, not per project.", "type": "boolean" } }, "required": [ "ai_configured" ], "type": "object" }, "ChatResource": { "description": "One piece the chat made, with its current state.", "properties": { "created_at": { "description": "ISO 8601 time the piece was made (or, for a sandbox, linked).", "format": "date-time", "type": "string" }, "detail": { "description": "What it is: the framework preset, the service type, the repository's\nvisibility, the sandbox backend.", "type": [ "string", "null" ] }, "id": { "description": "Numeric id for projects and services, `owner/name` for repositories,\npublic id (`sbx_…`) for sandboxes.", "type": "string" }, "kind": { "$ref": "#/components/schemas/ChatResourceKind" }, "name": { "type": "string" }, "slug": { "description": "Project slug, for opening the project.", "type": [ "string", "null" ] }, "status": { "description": "Current status, for services and sandboxes.", "type": [ "string", "null" ] }, "url": { "description": "Where to see it outside Temps: a repository's web page.", "type": [ "string", "null" ] } }, "required": [ "kind", "id", "name", "created_at" ], "type": "object" }, "ChatResourceKind": { "description": "What kind of piece a chat made.", "enum": [ "project", "service", "repository", "sandbox" ], "type": "string" }, "ChatResourcesResponse": { "description": "Everything the chat made, newest first.", "properties": { "resources": { "items": { "$ref": "#/components/schemas/ChatResource" }, "type": "array" }, "truncated": { "description": "True when the chat made more pieces than this response covers.", "type": "boolean" } }, "required": [ "resources", "truncated" ], "type": "object" }, "ChatSandboxRuntime": { "description": "Whether a linked sandbox's compute is running.", "enum": [ "running", "asleep" ], "type": "string" }, "ChatSandboxStatus": { "description": "What a chat can do with a sandbox, and the one it is linked to.", "properties": { "configured": { "description": "Whether this chat can use a sandbox at all.", "type": "boolean" }, "connected_projects": { "description": "Projects whose services the linked sandbox is connected to: its\ncommands run with credentials for a database of its own on each.", "items": { "format": "int32", "type": "integer" }, "type": "array" }, "connected_services": { "description": "Every service the linked sandbox is connected to, whether or not it was\nconnected through a project.", "items": { "$ref": "#/components/schemas/ConnectedService" }, "type": "array" }, "linked": { "oneOf": [ { "$ref": "#/components/schemas/SandboxLink", "description": "The sandbox currently linked to the chat." }, { "type": "null" } ] }, "offered": { "description": "True once the assistant has asked the user to link a sandbox.", "type": "boolean" }, "preview": { "oneOf": [ { "$ref": "#/components/schemas/ChatPreview", "description": "Where the linked sandbox's apps are served, for the Preview tab." }, { "type": "null" } ] }, "reason": { "description": "Why it cannot, when `configured` is false.", "type": [ "string", "null" ] }, "runtime": { "oneOf": [ { "$ref": "#/components/schemas/ChatSandboxRuntime", "description": "Whether the linked sandbox's compute is up. `None` when nothing is\nlinked or the sandbox could not be read." }, { "type": "null" } ] }, "setup_path": { "description": "Console path where the user can fix it, when there is one.", "type": [ "string", "null" ] } }, "required": [ "configured", "offered", "connected_projects", "connected_services" ], "type": "object" }, "ChatSuggestionSettings": { "description": "A chat's next-step suggestion setting.", "properties": { "available": { "description": "Whether this chat can have suggestions at all. Only the assistant chat\ncan; the other fields still describe the setting for other chats.", "type": "boolean" }, "chat_mode": { "oneOf": [ { "$ref": "#/components/schemas/SuggestionMode", "description": "The chat's own setting, when it has one." }, { "type": "null" } ] }, "default_mode": { "$ref": "#/components/schemas/SuggestionMode", "description": "The user's default, which applies when `chat_mode` is unset." }, "mode": { "$ref": "#/components/schemas/SuggestionMode", "description": "What happens after each answer in this chat." }, "source": { "$ref": "#/components/schemas/SuggestionModeSource", "description": "Whether `mode` is the chat's own setting or the user's default." } }, "required": [ "available", "mode", "source", "default_mode" ], "type": "object" }, "ChatWatch": { "properties": { "blocked": { "type": "boolean" }, "delivered": { "format": "int64", "type": "integer" }, "id": { "type": "string" }, "label": { "type": [ "string", "null" ] }, "last_delivery": { "format": "date-time", "type": [ "string", "null" ] }, "mode": { "type": "string" }, "paused": { "type": "boolean" }, "plugin": { "type": "string" }, "source": { "type": "string" }, "subject": { "type": "string" }, "where": {} }, "required": [ "where", "id", "plugin", "source", "subject", "mode", "paused", "delivered", "blocked" ], "type": "object" }, "ChatWorkspace": { "description": "The workspace a chat is in.", "properties": { "description": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "public_id": { "description": "Public id of the workspace (`app_…`).", "type": "string" } }, "required": [ "public_id", "name" ], "type": "object" }, "ChatWorkspaceResponse": { "description": "A chat's workspace, and the chats in it.", "properties": { "chats": { "description": "The workspace's chats, most recently active first, at most 20.", "items": { "$ref": "#/components/schemas/WorkspaceChatSummary" }, "type": "array" }, "joinable": { "description": "Whether this chat can be put in a workspace. Chats about one project\ncannot: the project is their scope.", "type": "boolean" }, "reason": { "description": "Why the chat cannot be in a workspace, when `joinable` is false.", "type": [ "string", "null" ] }, "workspace": { "oneOf": [ { "$ref": "#/components/schemas/ChatWorkspace", "description": "`None` when the chat is not in a workspace." }, { "type": "null" } ] } }, "required": [ "chats", "joinable" ], "type": "object" }, "CheckKind": { "description": "What a stored check does: HTTP checks call an issuer; local checks read\nexpiring items (certificates, SSH certificates, OpenPGP keys, kubeconfigs,\nJWTs) on this host and never transmit the value.", "enum": [ "http", "local" ], "type": "string" }, "CheckRequest": { "description": "The secret part of an HTTP check: headers and body, encrypted at rest.", "properties": { "body": { "type": [ "string", "null" ] }, "headers": { "items": { "$ref": "#/components/schemas/CheckRequestHeader" }, "type": "array" } }, "type": "object" }, "CheckRequestHeader": { "description": "One HTTP request header. The value is stored encrypted and never\nreturned.", "properties": { "name": { "type": "string" }, "value": { "type": "string" } }, "required": [ "name", "value" ], "type": "object" }, "CheckSpec": { "description": "A target monitor's check, one shape per kind.", "oneOf": [ { "allOf": [ { "$ref": "#/components/schemas/HttpCheck" }, { "properties": { "kind": { "enum": [ "http" ], "type": "string" } }, "required": [ "kind" ], "type": "object" } ] }, { "allOf": [ { "$ref": "#/components/schemas/TcpCheck" }, { "properties": { "kind": { "enum": [ "tcp" ], "type": "string" } }, "required": [ "kind" ], "type": "object" } ] }, { "allOf": [ { "$ref": "#/components/schemas/TlsCheck" }, { "properties": { "kind": { "enum": [ "tls" ], "type": "string" } }, "required": [ "kind" ], "type": "object" } ] }, { "allOf": [ { "$ref": "#/components/schemas/DnsCheck" }, { "properties": { "kind": { "enum": [ "dns" ], "type": "string" } }, "required": [ "kind" ], "type": "object" } ] } ] }, "CheckStatus": { "enum": [ "healthy", "warning", "error", "unknown" ], "type": "string" }, "ChildBackupEntryResponse": { "description": "A single child backup entry in the `GET /backups/{id}/children` response.\n\nEach entry corresponds to one `external_service_backups` row joined with\n`external_services`, providing service metadata without a second request.", "properties": { "backup_type": { "description": "Backup variant (e.g. \"full\", \"incremental\").", "type": "string" }, "compression_type": { "description": "Compression algorithm used (e.g. \"gzip\", \"lz4\").", "type": "string" }, "error_message": { "description": "Engine-reported error message when `state = \"failed\"`.", "type": [ "string", "null" ] }, "finished_at": { "description": "When the child backup finished, if known.", "example": "2025-01-15T14:35:00.456Z", "type": [ "string", "null" ] }, "id": { "description": "Row ID from `external_service_backups`.", "format": "int32", "type": "integer" }, "s3_location": { "description": "Object key or `s3://` URL where the backup data lives.", "type": "string" }, "service_id": { "description": "FK to `external_services.id`.", "format": "int32", "type": "integer" }, "service_name": { "description": "Human-readable name of the external service (e.g. \"redis-prod\").", "type": "string" }, "service_type": { "description": "Service type string (e.g. \"postgres\", \"redis\", \"mongodb\", \"s3\").", "example": "postgres", "type": "string" }, "size_bytes": { "description": "Size of the child backup in bytes, if available.", "format": "int64", "type": [ "integer", "null" ] }, "started_at": { "description": "When the child backup started (RFC 3339).", "example": "2025-01-15T14:30:00.123Z", "type": "string" }, "state": { "description": "Current state: \"pending\" | \"running\" | \"completed\" | \"failed\".", "type": "string" } }, "required": [ "id", "service_id", "service_name", "service_type", "state", "backup_type", "started_at", "s3_location", "compression_type" ], "type": "object" }, "ChildBackupListResponse": { "description": "Response body for `GET /backups/{id}/children`.\n\nReturns an empty `children` list (not 404) when the parent backup has no\nchild records (e.g. control-plane backups).", "properties": { "children": { "description": "Zero or more child backup entries ordered by `external_service_backups.id` ASC.", "items": { "$ref": "#/components/schemas/ChildBackupEntryResponse" }, "type": "array" } }, "required": [ "children" ], "type": "object" }, "CiExecutorSettings": { "properties": { "control_plane_url": { "type": "string" }, "dispatch_token": { "oneOf": [ { "$ref": "#/components/schemas/SecretString", "description": "Write-only. Stored encrypted; omitted by the status endpoint." }, { "type": "null" } ], "writeOnly": true }, "git_ref": { "type": "string" }, "identity": { "$ref": "#/components/schemas/TrustedIdentityIssuer" }, "image_repository": { "type": "string" }, "limits": { "$ref": "#/components/schemas/BuildLimits" }, "organization": { "type": "boolean" }, "owner": { "type": "string" }, "registry_credentials": { "oneOf": [ { "$ref": "#/components/schemas/RemotePullCredentials", "description": "Repository-scoped push/pull credentials. Never included in status." }, { "type": "null" } ], "writeOnly": true }, "repository": { "type": "string" }, "runner_archive_sha256": { "type": "string" }, "runner_archive_url": { "description": "Pinned release archive used by the generated CI shim.", "type": "string" } }, "required": [ "owner", "repository", "organization", "git_ref", "control_plane_url", "runner_archive_url", "runner_archive_sha256", "identity", "image_repository", "limits" ], "type": "object" }, "CiExecutorStatus": { "properties": { "configured": { "type": "boolean" }, "reason": { "type": [ "string", "null" ] }, "settings": { "oneOf": [ { "$ref": "#/components/schemas/CiExecutorSettings" }, { "type": "null" } ] }, "setup_path": { "type": "string" } }, "required": [ "configured", "setup_path" ], "type": "object" }, "CleanupExpiredBackupsRequest": { "properties": { "expected_backup_ids": { "description": "Exact candidates returned by the dry run. Execution fails if the\nretention selection has changed since preview.", "items": { "type": "string" }, "type": [ "array", "null" ] } }, "type": "object" }, "CliDeviceApproveRequest": { "properties": { "user_code": { "type": "string" } }, "required": [ "user_code" ], "type": "object" }, "CliDeviceApproveResponse": { "properties": { "status": { "type": "string" }, "user_code": { "type": "string" } }, "required": [ "user_code", "status" ], "type": "object" }, "CliDeviceLookupResponse": { "properties": { "client_name": { "type": [ "string", "null" ] }, "expires_at": { "format": "date-time", "type": "string" }, "requested_ip": { "type": [ "string", "null" ] }, "status": { "description": "`pending` | `approved` | `denied` | `expired`.", "type": "string" }, "user_code": { "type": "string" } }, "required": [ "user_code", "status", "expires_at" ], "type": "object" }, "CliDevicePollRequest": { "properties": { "device_code": { "type": "string" } }, "required": [ "device_code" ], "type": "object" }, "CliDevicePollResponse": { "oneOf": [ { "description": "Still waiting on the user to approve in the browser.", "properties": { "status": { "enum": [ "authorization_pending" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, { "description": "CLI is polling faster than the server-suggested interval.", "properties": { "status": { "enum": [ "slow_down" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, { "description": "User denied the request in the browser.", "properties": { "status": { "enum": [ "access_denied" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, { "description": "The session has expired without approval.", "properties": { "status": { "enum": [ "expired_token" ], "type": "string" } }, "required": [ "status" ], "type": "object" }, { "description": "The session was approved; this is the only response that carries\nthe API key. The key is returned exactly once and then cleared\nfrom the session row.", "properties": { "api_key": { "type": "string" }, "email": { "type": "string" }, "expires_at": { "format": "date-time", "type": [ "string", "null" ] }, "key_prefix": { "type": "string" }, "role": { "type": "string" }, "status": { "enum": [ "approved" ], "type": "string" }, "user_id": { "format": "int32", "type": "integer" } }, "required": [ "user_id", "email", "role", "api_key", "key_prefix", "status" ], "type": "object" } ] }, "CliDeviceStartRequest": { "properties": { "client_name": { "description": "Friendly hostname / client identifier shown in the browser approval\nscreen. Sanitized before display.", "example": "dviejo-mac.local", "type": [ "string", "null" ] } }, "type": "object" }, "CliDeviceStartResponse": { "properties": { "device_code": { "description": "Opaque secret the CLI polls with. Never display to a human.", "type": "string" }, "expires_in": { "description": "Seconds until the device_code expires.", "format": "int64", "type": "integer" }, "interval": { "description": "Suggested polling interval, in seconds.", "format": "int64", "type": "integer" }, "user_code": { "description": "Short human-readable code the user types into the browser.", "example": "ABCD-1234", "type": "string" }, "verification_uri": { "description": "Base verification URL — the CLI may display this when the\npre-filled URL is too long to be useful.", "example": "https://temps.example.com/cli-login", "type": "string" }, "verification_uri_complete": { "description": "`verification_uri` with `user_code` pre-filled. Open this directly.", "example": "https://temps.example.com/cli-login/ABCD-1234", "type": "string" } }, "required": [ "device_code", "user_code", "verification_uri", "verification_uri_complete", "expires_in", "interval" ], "type": "object" }, "CliLoginRequest": { "properties": { "password": { "type": "string" }, "username": { "type": "string" } }, "required": [ "username", "password" ], "type": "object" }, "ClickHouseCompression": { "description": "Wire compression used on the HTTP connection to the instance's ClickHouse\nserver.\n\nThe `clickhouse` client asks for compressed responses (`compress=1`) and\ndecodes exactly one codec, LZ4, but it never says which codec it wants, so\nit silently depends on the server's `network_compression_method` default.\nClickHouse 26.9 changed that default to ZSTD, after which every response\nthat carries rows fails with `decompression error: incorrect magic\nnumber`. Temps therefore makes the choice itself and never leaves it to the\nserver default.", "enum": [ "lz4", "none" ], "type": "string" }, "ClickHouseConnectionState": { "description": "Where the connection to the instance's ClickHouse server stands.", "enum": [ "not_configured", "not_checked", "reachable", "failing" ], "type": "string" }, "ClickHouseConnectionStatus": { "description": "Result of the ClickHouse startup/background probe. Carries no credentials:\n`host` is `host[:port]` only.", "properties": { "database": { "type": [ "string", "null" ] }, "detail": { "description": "Full operator-facing description of the failure.", "type": [ "string", "null" ] }, "failure_kind": { "oneOf": [ { "$ref": "#/components/schemas/ClickHouseFailureKind", "description": "Set when `state` is `failing`." }, { "type": "null" } ] }, "host": { "description": "`host[:port]` of the configured server.", "type": [ "string", "null" ] }, "last_checked_at": { "description": "When the last probe finished (ISO 8601, `Z`).", "type": [ "string", "null" ] }, "observed_compression_method": { "description": "For decode failures: the compression method byte seen on the wire,\ne.g. `zstd (0x90)`.", "type": [ "string", "null" ] }, "remedy": { "description": "What to do about the failure, when there is a known remedy.", "type": [ "string", "null" ] }, "server_version": { "description": "Server version from the last successful probe, e.g. `26.9.17`.", "type": [ "string", "null" ] }, "state": { "$ref": "#/components/schemas/ClickHouseConnectionState" } }, "required": [ "state" ], "type": "object" }, "ClickHouseFailureKind": { "description": "Why the last ClickHouse probe failed.", "enum": [ "decode", "unreachable", "server", "other" ], "type": "string" }, "ClickHouseSettings": { "description": "Settings for the connection to the instance's ClickHouse server.\n\nThe connection itself (URL, database, user, password) is bootstrap\nconfiguration in `TEMPS_CLICKHOUSE_*`; only behaviour an operator may need\nto change at runtime lives here.", "properties": { "compression": { "$ref": "#/components/schemas/ClickHouseCompression", "default": "lz4", "description": "Wire compression for query responses. See [`ClickHouseCompression`]." } }, "type": "object" }, "ClickHouseSettingsResponse": { "description": "ClickHouse wire compression and connection state, as the settings page\nneeds them. Not a credential holder: the connection string is never echoed.", "properties": { "available_compressions": { "description": "The modes that can be chosen.", "items": { "$ref": "#/components/schemas/ClickHouseCompression" }, "type": "array" }, "compression": { "$ref": "#/components/schemas/ClickHouseCompression", "description": "The stored mode: what the next start will use." }, "configured": { "description": "Whether the instance has a ClickHouse connection\n(`TEMPS_CLICKHOUSE_*`). When `false` the compression setting is stored\nbut has nothing to apply to yet.", "type": "boolean" }, "connection": { "$ref": "#/components/schemas/ClickHouseConnectionStatus", "description": "Result of the last connection probe." }, "effective_compression": { "oneOf": [ { "$ref": "#/components/schemas/ClickHouseCompression", "description": "The mode the running process built its ClickHouse clients with.\n`None` when ClickHouse is not configured." }, { "type": "null" } ] }, "reason": { "description": "Why ClickHouse is unavailable, when `configured` is `false`.", "type": [ "string", "null" ] }, "restart_required": { "description": "True when `compression` differs from `effective_compression`: the\nstored change takes effect on the next restart.", "type": "boolean" }, "setup_path": { "description": "Console path where the operator manages this, when `configured` is\n`false` or the probe is failing.", "type": [ "string", "null" ] } }, "required": [ "configured", "compression", "restart_required", "available_compressions", "connection" ], "type": "object" }, "ClientOutcome": { "properties": { "bucket": { "type": "string" }, "category": { "type": "string" }, "deployment_id": { "format": "int32", "type": [ "integer", "null" ] }, "environment_id": { "format": "int32", "type": [ "integer", "null" ] }, "first_reported_at": { "type": "string" }, "id": { "format": "int64", "type": "integer" }, "last_received_at": { "type": "string" }, "last_reported_at": { "type": "string" }, "quantity": { "description": "Decimal string avoids rounding large integer totals in JavaScript.", "type": "string" }, "reason": { "type": "string" }, "unit": { "type": "string" } }, "required": [ "id", "bucket", "reason", "category", "unit", "quantity", "first_reported_at", "last_reported_at", "last_received_at" ], "type": "object" }, "ClientOutcomePage": { "properties": { "approximate": { "type": "boolean" }, "items": { "items": { "$ref": "#/components/schemas/ClientOutcome" }, "type": "array" }, "retention_days": { "format": "int32", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "type": "integer" } }, "required": [ "items", "total", "retention_days", "approximate" ], "type": "object" }, "ClientSurface": { "enum": [ "browser", "mobile", "cli", "third_party" ], "type": "string" }, "CloseIncidentRequest": { "properties": { "decision": { "description": "`merged` (you merged the pull request), `applied` (you applied the\npatch) or `rejected`.", "type": "string" } }, "required": [ "decision" ], "type": "object" }, "CloudAiCapability": { "properties": { "configured": { "type": "boolean" }, "model": { "type": [ "string", "null" ] }, "reason": { "type": [ "string", "null" ] }, "setup_path": { "type": "string" } }, "required": [ "configured", "setup_path" ], "type": "object" }, "CloudAnalyticsWriteMode": { "description": "Per-project destination for analytics and metrics writes (ADR-043 §1).", "enum": [ "local", "cloud" ], "type": "string" }, "CloudBackfillStatusResponse": { "properties": { "backfill_available": { "description": "Whether a backfill would be accepted right now. False means the project\nis still at `metered` fidelity.", "type": "boolean" }, "command": { "description": "The exact command an operator should run. Always present, in every\nstate, so the capability is discoverable from the Console even though\nthe Console deliberately cannot trigger it.", "type": "string" }, "completed_at": { "format": "date-time", "type": [ "string", "null" ] }, "fidelity": { "$ref": "#/components/schemas/CloudTelemetryFidelity", "description": "Current per-project egress fidelity. A `metered` project cannot be\nbackfilled at all — the CLI refuses — so the client must be able to\nrender \"not set up\" rather than \"not started\"." }, "last_error": { "description": "Reason the last run stopped, when `status` is `failed`. Verbatim, but\nlength-bounded: it originates as raw driver/server text and is readable\nby every project member with `OtelRead`, not only whoever ran the\ncommand.", "type": [ "string", "null" ] }, "percent_complete": { "description": "`spans_processed / spans_total`, clamped to 0–100. `None` when the total\nis unknown or zero — an empty window is not \"0% done\".", "format": "double", "type": [ "number", "null" ] }, "project_id": { "format": "int32", "type": "integer" }, "setup_path": { "description": "Where to go to raise fidelity, when `backfill_available` is false.", "type": [ "string", "null" ] }, "spans_processed": { "format": "int64", "type": "integer" }, "spans_total": { "format": "int64", "type": "integer" }, "started_at": { "format": "date-time", "type": [ "string", "null" ] }, "status": { "$ref": "#/components/schemas/CloudTelemetryBackfillStatus", "description": "`not_started` when no backfill has ever run for this project." }, "updated_at": { "description": "Bumped on every progress write. A `running` status whose `updated_at` is\nfar in the past is a stalled run, and the client should say so instead\nof showing a spinner forever.", "format": "date-time", "type": [ "string", "null" ] }, "window_from": { "format": "date-time", "type": [ "string", "null" ] }, "window_to": { "format": "date-time", "type": [ "string", "null" ] } }, "required": [ "project_id", "status", "fidelity", "backfill_available", "spans_processed", "spans_total", "command" ], "type": "object" }, "CloudCapability": { "properties": { "configured": { "type": "boolean" }, "reason": { "type": [ "string", "null" ] }, "setup_path": { "type": "string" } }, "required": [ "configured", "setup_path" ], "type": "object" }, "CloudDeliveryGapResponse": { "description": "A stretch of span time whose spans reached this instance but were never\ndelivered to Temps Cloud (their retries were exhausted).\n\nDistinct from [`TelemetryGapWindowResponse`], which records spans refused\nat the door because the queue was full: these were accepted and queued, and\nthe loss happened later, on the way out.", "properties": { "first_span_at": { "description": "When the earliest undelivered span in this stretch reached the instance.", "format": "date-time", "type": "string" }, "gave_up_at": { "description": "When delivery of the latest span in this stretch gave up — the same\nfailure `last_error` describes.", "format": "date-time", "type": [ "string", "null" ] }, "last_error": { "description": "The instance's own bounded failure reason — never span content.", "type": [ "string", "null" ] }, "last_span_at": { "description": "When the latest one did. Traces between the two are incomplete.", "format": "date-time", "type": "string" }, "undelivered_spans": { "format": "int64", "type": "integer" } }, "required": [ "first_span_at", "last_span_at", "undelivered_spans" ], "type": "object" }, "CloudFeatureSwitchesRequest": { "properties": { "backups_enabled": { "type": [ "boolean", "null" ] }, "console_access_enabled": { "description": "Omitted switches retain their current value under the settings row lock.", "type": [ "boolean", "null" ] }, "notifications_enabled": { "type": [ "boolean", "null" ] }, "telemetry_enabled": { "type": [ "boolean", "null" ] } }, "type": "object" }, "CloudProvider": { "description": "Cloud provider detected from node metadata", "enum": [ "aws", "gcp", "azure", "hetzner", "digitalocean", "other" ], "type": "string" }, "CloudSettings": { "description": "Non-secret managed control-plane settings stored with application settings.\n\n`PartialEq` but deliberately **not** `Eq`: `telemetry_bulk_anomaly_factor` is\na float, and the total-equality contract `Eq` promises is one `f32` cannot\nkeep. Nothing compares two `CloudSettings` for equality outside this module's\nown tests, so the weaker bound costs nothing.", "properties": { "backend_url": { "default": "https://app.temps.sh", "description": "HTTPS origin used for enrollment and telemetry mirroring.", "type": "string" }, "backups_enabled": { "default": false, "description": "Explicit consent to export completed backup objects.", "type": "boolean" }, "console_access_enabled": { "default": false, "description": "Explicit operator consent to let Temps Cloud open this instance's\nconsole over the outbound relay, using managed OIDC authentication.\nDefault off for every enrollment path. Linking, including unattended\nbootstrap, never enables console access; enable it explicitly in\nSettings > Temps Cloud or with `temps cloud console-access enable`.", "type": "boolean" }, "notifications_enabled": { "default": false, "description": "Explicit consent to send notifications through managed providers.", "type": "boolean" }, "telemetry_bulk_anomaly_factor": { "default": null, "description": "ADR-042 §6.3: how far a project's shipped bytes may exceed its pre-send\nestimate before the bulk activation stops that project.\n\n`None` — the default — resolves to\n[`DEFAULT_CLOUD_TELEMETRY_BULK_ANOMALY_FACTOR`]. The guard exists because\nan estimate that is wrong by an order of magnitude means a bug, and *a\nbug that costs money should stop* rather than run away with a customer's\negress spend on a path that has no human confirm behind it.\n\nAn operator setting on the singleton `settings` row rather than an\nenvironment variable, per CLAUDE.md: the right multiple depends on how\nheterogeneous that instance's spans actually are, which only the operator\nrunning it can know, and they must be able to widen it — or narrow it —\nwithout restarting the binary mid-activation.\n\nBelow `1.0` every project would pause on its first chunk, and above\n[`MAX_CLOUD_TELEMETRY_BULK_ANOMALY_FACTOR`] the guard stops being a\ntuning knob and becomes an off switch. The settings write path rejects\nvalues outside that range, and the effective value is clamped on read\nbesides; see [`CloudSettings::effective_bulk_anomaly_factor`].\n\nThe schema bounds below are documentation for a client; they are not\nwhat enforces this. The server validates the range on write.", "example": 5, "format": "float", "maximum": 50, "minimum": 1, "type": [ "number", "null" ] }, "telemetry_bulk_rate_limit_spans_per_sec": { "default": null, "description": "ADR-042 §3: optional throttle, in spans per second, on a **bulk Cloud\ntelemetry activation** backfill.\n\n`None` — the default — is unthrottled, which is what \"activate now\"\nmeans and is right for an instance that is idle or being cut over\ndeliberately. An operator running an activation against a live instance\ncan set a ceiling so the backfill stops competing with their own read IO\nand with the Cloud ingest allowance.\n\nAn operator setting on the singleton `settings` row rather than an\nenvironment variable, per CLAUDE.md, so it can be changed **while a job\nis running** — which is exactly when an operator discovers they need it,\nand exactly when restarting the binary would mean stopping an activation\nthey have already paid for. The worker re-reads it each time it picks up\na project, so a change takes effect at the next project boundary rather\nthan at the next restart.\n\nOnly the bulk worker reads this. The live Cloud-primary write path is a\nprimary path and is never throttled; the offline\n`temps backfill cloud-telemetry` tool keeps its own\n`--rate-limit-spans-per-sec` flag, because it runs in a different\nprocess with the server stopped.", "example": 5000, "format": "int32", "minimum": 1, "type": [ "integer", "null" ] }, "telemetry_consent_bootstrapped": { "default": false, "description": "Set once Temps Cloud's bootstrap file has applied its telemetry-export\nconsent (ADR-045 Amendment 2). Cloud drops that file on every upgrade\nof a hosted plane; this makes the consent apply exactly once, so an\noperator who later turns telemetry off is not overridden by the next\nupgrade. Never set on a self-hosted instance.", "type": "boolean" }, "telemetry_enabled": { "default": false, "description": "Explicit consent to mirror locally stored telemetry.", "type": "boolean" }, "telemetry_outbox_max_bytes": { "default": 536870912, "description": "ADR-041 §3d: hard ceiling, in bytes, on the durable span outbox that\nbacks Cloud-primary telemetry writes.\n\nAn operator setting on the singleton `settings` row rather than an\nenvironment variable, per CLAUDE.md, so it can be raised at runtime by\nthe operator watching a queue fill up — which is exactly when they need\nto change it and exactly when restarting the binary is the worst\navailable option.\n\nExpressed in **bytes and not rows**: the reference deployment is\n3 vCPU / 4 GB, and a row count says nothing about disk on a table whose\nrows are serialized spans of wildly varying size. When the queue reaches\nthis size the instance stops accepting new spans for Cloud-primary\nprojects and records a gap window with a start, an end and a count —\nsee [`DEFAULT_CLOUD_TELEMETRY_OUTBOX_MAX_BYTES`] for how the default is\nsized and what it buys.", "example": 536870912, "format": "int64", "minimum": 1048576, "type": "integer" } }, "type": "object" }, "CloudStatus": { "properties": { "account_email": { "type": [ "string", "null" ] }, "backend_url": { "type": "string" }, "backups_enabled": { "type": "boolean" }, "console_access_enabled": { "description": "ADR-045 §5: whether this instance currently permits Temps Cloud to\nopen its console over the console-proxy tunnel.", "type": "boolean" }, "health": { "type": "string" }, "health_message": { "type": "string" }, "instance_id": { "type": [ "string", "null" ] }, "managed_backup_setup": { "$ref": "#/components/schemas/ManagedBackupSetup" }, "notifications_enabled": { "type": "boolean" }, "spooled_spans": { "minimum": 0, "type": "integer" }, "status": { "type": "string" }, "status_message": { "type": "string" }, "telemetry_enabled": { "type": "boolean" } }, "required": [ "status", "status_message", "health", "health_message", "spooled_spans", "backend_url", "telemetry_enabled", "backups_enabled", "notifications_enabled", "console_access_enabled", "managed_backup_setup" ], "type": "object" }, "CloudTelemetryBackfillStatus": { "description": "Lifecycle of the most recent backfill run for a project.", "enum": [ "not_started", "running", "completed", "failed" ], "type": "string" }, "CloudTelemetryFidelity": { "description": "Per-project fidelity tier for the optional Temps Cloud telemetry mirror.", "enum": [ "metered", "queryable" ], "type": "string" }, "CloudTelemetryWriteMode": { "description": "Per-project destination for span writes.", "enum": [ "local", "cloud" ], "type": "string" }, "CloudTelemetryWriteStatusResponse": { "description": "Instance-wide aggregate for the Cloud settings page.", "properties": { "can_decommission_local_span_store": { "description": "Whether the console should offer decommission guidance. True only when\n`local_span_store_required` is false — the ADR is explicit that the\nadvice must not appear before then.", "type": "boolean" }, "cloud_primary_projects": { "format": "int64", "minimum": 0, "type": "integer" }, "configured": { "description": "Whether Cloud-primary writes can be used at all on this instance.", "type": "boolean" }, "dead_lettered_rows": { "description": "Rows that exhausted their retries. Never swept automatically; an\noperator has to see them.", "format": "int64", "type": "integer" }, "gap_windows": { "items": { "$ref": "#/components/schemas/TelemetryGapWindowResponse" }, "type": "array" }, "local_history_until": { "format": "date-time", "type": [ "string", "null" ] }, "local_mode_projects": { "format": "int64", "minimum": 0, "type": "integer" }, "local_span_store_reason": { "type": [ "string", "null" ] }, "local_span_store_required": { "description": "The derived decommission signal. `true` means the operator gets **zero**\nresource win from removing their local span store, whatever the write\nmodes say.", "type": "boolean" }, "oldest_unshipped_age_secs": { "description": "Age of the oldest unshipped span, in seconds. `None` when the queue is\nempty — different from zero, and it must not render as zero.", "format": "int64", "type": [ "integer", "null" ] }, "queue_bytes": { "format": "int64", "type": "integer" }, "queue_depth": { "description": "Spans queued for Cloud across all projects.", "format": "int64", "type": "integer" }, "queue_max_bytes": { "description": "The operator-set ceiling, so the depth above is readable against\nsomething rather than being a number with no scale.", "format": "int64", "minimum": 0, "type": "integer" }, "reason": { "type": [ "string", "null" ] }, "setup_path": { "type": [ "string", "null" ] }, "write_suspension": { "description": "Set while Cloud-primary writes are falling back to local storage.", "type": [ "string", "null" ] } }, "required": [ "configured", "cloud_primary_projects", "local_mode_projects", "local_span_store_required", "queue_depth", "queue_bytes", "queue_max_bytes", "dead_lettered_rows", "gap_windows", "can_decommission_local_span_store" ], "type": "object" }, "CloudflareConfig": { "description": "Configuration for a Cloudflare Email Sending notification provider.\n\nNotifications are delivered through Cloudflare's transactional Email Sending\nAPI. Only the account, token, sender and recipients are configured here —\nsubject and body are derived from each notification.\nRequest-side config. Not `Serialize`: `api_token` is a `SecretString`; use\n[`CloudflareConfig::into_stored_value`].", "properties": { "account_id": { "description": "Cloudflare account id that owns the Email Sending configuration.", "example": "023e105f4ecef8ad9ca31a8372d0c353", "type": "string" }, "api_token": { "$ref": "#/components/schemas/SecretString", "description": "Cloudflare API token with the Email Sending permission. Encrypted at\nrest and masked in normal API responses." }, "from_address": { "description": "Verified sender address (must belong to a domain enabled for Cloudflare\nEmail Sending).", "example": "welcome@infracf.example.com", "type": "string" }, "from_name": { "description": "Optional human-friendly sender name shown in the recipient's inbox.", "type": [ "string", "null" ] }, "to_addresses": { "description": "Recipients that should receive the notification.", "items": { "type": "string" }, "type": "array" } }, "required": [ "account_id", "api_token", "from_address", "to_addresses" ], "type": "object" }, "CloudflareProjectCapability": { "description": "Cloudflare availability and the default used by future project creation.", "properties": { "bunny_configured": { "type": "boolean" }, "bunny_default_enabled": { "type": "boolean" }, "bunny_reason": { "type": [ "string", "null" ] }, "configured": { "type": "boolean" }, "default_enabled": { "type": "boolean" }, "reason": { "type": [ "string", "null" ] }, "setup_path": { "type": [ "string", "null" ] } }, "required": [ "configured", "default_enabled", "bunny_configured", "bunny_default_enabled" ], "type": "object" }, "ClusterCapacity": { "description": "Total cluster capacity (sum of node allocatable resources)", "properties": { "cpu_millis": { "description": "Total allocatable CPU in millicores", "format": "int64", "type": "integer" }, "memory_mb": { "description": "Total allocatable memory in MB", "format": "int64", "type": "integer" }, "node_count": { "description": "Number of nodes", "minimum": 0, "type": "integer" } }, "required": [ "node_count", "cpu_millis", "memory_mb" ], "type": "object" }, "ClusterDnsResolversResponse": { "description": "`GET /cluster/dns/resolvers`.", "properties": { "cluster_dns_enabled": { "type": "boolean" }, "open_alerts": { "items": { "$ref": "#/components/schemas/DnsAlertEntry" }, "type": "array" }, "report_interval_secs": { "description": "How often resolvers report, in seconds.", "format": "int64", "minimum": 0, "type": "integer" }, "resolvers": { "description": "Control plane first, then workers by id.", "items": { "$ref": "#/components/schemas/DnsResolverEntry" }, "type": "array" }, "zone_record_count": { "description": "Records in the zone (`service_endpoints`).", "format": "int64", "type": "integer" } }, "required": [ "cluster_dns_enabled", "zone_record_count", "report_interval_secs", "resolvers", "open_alerts" ], "type": "object" }, "ClusterDnsSettings": { "description": "Cluster-DNS resolver settings (ADR-024, experimental beta).\n\nWhen `enabled`, the Temps control plane starts a Hickory DNS resolver and\ninjects it as the first nameserver into every deployed container via\n`HostConfig.Dns` — giving containers the ability to resolve `*.temps.local`\nFQDNs for service-to-service communication. Worker nodes pick this flag up\nfrom the `/api/internal/nodes/{id}/network/peers` wire response and gate\ntheir own per-node resolver the same way.\n\n**Default: `false` (disabled).**\n\nWhy disabled by default: a production incident showed that when the injected\nHickory resolver was slow or transiently unresponsive for a non-`*.temps.local`\n(external) hostname, glibc's resolver cycled through all three nameservers\n(`172.20.0.1`, `1.1.1.1`, `8.8.8.8`) at ~5 s timeout × 2 attempts each,\ncausing 22–27 s delays for outbound TCP connections. Disabling the injection\nrestores Docker's embedded DNS as the sole resolver, eliminating that failure\nmode. Operators running single/multi-node installs that depend on\n`*.temps.local` resolution must explicitly opt in by setting `enabled: true`.\n\n`bool` defaults to `false` in Rust and JSON (`#[serde(default)]`), so the\nsafe-off behaviour is automatic for new installs and legacy settings rows.", "properties": { "enabled": { "default": false, "description": "Master switch. When `false` (default), no custom DNS is injected into\ncontainers — they use Docker's embedded DNS which forwards to the host's\nown `resolv.conf`. When `true`, the control-plane Hickory resolver is\nstarted and its bridge IP is injected as the first nameserver so\n`*.temps.local` FQDNs resolve inside containers.", "example": false, "type": "boolean" }, "operator_chosen": { "default": false, "description": "Whether an operator has ever changed `enabled` themselves. Until then,\nthe control plane turns cluster DNS on when the first worker joins,\nsince cross-node links need `*.temps.local`. Set by the server when a\nsave changes `enabled`; a client cannot clear it.", "example": false, "type": "boolean" } }, "type": "object" }, "ClusterDnsStatusResponse": { "description": "Response from `GET /api/cluster/dns/status`.", "properties": { "cluster_dns_enabled": { "description": "Whether cluster DNS is currently enabled cluster-wide\n(`AppSettings.cluster_dns.enabled`). When `false`, every node's\nper-node values below are expected to show `dns_resolver_running:\nSome(false)` (or `None` if a node has never reported).", "type": "boolean" }, "deployments_without_resolver": { "description": "Applications whose running containers were created without the\ncluster resolver, so they cannot resolve `*.temps.local` names until\nredeployed: a container's nameservers are fixed when it is created.\nEmpty while cluster DNS is off. Databases are not listed; they do not\nlook up other services by name.", "items": { "$ref": "#/components/schemas/DeploymentWithoutResolver" }, "type": "array" }, "deployments_without_resolver_error": { "description": "Set when the list above could not be computed; the rest of the\nresponse is still accurate.", "type": [ "string", "null" ] }, "name_conflicts": { "description": "Names refused because another owner holds them. Empty on a healthy\ncluster; each entry needs one side renamed or removed.", "items": { "$ref": "#/components/schemas/DnsNameConflictEntry" }, "type": "array" }, "nodes": { "items": { "$ref": "#/components/schemas/NodeDnsStatusEntry" }, "type": "array" }, "total_record_count": { "description": "Total `*.temps.local` records currently registered across the whole\ncluster (`service_endpoints` row count), independent of any single\nnode's resolver health.", "format": "int64", "type": "integer" } }, "required": [ "cluster_dns_enabled", "total_record_count", "nodes", "name_conflicts", "deployments_without_resolver" ], "type": "object" }, "ClusterHealthReportResponse": { "description": "Response body for `GET /external-services/{id}/cluster-health`.", "properties": { "checked_at": { "description": "ISO-8601 wall-clock when the report was generated.", "example": "2025-10-12T12:15:47.609192Z", "type": "string" }, "members": { "items": { "$ref": "#/components/schemas/ClusterMemberHealthResponse" }, "type": "array" }, "monitor_error": { "description": "Set when the monitor itself was unreachable. UI shows a banner.", "type": [ "string", "null" ] }, "monitor_response_ms": { "description": "Round-trip to query the monitor (ms).", "format": "int64", "type": "integer" }, "protection": { "$ref": "#/components/schemas/ClusterProtectionResponse", "description": "Whether a standby could take over if the primary failed now. A new\ncluster accepts SQL before its first standby is `secondary`; until\nthen this is `not_protected`." } }, "required": [ "checked_at", "monitor_response_ms", "members", "protection" ], "type": "object" }, "ClusterMemberHealthResponse": { "description": "One row in the cluster Members table — see `GET /external-services/{id}/cluster-health`.", "properties": { "candidate_priority": { "format": "int32", "type": "integer" }, "goal_state": { "description": "What the monitor *wants* the node to be. Differs from\n`reported_state` mid-transition (failover, demotion, etc.).", "type": "string" }, "health": { "description": "pg_auto_failover liveness signal: `1` healthy, `0` unknown\n(no recent report), `-1` unhealthy.", "format": "int32", "type": "integer" }, "nodehost": { "type": "string" }, "nodename": { "type": "string" }, "nodeport": { "format": "int32", "type": "integer" }, "replay_lag_ms": { "description": "`replay_lag` from `pg_stat_replication`, in milliseconds.", "format": "int64", "type": [ "integer", "null" ] }, "replication_quorum": { "type": "boolean" }, "reported_state": { "description": "What the node *last told the monitor* it was. Stale during outages.", "type": "string" }, "seconds_since_report": { "description": "Wall-clock seconds since the node last reported in.", "format": "int64", "type": "integer" }, "sync_state": { "description": "`sync` / `quorum` / `async` for secondaries; `null` for the primary.", "type": [ "string", "null" ] } }, "required": [ "nodename", "nodehost", "nodeport", "reported_state", "goal_state", "health", "seconds_since_report", "candidate_priority", "replication_quorum" ], "type": "object" }, "ClusterMemberRequest": { "description": "Request spec for a single cluster member.", "properties": { "node_id": { "description": "Target worker node ID. Omit or null to run on the control plane.", "format": "int32", "type": [ "integer", "null" ] }, "role": { "description": "Service-type-specific role (e.g., \"monitor\", \"primary\", \"replica\")", "example": "primary", "type": "string" } }, "required": [ "role" ], "type": "object" }, "ClusterMetricsLatestQuery": { "description": "Nodes to combine for the latest values.", "properties": { "node_ids": { "description": "Comma-separated node ids (`0` = control plane), at most 64.", "type": "string" } }, "required": [ "node_ids" ], "type": "object" }, "ClusterMetricsRangeQuery": { "description": "Query for one metric combined across several nodes.", "properties": { "end_time": { "description": "Explicit window end (ISO 8601). Must be paired with `start_time`.", "type": [ "string", "null" ] }, "metric": { "description": "Metric name, e.g. `\"proxy.requests\"`.", "type": "string" }, "node_ids": { "description": "Comma-separated node ids (`0` = control plane), at most 64.", "type": "string" }, "range": { "description": "Time window: `\"1h\"` | `\"6h\"` | `\"24h\"` | `\"7d\"`.\nIgnored when `start_time` and `end_time` are both set.", "type": "string" }, "start_time": { "description": "Explicit window start (ISO 8601). Must be paired with `end_time`.", "type": [ "string", "null" ] } }, "required": [ "metric", "node_ids" ], "type": "object" }, "ClusterNetworkChangeResponse": { "description": "`PUT /settings/cluster-network` answer.", "properties": { "reassigned": { "items": { "$ref": "#/components/schemas/ClusterNetworkReassignment" }, "type": "array" }, "status": { "$ref": "#/components/schemas/ClusterNetworkStatus" } }, "required": [ "reassigned", "status" ], "type": "object" }, "ClusterNetworkControlPlane": { "description": "The control plane's overlay.", "properties": { "compute_cidr": { "type": [ "string", "null" ] }, "overlay_ready": { "type": "boolean" }, "setup_failure": { "description": "Why its last overlay setup failed, with the fix, when it did.", "type": [ "string", "null" ] } }, "required": [ "overlay_ready" ], "type": "object" }, "ClusterNetworkIdChangeResponse": { "description": "`POST /settings/cluster-network/network-id` answer.", "properties": { "change": { "$ref": "#/components/schemas/NetworkIdChange" }, "status": { "$ref": "#/components/schemas/ClusterNetworkStatus" } }, "required": [ "change", "status" ], "type": "object" }, "ClusterNetworkNode": { "description": "One worker's view of the overlay.", "properties": { "compute_cidr": { "description": "Its subnet of the pool, if allocated.", "type": [ "string", "null" ] }, "id": { "format": "int32", "type": "integer" }, "in_use": { "description": "Whether its allocation locks the pool, and why when it does.", "type": "boolean" }, "in_use_reason": { "type": [ "string", "null" ] }, "name": { "type": "string" }, "occupied_ranges": { "description": "What the node reported it already uses outside Temps.", "items": { "$ref": "#/components/schemas/OccupiedRangeReport" }, "type": "array" }, "overlay_last_error": { "description": "Why the overlay is unavailable: the colliding range, its owner and\nthe fixes.", "type": [ "string", "null" ] }, "overlay_network_name": { "description": "The overlay network name it uses: its own when `temps join` found the\ncluster's name taken on its host, else the cluster's (ADR 059).", "type": "string" }, "overlay_remediation": { "description": "The last automatic move of its allocation, and why.", "type": [ "string", "null" ] }, "overlay_status": { "description": "`ready`, `unavailable`, or `None` when its agent never reported it.", "type": [ "string", "null" ] }, "vxlan_id_in_use": { "description": "Whether its overlay is unavailable because another VXLAN device on\nits host holds the cluster's network ID; giving the cluster its own\nnetwork ID fixes that without touching the host.", "type": "boolean" }, "vxlan_network_id": { "description": "The VXLAN network ID its agent reports it follows (ADR 062). `None`:\nits agent predates per-cluster network IDs, or never reported.", "format": "int32", "minimum": 0, "type": [ "integer", "null" ] } }, "required": [ "id", "name", "overlay_network_name", "in_use", "occupied_ranges", "vxlan_id_in_use" ], "type": "object" }, "ClusterNetworkReassignment": { "description": "A node whose allocation a change moved.", "properties": { "from": { "type": "string" }, "node_id": { "format": "int32", "type": "integer" }, "node_name": { "type": "string" }, "to": { "type": "string" } }, "required": [ "node_id", "node_name", "from", "to" ], "type": "object" }, "ClusterNetworkSettings": { "description": "Read-only cluster network state. The pool is changed through\n`PUT /settings/cluster-network` or `temps network setup-multi-node`, which\nrefuse while any allocation is in use (ADR 056). `locked` means only that\nallocations exist: allocations never applied are re-assigned by a change,\nso whether it is allowed now is `GET /settings/cluster-network`'s\n`can_change`.", "properties": { "allocation_count": { "format": "int64", "minimum": 0, "type": "integer" }, "compute_pool_cidr": { "type": "string" }, "locked": { "type": "boolean" }, "subnet_prefix_len": { "format": "int32", "minimum": 0, "type": "integer" } }, "required": [ "compute_pool_cidr", "subnet_prefix_len", "allocation_count", "locked" ], "type": "object" }, "ClusterNetworkStatus": { "description": "`GET /settings/cluster-network`.", "properties": { "can_change": { "description": "Whether `PUT` can change the pool now.", "type": "boolean" }, "can_change_network_id": { "description": "Whether `POST /settings/cluster-network/network-id` can assign a new\nnetwork ID now, and why not: the nodes that could not follow it.", "type": "boolean" }, "change_blocked_by": { "description": "Why it cannot: the members using the pool, or a control-plane setup\nin progress.", "items": { "type": "string" }, "type": "array" }, "compute_pool_cidr": { "type": "string" }, "control_plane": { "$ref": "#/components/schemas/ClusterNetworkControlPlane" }, "default_compute_pool_cidr": { "description": "What a new cluster starts with.", "type": "string" }, "mesh_enabled": { "type": "boolean" }, "mesh_pool_cidr": { "description": "The WireGuard mesh pool; a compute pool may not overlap it.", "type": "string" }, "network_id_change_blocked_by": { "items": { "type": "string" }, "type": "array" }, "nodes": { "items": { "$ref": "#/components/schemas/ClusterNetworkNode" }, "type": "array" }, "overlay_network_name": { "description": "The cluster's overlay network name (ADR 059): the Docker network\n``, bridge `br-` and VXLAN device `vxlan-` on each\nhost whose node does not override it.", "type": "string" }, "pool_confirmed": { "description": "Whether an operator has confirmed the pool, or a member already uses\nit. The console asks for it once before adding the first node.", "type": "boolean" }, "subnet_prefix_len": { "format": "int32", "minimum": 0, "type": "integer" }, "vxlan_network_id": { "description": "The cluster's VXLAN network ID and UDP port (ADR 062).", "format": "int32", "minimum": 0, "type": "integer" }, "vxlan_port": { "format": "int32", "minimum": 0, "type": "integer" } }, "required": [ "compute_pool_cidr", "subnet_prefix_len", "default_compute_pool_cidr", "mesh_pool_cidr", "mesh_enabled", "overlay_network_name", "vxlan_network_id", "vxlan_port", "can_change_network_id", "network_id_change_blocked_by", "pool_confirmed", "can_change", "change_blocked_by", "control_plane", "nodes" ], "type": "object" }, "ClusterProtectionResponse": { "description": "Failover protection of a cluster, part of [`ClusterHealthReportResponse`].", "properties": { "detail": { "description": "Names the protecting standby, or what is missing.", "example": "Not yet protected: standby postgres-app-ha-2 (catchingup) is still copying or catching up with the primary. The cluster accepts writes, but cannot fail over until a standby reaches secondary", "type": "string" }, "state": { "$ref": "#/components/schemas/ClusterProtectionState", "description": "`protected` once a healthy, promotable standby is `secondary`;\n`not_protected` while none is (none configured, the first one still\ncopying the primary, or all unhealthy); `unknown` when the monitor\ncould not be read." } }, "required": [ "state", "detail" ], "type": "object" }, "ClusterProtectionState": { "description": "Whether a cluster could fail over if its primary failed right now.", "enum": [ "protected", "not_protected", "unknown" ], "type": "string" }, "CmdBody": { "properties": { "args": { "description": "Arguments to pass to the binary. Defaults to empty.", "items": { "type": "string" }, "type": "array" }, "command": { "description": "Binary name (argv[0]) — e.g. `\"ls\"`, `\"node\"`. The SDK sends this\nseparately from `args`.", "type": "string" }, "cwd": { "description": "Working directory override.", "type": [ "string", "null" ] }, "env": { "additionalProperties": { "type": "string" }, "description": "Extra env vars.", "propertyNames": { "type": "string" }, "type": "object" }, "sudo": { "description": "When true, the SDK runs the command privileged. We ignore it today\n— the underlying provider always runs as the sandbox's own user.", "type": "boolean" }, "wait": { "description": "When true, the response is an `application/x-ndjson` stream where\nthe first line is the running-command envelope and the second line\nis the finished-command envelope with `exitCode`.", "type": "boolean" } }, "required": [ "command" ], "type": "object" }, "CmdInner": { "description": "Inner `command` object — matches the SDK's zod validator exactly.\n`exitCode` is `null` until the command terminates; `startedAt` is Unix\nepoch milliseconds.", "properties": { "args": { "items": { "type": "string" }, "type": "array" }, "cwd": { "type": "string" }, "exitCode": { "format": "int32", "type": [ "integer", "null" ] }, "id": { "type": "string" }, "name": { "type": "string" }, "sandboxId": { "type": "string" }, "startedAt": { "format": "int64", "type": "integer" } }, "required": [ "id", "name", "args", "cwd", "sandboxId", "startedAt" ], "type": "object" }, "CmdKillBody": { "description": "SDK-shaped kill body. The SDK sends `{signal: AbortSignal}` but only\nuses the signal for HTTP request abortion client-side; there's no\nsignal name on the wire.", "properties": { "force": { "description": "Optional: when true, SIGKILL instead of SIGTERM.", "type": "boolean" } }, "type": "object" }, "CmdResponse": { "description": "`@vercel/sandbox` envelope: `{ command: {...} }`.", "properties": { "command": { "$ref": "#/components/schemas/CmdInner" } }, "required": [ "command" ], "type": "object" }, "CodingAgentRelease": { "description": "The latest published release of one coding-agent CLI.", "properties": { "binary": { "description": "Executable name inside a workspace.", "type": "string" }, "checked_at": { "description": "When the registry was last asked.", "format": "date-time", "type": [ "string", "null" ] }, "error": { "description": "Why the latest version is unknown, when it is.", "type": [ "string", "null" ] }, "latest_version": { "description": "Latest version on the npm registry, when it could be read.", "type": [ "string", "null" ] }, "name": { "type": "string" }, "npm_package": { "type": "string" }, "provider_id": { "description": "Temps provider id (`claude_cli`, `codex_cli`, `opencode`).", "type": "string" } }, "required": [ "provider_id", "name", "binary", "npm_package" ], "type": "object" }, "CodingAgentSettings": { "description": "Instance-wide coding-agent settings.", "properties": { "auto_update": { "description": "Install newer CLI releases in workspaces in use without asking.", "type": "boolean" }, "updated_at": { "format": "date-time", "type": [ "string", "null" ] } }, "required": [ "auto_update" ], "type": "object" }, "CodingAgentSettingsUpdate": { "description": "A settings change; omitted fields are left as they are.", "properties": { "auto_update": { "type": [ "boolean", "null" ] } }, "type": "object" }, "CodingAgentsOverview": { "description": "Every coding-agent CLI Temps manages, with its latest release, and the\nauto-update setting.", "properties": { "agents": { "items": { "$ref": "#/components/schemas/CodingAgentRelease" }, "type": "array" }, "settings": { "$ref": "#/components/schemas/CodingAgentSettings" } }, "required": [ "settings", "agents" ], "type": "object" }, "CommandOutcome": { "description": "Result of a command the server ran in the sandbox.", "properties": { "command": { "type": "string" }, "duration_ms": { "format": "int64", "minimum": 0, "type": "integer" }, "exit_code": { "format": "int32", "type": "integer" }, "output_excerpt": { "description": "Last bytes of stdout and stderr, at most 4 KB.", "type": "string" } }, "required": [ "command", "exit_code", "duration_ms", "output_excerpt" ], "type": "object" }, "CommitExistsResponse": { "properties": { "commit": { "oneOf": [ { "$ref": "#/components/schemas/CommitInfo", "description": "Commit metadata when the requested SHA exists." }, { "type": "null" } ] }, "commit_sha": { "type": [ "string", "null" ] }, "exists": { "type": "boolean" } }, "required": [ "exists" ], "type": "object" }, "CommitFileEncoding": { "description": "How the `content` of a committed file is encoded.", "enum": [ "utf8", "base64" ], "type": "string" }, "CommitFileRequest": { "description": "One file in a commit.", "properties": { "content": { "type": "string" }, "encoding": { "$ref": "#/components/schemas/CommitFileEncoding" }, "path": { "description": "Path inside the repository, relative and without `..` or `.git`\nsegments, e.g. `cmd/server/main.go`.", "type": "string" } }, "required": [ "path", "content" ], "type": "object" }, "CommitFilesRequest": { "description": "Request body for committing files to a repository.", "properties": { "branch": { "description": "Branch to commit to. Defaults to the repository's default branch; a\nbranch that does not exist is created from the default branch.", "type": [ "string", "null" ] }, "files": { "description": "Files to add or overwrite (1-100, at most 5 MiB in total). Files not\nlisted are left as they are.", "items": { "$ref": "#/components/schemas/CommitFileRequest" }, "type": "array" }, "message": { "description": "Commit message (at most 500 bytes).", "type": "string" } }, "required": [ "files", "message" ], "type": "object" }, "CommitFilesResponse": { "properties": { "branch": { "type": "string" }, "commit_sha": { "type": "string" }, "connection_id": { "format": "int32", "type": "integer" }, "file_count": { "minimum": 0, "type": "integer" }, "repository": { "type": "string" } }, "required": [ "connection_id", "repository", "branch", "commit_sha", "file_count" ], "type": "object" }, "CommitInfo": { "properties": { "author": { "description": "Author name", "type": "string" }, "author_email": { "description": "Author email", "type": "string" }, "date": { "description": "Commit date in ISO 8601 format", "example": "2025-10-12T12:15:47.609192Z", "format": "date-time", "type": "string" }, "message": { "description": "Commit message", "type": "string" }, "sha": { "description": "Commit SHA hash", "type": "string" } }, "required": [ "sha", "message", "author", "author_email", "date" ], "type": "object" }, "CommitListResponse": { "properties": { "commits": { "items": { "$ref": "#/components/schemas/CommitInfo" }, "type": "array" } }, "required": [ "commits" ], "type": "object" }, "CompactConversationResponse": { "description": "What \"Compact now\" did.", "properties": { "compacted": { "description": "Whether older messages were folded into the summary by this request.", "type": "boolean" }, "folded_messages": { "description": "Messages folded into the summary by this request.", "minimum": 0, "type": "integer" }, "kept_messages": { "description": "Messages the model still sees word for word after the summary.", "minimum": 0, "type": "integer" }, "model": { "description": "The model that wrote the summary, when one did.", "type": [ "string", "null" ] }, "reason": { "description": "Why nothing was compacted, when `compacted` is false.", "type": [ "string", "null" ] } }, "required": [ "compacted", "folded_messages", "kept_messages" ], "type": "object" }, "Comparator": { "description": "Comparator for static/forecast threshold detectors. Serializes to the\nkeyword forms `gt|gte|lt|lte` (NOT the SQL operators used by\n`temps-monitoring::compare`).", "enum": [ "gt", "gte", "lt", "lte" ], "type": "string" }, "Comparison": { "enum": [ "below", "above" ], "type": "string" }, "CompleteReauthorizationRequest": { "properties": { "code": { "description": "Empty when the user cancelled at the provider; the state is still consumed.", "type": "string" }, "state": { "type": "string" } }, "required": [ "state", "code" ], "type": "object" }, "Component": { "description": "One part of the application. Which fields apply depends on `kind`:\na client has `surface`; an app has `role`, `stack` and `runtime` (and\n`image` when it runs an image); data has `engine` and `holds`; an external\nservice has `provider`.", "properties": { "engine": { "oneOf": [ { "$ref": "#/components/schemas/DataEngine" }, { "type": "null" } ] }, "holds": { "description": "What lives in a data part: tables, key prefixes, buckets, streams.", "items": { "type": "string" }, "type": "array" }, "id": { "description": "Stable slug, unique in the document: `web`, `api`, `orders-worker`.", "type": "string" }, "image": { "description": "The image an app runs, when `runtime` is `image`: `nats:2.10`.", "type": [ "string", "null" ] }, "kind": { "$ref": "#/components/schemas/ComponentKind" }, "name": { "type": "string" }, "provider": { "description": "The outside service: \"Stripe\", \"an LLM API\", \"GitHub OAuth\".", "type": [ "string", "null" ] }, "purpose": { "description": "Why it exists, in one sentence.", "type": "string" }, "role": { "oneOf": [ { "$ref": "#/components/schemas/AppRole" }, { "type": "null" } ] }, "runtime": { "oneOf": [ { "$ref": "#/components/schemas/AppRuntime" }, { "type": "null" } ] }, "stack": { "description": "Free text, as the user wants it: \"Next.js\", \"Bun + Hono\", \"FastAPI\".", "type": [ "string", "null" ] }, "surface": { "oneOf": [ { "$ref": "#/components/schemas/ClientSurface" }, { "type": "null" } ] } }, "required": [ "id", "name", "purpose", "kind" ], "type": "object" }, "ComponentBinding": { "description": "The project or service that realises one part.", "properties": { "project_id": { "format": "int32", "type": [ "integer", "null" ] }, "service_id": { "format": "int32", "type": [ "integer", "null" ] } }, "type": "object" }, "ComponentKind": { "description": "What a part of the application is.", "enum": [ "client", "app", "data", "external" ], "type": "string" }, "ComponentLive": { "description": "The live state of one bound part.", "properties": { "deployment_id": { "description": "The project's latest deployment.", "format": "int32", "type": [ "integer", "null" ] }, "name": { "description": "The project's or the service's name.", "type": [ "string", "null" ] }, "project_slug": { "description": "The project's slug, for links into the console.", "type": [ "string", "null" ] }, "service_type": { "description": "The service's engine as Temps names it (`postgres`, `redis`…).", "type": [ "string", "null" ] }, "status": { "$ref": "#/components/schemas/LiveStatus" } }, "required": [ "status" ], "type": "object" }, "ComposeCheckCommand": { "description": "The `docker compose` invocation a check ran, sanitized for display.", "properties": { "argv": { "description": "Program and arguments. Contains paths and option names only; no\nvariable values are passed on the command line.", "items": { "type": "string" }, "type": "array" }, "exit_code": { "description": "Process exit code; `None` when it was killed or did not start.", "format": "int32", "type": [ "integer", "null" ] }, "stderr": { "description": "The tail of stderr with variable values, quoted text, assignments,\nURLs and absolute paths removed. Line numbers and error wording are\nkept.", "type": [ "string", "null" ] } }, "required": [ "argv" ], "type": "object" }, "ComposeCheckErrorClass": { "description": "Stable, user-facing class of a Compose check failure. The deploy job, the\npreview and the check action all report the same class for the same input.", "enum": [ "interpolation", "policy_violation", "invalid_path", "invalid_yaml", "invalid_override", "unsupported_compose_version", "config_resolution", "compose_unavailable", "internal" ], "type": "string" }, "ComposeCheckReport": { "description": "Result of running the deploy-time resolution and policy validation.", "properties": { "command": { "oneOf": [ { "$ref": "#/components/schemas/ComposeCheckCommand" }, { "type": "null" } ] }, "error": { "description": "The same message the deployment would fail with. Variable values are\nredacted.", "type": [ "string", "null" ] }, "error_class": { "oneOf": [ { "$ref": "#/components/schemas/ComposeCheckErrorClass" }, { "type": "null" } ] }, "notes": { "description": "Caveats about what this check could not cover.", "items": { "type": "string" }, "type": "array" }, "passed": { "description": "Whether the configuration would pass the deploy-time checks.", "type": "boolean" }, "referenced_variables": { "description": "Variables the file references, in sorted order. Names only.", "items": { "type": "string" }, "type": "array" }, "resolution_ran": { "description": "Whether `docker compose config` actually ran for this check.", "type": "boolean" }, "resolution_reasons": { "description": "Why `docker compose config` had to run (project override, include,\nextends, YAML tags). Empty when the file was validated directly.", "items": { "type": "string" }, "type": "array" }, "unset_variables": { "description": "Variables referenced without a default that are not set; Compose\nsubstitutes an empty string for each.", "items": { "type": "string" }, "type": "array" } }, "required": [ "passed", "resolution_reasons", "resolution_ran", "unset_variables", "referenced_variables", "notes" ], "type": "object" }, "ComposeHostStatusResponse": { "description": "The host's Docker Compose CLI as probed at startup.", "properties": { "applicable": { "description": "False when this process never runs Compose workloads (a hosted control\nplane): the CLI is neither probed nor expected, so a missing or old\nCompose is not a problem to report there.", "type": "boolean" }, "available": { "description": "Whether the Compose CLI ran.", "type": "boolean" }, "checked_at": { "format": "date-time", "type": [ "string", "null" ] }, "minimum_version": { "type": "string" }, "missing_flags": { "items": { "type": "string" }, "type": "array" }, "probed": { "description": "False until the startup probe finishes.", "type": "boolean" }, "problem": { "description": "Operator-facing explanation when not supported.", "type": [ "string", "null" ] }, "supported": { "description": "Whether every `docker compose config` option Temps needs is present.", "type": "boolean" }, "version": { "type": [ "string", "null" ] } }, "required": [ "applicable", "probed", "available", "supported", "minimum_version", "missing_flags" ], "type": "object" }, "ComposeOverrideRedundancy": { "description": "How a saved project override relates to the repository Compose file.", "enum": [ "identical", "superset" ], "type": "string" }, "ComposePlacementResponse": { "description": "Where a Compose environment's stack lives, for the console.", "properties": { "drift": { "description": "Why the environment's Target Nodes / Label Selectors no longer\ndescribe the home, when they do not.", "type": [ "string", "null" ] }, "environment_id": { "format": "int32", "type": "integer" }, "home_node_id": { "description": "The home node: `0` is the control plane. `None` when not pinned.", "format": "int32", "type": [ "integer", "null" ] }, "home_node_name": { "type": [ "string", "null" ] }, "home_node_status": { "description": "The home's state (`active`, `offline`, `draining`, ...). Deployments\nfail rather than move while the home is not active.", "type": [ "string", "null" ] }, "moving_from_node_id": { "description": "A move is pending: the node the next deployment stops the stack on\n(`0` is the control plane).", "format": "int32", "type": [ "integer", "null" ] }, "moving_from_node_name": { "type": [ "string", "null" ] }, "moving_from_node_status": { "description": "That node's state. The stack's volumes are there, but it only runs\nthere while the node is `active`.", "type": [ "string", "null" ] }, "pinned": { "description": "Whether the stack has a home yet. `false` until its first deployment\nreaches `docker compose up` (or a move chose one).", "type": "boolean" }, "pinned_at": { "description": "When the stack was pinned to its home, ISO 8601.", "format": "date-time", "type": [ "string", "null" ] }, "project_id": { "format": "int32", "type": "integer" } }, "required": [ "project_id", "environment_id", "pinned" ], "type": "object" }, "ComposePortMapping": { "description": "A Docker Compose service port mapping, reduced to the information the UI\nneeds to build a public route without confusing host and container ports.", "properties": { "protocol": { "description": "Transport protocol. Compose defaults to TCP.", "type": "string" }, "published": { "description": "Optional port published on the Docker host by Compose.", "format": "int32", "minimum": 0, "type": [ "integer", "null" ] }, "target": { "description": "Port inside the service container. Temps routes traffic to this port.", "format": "int32", "minimum": 0, "type": "integer" } }, "required": [ "target" ], "type": "object" }, "ComposePreviewProblemResponse": { "allOf": [ { "$ref": "#/components/schemas/ProblemDetails" }, { "properties": { "compose_check": { "oneOf": [ { "$ref": "#/components/schemas/ComposeCheckReport", "description": "The deploy-time Compose check that rejected the configuration, when\nit ran: the `docker compose config` command, its sanitized output and\nthe referenced variable names. Variable values are never included." }, { "type": "null" } ] }, "error_class": { "oneOf": [ { "$ref": "#/components/schemas/ComposeCheckErrorClass", "description": "The class a deployment of the same configuration would fail with." }, { "type": "null" } ] }, "policy_check": { "oneOf": [ { "$ref": "#/components/schemas/ComposeSecurityCheck", "description": "The individual project security check an administrator may review." }, { "type": "null" } ] } }, "type": "object" } ], "description": "Problem Details returned when a Compose preview cannot be rendered." }, "ComposePreviewRequest": { "properties": { "branch": { "type": [ "string", "null" ] }, "composeOverride": { "type": [ "string", "null" ] }, "environmentId": { "description": "Environment whose variables resolve `${VAR}`; defaults to the\nproject's production environment. Requires `project_id`.", "format": "int32", "type": [ "integer", "null" ] }, "excludedServices": { "items": { "type": "string" }, "type": "array" }, "path": { "type": "string" }, "previewPolicy": { "$ref": "#/components/schemas/ComposeSecurityPolicy", "description": "Advisory preview only. Deployment reloads the saved project policy.\nIgnored when `project_id` is set: the saved policy is used instead." }, "projectId": { "description": "The project this Compose file deploys. When set, the preview runs the\ndeploy job's check with that project's saved security policy and the\nenvironment's variables (values are never returned), so it fails with\nthe same error class a deployment would.", "format": "int32", "type": [ "integer", "null" ] } }, "required": [ "path" ], "type": "object" }, "ComposePreviewResponse": { "properties": { "check": { "oneOf": [ { "$ref": "#/components/schemas/ComposeCheckReport", "description": "The deploy-time Compose check this preview ran (resolution, policy,\nreferenced variable names). `None` when the check is unavailable." }, { "type": "null" } ] }, "disabledServices": { "items": { "type": "string" }, "type": "array" }, "effectiveCompose": { "description": "Effective user-controlled Compose YAML with sensitive values redacted.", "type": "string" }, "enabledServices": { "items": { "type": "string" }, "type": "array" }, "overrideRedundancy": { "oneOf": [ { "$ref": "#/components/schemas/ComposeOverrideRedundancy", "description": "Set when the override repeats the whole repository file." }, { "type": "null" } ] }, "overrideWarning": { "description": "What to do about `override_redundancy`.", "type": [ "string", "null" ] }, "path": { "type": "string" }, "redactedValues": { "minimum": 0, "type": "integer" }, "repositoryId": { "format": "int32", "type": "integer" } }, "required": [ "repositoryId", "path", "effectiveCompose", "enabledServices", "disabledServices", "redactedValues" ], "type": "object" }, "ComposePublicPort": { "description": "A port that should be exposed publicly through the proxy for a compose service.", "properties": { "healthCheckPath": { "description": "Optional user override for the public health probe. When absent, Temps\nuses the path discovered from this service's Compose healthcheck.", "type": [ "string", "null" ] }, "port": { "description": "Container port to expose (e.g. 8123)", "format": "int32", "minimum": 0, "type": "integer" }, "published": { "description": "Optional port published on the Docker host by Compose. The proxy uses\nthis port when Temps runs on the host or reaches a remote node.", "format": "int32", "minimum": 0, "type": [ "integer", "null" ] }, "service": { "description": "Compose service name (e.g. \"web\", \"clickhouse\")", "type": "string" } }, "required": [ "service", "port" ], "type": "object" }, "ComposeSecurityCheck": { "enum": [ "extends", "include", "interpolation", "inline_services", "inline_sections", "inline_fields", "privileged", "docker_socket", "capabilities", "drop_capabilities", "security_options", "no_new_privileges", "devices", "device_rules", "gpu", "sysctls", "groups", "cgroup_parent", "runtime", "lifecycle_hooks", "provider", "container_name", "init", "host_network", "host_pid", "host_ipc", "host_uts", "host_cgroup", "host_user", "container_namespace", "network_mode", "external_networks", "network_names", "network_drivers", "network_options", "network_ipam", "external_links", "published_ports", "bind_mounts", "volume_drivers", "volume_network_filesystems", "volume_host_paths", "volume_options", "external_volumes", "volume_names", "volumes_from", "config_paths", "secret_paths", "external_configs", "external_secrets", "env_files", "label_files", "storage_options", "oom_killer", "service_shm", "aggregate_shm", "tmpfs", "ulimits", "pids", "memory", "logging", "blkio", "swap", "replicas", "remote_build", "build_context", "dockerfile", "build_privileged", "build_entitlements", "build_network", "build_ssh", "build_shm", "build_ulimits", "build_additional_contexts", "build_cache_from", "build_cache_to", "build_tags", "image_references", "build_image", "pull_policy" ], "type": "string" }, "ComposeSecurityCheckDefinition": { "properties": { "consequence": { "type": "string" }, "group": { "type": "string" }, "id": { "$ref": "#/components/schemas/ComposeSecurityCheck" }, "label": { "type": "string" } }, "required": [ "id", "group", "label", "consequence" ], "type": "object" }, "ComposeSecurityPolicy": { "additionalProperties": false, "properties": { "disabled_checks": { "items": { "$ref": "#/components/schemas/ComposeSecurityCheck" }, "type": "array", "uniqueItems": true } }, "type": "object" }, "ComposeSecurityResponse": { "properties": { "can_edit": { "type": "boolean" }, "checks": { "items": { "$ref": "#/components/schemas/ComposeSecurityCheckDefinition" }, "type": "array" }, "legacy_migration_pending": { "type": "boolean" }, "policy": { "$ref": "#/components/schemas/ComposeSecurityPolicy" } }, "required": [ "policy", "checks", "can_edit", "legacy_migration_pending" ], "type": "object" }, "ComposeServiceFamily": { "description": "The specific well-known service family a compose service's image matches,\nwhen it matches one Temps can deploy as a managed `external_services` row\ninstead. Drives the \"deploy this as a Temps-managed service\" recommendation\nin `GitSettings.tsx` and the deploy-log message — kept separate from\n`ComposeServiceSnapshot::looks_like_database` (which stays a plain bool)\nbecause that field only gates the unrelated \"may need elevated Linux\ncapabilities\" warning, and S3/MinIO images need this classification\nwithout tripping that warning.", "enum": [ "postgres", "mariadb", "mongodb", "redis", "s3" ], "type": "string" }, "ComposeServicePreviewResponse": { "properties": { "dependsOn": { "items": { "type": "string" }, "type": "array" }, "detectedServiceType": { "oneOf": [ { "$ref": "#/components/schemas/ComposeServiceFamily", "description": "Well-known managed-service family detected from the image, if any." }, { "type": "null" } ] }, "environmentVariables": { "description": "Environment variable names declared by this service. Values are\nintentionally omitted.", "items": { "type": "string" }, "type": "array" }, "image": { "type": [ "string", "null" ] }, "looksLikeDatabase": { "description": "True when the image looks like a well-known database engine\n(Postgres/MySQL/MariaDB/MongoDB/Redis and common forks) — a raw\ncompose service never becomes a Temps-managed `external_services` row,\nso it never gets backup/restore. Informational only.", "type": "boolean" }, "name": { "type": "string" }, "ports": { "description": "Ports declared by Compose. Route `target`, not `published`: the latter\nis only the optional host-side Docker port.", "items": { "$ref": "#/components/schemas/ComposePortMapping" }, "type": "array" } }, "required": [ "name", "dependsOn", "environmentVariables", "looksLikeDatabase", "ports" ], "type": "object" }, "ComposeValidationReportResponse": { "description": "The last stored Compose check for a project.", "properties": { "checked_at": { "format": "date-time", "type": "string" }, "error": { "type": [ "string", "null" ] }, "error_class": { "oneOf": [ { "$ref": "#/components/schemas/ComposeCheckErrorClass" }, { "type": "null" } ] }, "outdated": { "description": "True when the check ran under an older validation revision than this\nserver's and has not been repeated yet.", "type": "boolean" }, "passed": { "type": "boolean" }, "project_id": { "format": "int32", "type": "integer" } }, "required": [ "project_id", "passed", "outdated", "checked_at" ], "type": "object" }, "ConditionOperator": { "description": "Comparison applied by one rule condition.", "enum": [ "eq", "neq", "in", "not_in", "contains", "not_contains", "matches", "gt", "gte", "lt", "lte", "exists", "not_exists" ], "type": "string" }, "ConditionValue": { "description": "The right-hand side of a condition: one value, or a list for `in`/`not_in`.", "oneOf": [ { "items": { "$ref": "#/components/schemas/AttributeValue" }, "type": "array" }, { "$ref": "#/components/schemas/AttributeValue" } ] }, "ConnectProjectRequest": { "description": "Connect the chat's sandbox to the services of a project.", "properties": { "project_id": { "description": "The project whose services the sandbox may use.", "format": "int32", "type": "integer" } }, "required": [ "project_id" ], "type": "object" }, "ConnectServiceRequest": { "description": "Connect the chat's sandbox to one service.", "properties": { "project_id": { "description": "A project the service is linked to. Names the sandbox's database or\nbucket after the project; without it the name comes from the sandbox.", "format": "int32", "type": [ "integer", "null" ] }, "service_id": { "description": "The service the sandbox may use.", "format": "int32", "type": "integer" } }, "required": [ "service_id" ], "type": "object" }, "ConnectedService": { "description": "A service a sandbox is linked to.", "properties": { "project_id": { "description": "The project the link was made through, if it was made through one.", "format": "int32", "type": [ "integer", "null" ] }, "service_id": { "format": "int32", "type": "integer" } }, "required": [ "service_id" ], "type": "object" }, "ConnectionLimitSettings": { "description": "Per-upstream concurrent-connection limiting. Protects the proxy's own\nconnection/file-descriptor budget from a single slow or malicious\ncustomer upstream — independent of the request/idle timeouts in\n`RequestTimeoutSettings`, which bound how long a connection may stay\nopen, not how many may exist at once. See issue #646.", "properties": { "default_max_concurrent_connections": { "default": 0, "description": "Default max concurrent in-flight requests to a single\nproject/environment's upstream, used when the project/environment\nhasn't set its own `max_concurrent_connections` override. `0` (the\ndefault) means unlimited — matches the \"opt-in, never breaks an\nexisting app on upgrade\" philosophy already established for\n`RequestTimeoutSettings`.", "example": 200, "format": "int32", "minimum": 0, "type": "integer" } }, "type": "object" }, "ConnectionListQuery": { "properties": { "direction": { "type": [ "string", "null" ] }, "page": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "per_page": { "format": "int64", "minimum": 0, "type": [ "integer", "null" ] }, "sort": { "type": [ "string", "null" ] } }, "type": "object" }, "ConnectionListResponse": { "properties": { "connections": { "items": { "$ref": "#/components/schemas/ConnectionResponse" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "per_page": { "format": "int64", "minimum": 0, "type": "integer" }, "total_count": { "minimum": 0, "type": "integer" } }, "required": [ "connections", "total_count", "page", "per_page" ], "type": "object" }, "ConnectionResponse": { "properties": { "account_name": { "type": "string" }, "account_type": { "type": "string" }, "consecutive_health_failures": { "format": "int32", "type": "integer" }, "created_at": { "format": "date-time", "type": "string" }, "has_authenticated_credentials": { "description": "Whether this connection can make authenticated provider requests.\nThis exposes capability only; credential values are never serialized.", "type": "boolean" }, "health_message": { "description": "Human-readable reason when health_status is \"unhealthy\"; null otherwise.", "type": [ "string", "null" ] }, "health_status": { "description": "Current health status: \"healthy\", \"unhealthy\", or \"unknown\".", "type": "string" }, "id": { "format": "int32", "type": "integer" }, "installation_id": { "type": [ "string", "null" ] }, "is_active": { "type": "boolean" }, "is_expired": { "type": "boolean" }, "last_health_check_at": { "format": "date-time", "type": [ "string", "null" ] }, "last_sync_error": { "description": "Why the most recent repository sync failed or timed out; null once a\nsync succeeds.", "type": [ "string", "null" ] }, "last_sync_error_at": { "format": "date-time", "type": [ "string", "null" ] }, "last_synced_at": { "format": "date-time", "type": [ "string", "null" ] }, "provider_id": { "format": "int32", "type": "integer" }, "synced_repository_count": { "description": "Running count of repositories persisted by the current (or most\nrecent) sync. Resets to 0 when a new sync begins; useful for showing\nlive progress on large syncs.", "format": "int32", "type": "integer" }, "syncing": { "type": "boolean" }, "updated_at": { "format": "date-time", "type": "string" }, "user_id": { "format": "int32", "type": [ "integer", "null" ] } }, "required": [ "id", "provider_id", "account_name", "account_type", "has_authenticated_credentials", "is_active", "is_expired", "syncing", "synced_repository_count", "health_status", "consecutive_health_failures", "created_at", "updated_at" ], "type": "object" }, "ConnectionTestResult": { "description": "Connection test result", "properties": { "message": { "type": "string" }, "success": { "type": "boolean" } }, "required": [ "success", "message" ], "type": "object" }, "ConnectorLinksView": { "description": "A tunnel's live connections, read from the provider on request.", "properties": { "links": { "items": { "$ref": "#/components/schemas/LinkView" }, "type": "array" }, "status": { "description": "The provider's own word for the tunnel (Cloudflare: `healthy`,\n`degraded`, `down`, `inactive`).", "type": "string" } }, "required": [ "status", "links" ], "type": "object" }, "ConnectorList": { "description": "One page of tunnels, newest first.", "properties": { "connectors": { "items": { "$ref": "#/components/schemas/ConnectorView" }, "type": "array" }, "page": { "format": "int64", "minimum": 0, "type": "integer" }, "page_size": { "format": "int64", "minimum": 0, "type": "integer" }, "total": { "format": "int64", "minimum": 0, "type": "integer" } }, "required": [ "connectors", "total", "page", "page_size" ], "type": "object" }, "ConnectorNodeView": { "properties": { "driver": { "type": [ "string", "null" ] }, "last_error": { "type": [ "string", "null" ] }, "node_id": { "format": "int32", "type": "integer" }, "node_name": { "type": "string" }, "ready_connections": { "format": "int32", "type": [ "integer", "null" ] }, "reported_at": { "format": "date-time", "type": [ "string", "null" ] }, "state": { "type": "string" } }, "required": [ "node_id", "node_name", "state" ], "type": "object" }, "ConnectorView": { "properties": { "auto_publish": { "type": "boolean" }, "created_at": { "format": "date-time", "type": "string" }, "dns_provider_id": { "format": "int32", "type": [ "integer", "null" ] }, "dns_target": { "description": "Where published hostnames point.", "type": [ "string", "null" ] }, "domain": { "type": "string" }, "edge_port": { "format": "int32", "type": "integer" }, "environment_hosts": { "description": "Publishes every environment as `