{"openapi":"3.1.0","info":{"title":"rift-server","description":"","contact":{"name":"CloudRift Inc"},"license":{"name":""},"version":"0.64.3"},"paths":{"/api/v1/account/auto-top-up/recovery-info":{"post":{"tags":["account"],"description":"Fetch 3DS recovery info for the latest RequiresAction auto top-up attempt","operationId":"get_auto_top_up_recovery_info","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopUpRequestProto"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopUpRecoveryInfoProto"}}}},"403":{"description":"User is not allowed to manage billing for the selected account"},"404":{"description":"No attempt awaiting 3DS recovery"}},"security":[{"token":[]}]}},"/api/v1/account/auto-top-up/update":{"post":{"tags":["account"],"description":"Create or update the auto top-up settings for an Account","operationId":"update_auto_top_up","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopUpUpdateRequestProto"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoTopUpStateProto"}}}},"400":{"description":"Invalid settings (threshold/amount/cap validation failed)"},"403":{"description":"User is not allowed to manage billing for the selected account"}},"security":[{"token":[]}]}},"/api/v1/account/info":{"post":{"tags":["account"],"description":"Retrieve account information","operationId":"get_account_info","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountRequestProto"},{"type":"null"}]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountInfoProto"}}}}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/account/stripe-customer":{"post":{"tags":["account"],"description":"Get-or-create the Stripe Customer ID for an Account. With `create=false`, only reads — returns null when none exists.","operationId":"get_or_create_stripe_customer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeCustomerRequestProto"}}},"required":true},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StripeCustomerResponseProto"}}}},"403":{"description":"User is not allowed to manage billing for the selected account"}},"security":[{"token":[]}]}},"/api/v1/account/transactions/create/external":{"post":{"tags":["account"],"description":"Create external transaction","operationId":"create_external_transaction","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalTransactionRequestProto"}}},"required":true},"responses":{"200":{"description":"Success"}},"security":[{"token":[]}]}},"/api/v1/account/transactions/create/promo":{"post":{"tags":["account"],"description":"Create promo transaction","operationId":"create_promo_transaction","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PromoCodeRequestProto"}}},"required":true},"responses":{"200":{"description":"Success"},"400":{"description":"The code is shorter than 8 characters, unknown, expired or already redeemed"},"403":{"description":"The user lacks ManagePayments, e.g. flagged as fraudulent after guessing too many codes"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/account/transactions/list":{"post":{"tags":["account"],"description":"List account transactions","operationId":"list_transactions","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/AccountRequestProto"},{"type":"null"}]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransactionArrayProto"}}}}},"security":[{"token":[]}]}},"/api/v1/account/update_credit_limit":{"post":{"tags":["account"],"description":"Update credit limit for selected accounts (admin only)","operationId":"update_credit_limit","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUsersCreditLimitRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateUsersCreditLimitResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/api-keys/add":{"post":{"tags":["api_keys"],"description":"Add API key","operationId":"add_api_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddApiKeyRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddApiKeyResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/api-keys/delete":{"post":{"tags":["api_keys"],"description":"Delete API key with selector","operationId":"select_and_delete_api_keys","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteApiKeysRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteApiKeysResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/api-keys/list":{"post":{"tags":["api_keys"],"description":"List API keys","operationId":"list_api_keys","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListApiKeysRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListApiKeysResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/api-keys/update":{"post":{"tags":["api_keys"],"description":"Modify API key properties","operationId":"update_api_keys","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiKeysRequestProto"}}},"required":true},"responses":{"204":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiKeysResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/auth/login":{"post":{"tags":["auth"],"description":"Login user and retrieve JWT token","operationId":"login","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginUserRequestProto"}}},"required":true},"responses":{"200":{"description":"Login successful","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginUserResponseProto"}}}},"401":{"description":"Not authorized"},"429":{"description":"Too many failed logins to this address recently"}}}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"description":"Logout user and remove JWT token","operationId":"logout","responses":{"201":{"description":"Logout successful"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/auth/me":{"post":{"tags":["auth"],"description":"Get information about the current user","operationId":"me","responses":{"200":{"description":"Information retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MeResponseProto"}}}},"401":{"description":"Not authorized"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/auth/request-password-reset":{"post":{"tags":["auth"],"description":"Initiate password reset process","operationId":"request_password_reset","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetVerifyRequestProto"}}},"required":true},"responses":{"202":{"description":"Password reset email sent if the email belongs to an account"},"400":{"description":"Bad Request"},"429":{"description":"Too many password resets requested for this address recently"}}}},"/api/v1/auth/resend-verification":{"post":{"tags":["auth"],"description":"Resend email verification token","operationId":"resend_verification","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerificationResendRequestProto"}}},"required":true},"responses":{"202":{"description":"Verification email sent if account exists"},"429":{"description":"Too many verification emails requested for this address recently"}}}},"/api/v1/auth/reset-password":{"post":{"tags":["auth"],"description":"Reset password using token","operationId":"reset_password","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetRequestProto"}}},"required":true},"responses":{"200":{"description":"Password reset successfully"},"400":{"description":"Bad request, invalid token or password"},"404":{"description":"Token not found or expired"}}}},"/api/v1/auth/verify-email":{"get":{"tags":["auth"],"description":"Verify email address using token (from email link)","operationId":"verify_email","parameters":[{"name":"token","in":"query","description":"Email verification token","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Email verified"},"400":{"description":"Invalid or expired token"}}}},"/api/v1/capabilities/list":{"post":{"tags":["capabilities"],"description":"Report what the current requester may do and where: its effective permission set, scope anchor and operable providers","operationId":"list_capabilities","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CapabilitiesResponseProto"}}}},"401":{"description":"Not authorized"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instance-types/add":{"post":{"tags":["instance_types"],"description":"Create a new instance type","operationId":"add_instance_type","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddInstanceTypeRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceTypeResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"api-key":[]}]}},"/api/v1/instance-types/add_variant":{"post":{"tags":["instance_types"],"description":"Create a new instance variant","operationId":"add_instance_variant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddInstanceVariantRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceVariantResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"api-key":[]}]}},"/api/v1/instance-types/list":{"post":{"tags":["instance_types"],"description":"List instance types","operationId":"list_instance_types","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInstanceTypesRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInstanceTypesResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"api-key":[]}]}},"/api/v1/instance-types/remove":{"post":{"tags":["instance_types"],"description":"Remove an instance type","operationId":"remove_instance_type","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveInstanceTypeRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceTypeResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"api-key":[]}]}},"/api/v1/instance-types/remove_variant":{"post":{"tags":["instance_types"],"description":"Remove an instance variant","operationId":"remove_instance_variant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveInstanceVariantRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceVariantResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"api-key":[]}]}},"/api/v1/instance-types/update":{"post":{"tags":["instance_types"],"description":"Update an instance type","operationId":"update_instance_type","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInstanceTypeRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceTypeResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"api-key":[]}]}},"/api/v1/instance-types/update_variant":{"post":{"tags":["instance_types"],"description":"Update an instance variant","operationId":"update_instance_variant","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateInstanceVariantRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceVariantResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"api-key":[]}]}},"/api/v1/instances/list":{"post":{"tags":["instances"],"description":"List user instances","operationId":"list_instances","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInstancesRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInstancesResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/metrics":{"post":{"tags":["instances"],"description":"Get GPU metrics (utilization, temperature, VRAM, power) for instances, filtered to only the GPUs allocated to each instance","operationId":"instance_metrics","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceMetricsRequestProto"}}},"required":true},"responses":{"200":{"description":"Metrics retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InstanceMetricsResponseProto"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/pause":{"post":{"tags":["instances"],"description":"Pause (freeze vCPU execution via libvirt virDomainSuspend) virtual machine instance(s). The VM stops executing but memory, GPU passthrough, and host resources remain allocated. Users can pause their own instances; providers can pause instances on their nodes; admins can pause any instance.","operationId":"pause_vm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PauseInstancesRequestProto"}}},"required":true},"responses":{"201":{"description":"Vm(s) paused"},"400":{"description":"Bad request"},"401":{"description":"Unauthenticated - invalid or missing token"},"403":{"description":"Forbidden - not authorized to pause this instance"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/rent":{"post":{"tags":["instances"],"description":"Rent instance for the user","operationId":"rent_instance","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentInstanceRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RentInstanceResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/reset":{"post":{"tags":["instances"],"description":"Reset (hard reboot) virtual machine instance(s). Users can reset their own instances; providers can reset instances on their nodes; admins can reset any instance.","operationId":"reset_vm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetInstancesRequestProto"}}},"required":true},"responses":{"201":{"description":"Vm(s) reset"},"400":{"description":"Bad request"},"401":{"description":"Unauthenticated - invalid or missing token"},"403":{"description":"Forbidden - not authorized to reset this instance"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/resume":{"post":{"tags":["instances"],"description":"Resume (unfreeze vCPU execution via libvirt virDomainResume) previously paused virtual machine instance(s). Users can resume their own instances; providers can resume instances on their nodes; admins can resume any instance.","operationId":"resume_vm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeInstancesRequestProto"}}},"required":true},"responses":{"201":{"description":"Vm(s) resumed"},"400":{"description":"Bad request"},"401":{"description":"Unauthenticated - invalid or missing token"},"403":{"description":"Forbidden - not authorized to resume this instance"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/saved-environments/list":{"post":{"tags":["instances"],"description":"List the caller's saved environments — disks from terminated VM rentals still within their node's erase grace window, which can be re-attached to a new rental via `reuse_environment_id`. Pass `team_id` to list a team's environments.","operationId":"list_saved_environments","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSavedEnvironmentsRequestProto"}}},"required":true},"responses":{"200":{"description":"Saved environments listed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSavedEnvironmentsResponseProto"}}}},"401":{"description":"Not authorized"},"403":{"description":"Caller is not a member of the requested team"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/start":{"post":{"tags":["instances"],"description":"Start instance(s). Starts all VMs and containers associated with the instance. Users can start their own instances; providers can start instances on their nodes; admins can start any instance.","operationId":"start_vm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartInstancesRequestProto"}}},"required":true},"responses":{"201":{"description":"Vm(s) started"},"400":{"description":"Bad request"},"401":{"description":"Unauthenticated - invalid or missing token"},"403":{"description":"Forbidden - not authorized to start this instance"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/stop":{"post":{"tags":["instances"],"description":"Stop (gracefully shutdown) instance(s). Stops all VMs and containers associated with the instance. Users can stop their own instances; providers can stop instances on their nodes; admins can stop any instance.","operationId":"stop_vm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StopInstancesRequestProto"}}},"required":true},"responses":{"201":{"description":"Vm(s) stopped"},"400":{"description":"Bad request"},"401":{"description":"Unauthenticated - invalid or missing token"},"403":{"description":"Forbidden - not authorized to stop this instance"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/instances/terminate":{"post":{"tags":["instances"],"description":"Terminate instance(s). Users can terminate their own instances; providers can terminate instances on their nodes; admins can terminate any instance.","operationId":"terminate_instances","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerminateInstancesRequestProto"}}},"required":true},"responses":{"201":{"description":"Instance(s) terminated"},"400":{"description":"Bad request"},"401":{"description":"Unauthenticated - invalid or missing token"},"403":{"description":"Forbidden - not authorized to terminate this instance"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/network/add":{"post":{"tags":["network"],"description":"Add a new network with multiple IP ranges","operationId":"add_network","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNetworkRequestProto"}}},"required":true},"responses":{"201":{"description":"Network created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddNetworkResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"409":{"description":"Network already exists"}},"security":[{"token":[]}]}},"/api/v1/network/delete":{"post":{"tags":["network"],"description":"Delete a network","operationId":"delete_network","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteNetworkRequestProto"}}},"required":true},"responses":{"200":{"description":"Network deleted successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteNetworkResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"404":{"description":"Network not found"}},"security":[{"token":[]}]}},"/api/v1/network/list":{"post":{"tags":["network"],"description":"List networks with full details including IP ranges and executors","operationId":"list_networks","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListNetworksRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListNetworksResponseProto"}}}},"400":{"description":"Bad request"}},"security":[{"token":[]}]}},"/api/v1/network/update":{"post":{"tags":["network"],"description":"Update network team access or outbound proxy for new VMs","operationId":"update_network","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNetworkRequestProto"}}},"required":true},"responses":{"200":{"description":"Network updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateNetworkResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"404":{"description":"Network or team not found"}},"security":[{"token":[]}]}},"/api/v1/nodes/cancel_drain":{"post":{"tags":["nodes"],"description":"Cancel an active drain - brings nodes back to normal operation","operationId":"cancel_drain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDrainRequestProto"}}},"required":true},"responses":{"200":{"description":"Drain cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelDrainResponseProto"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Node not found"}},"security":[{"token":[]}]}},"/api/v1/nodes/drain":{"post":{"tags":["nodes"],"description":"Start draining nodes - prevents new instances and schedules termination after grace period","operationId":"drain_node","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrainNodeRequestProto"}}},"required":true},"responses":{"200":{"description":"Drain started","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DrainNodeResponseProto"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden - not authorized to manage this node"},"404":{"description":"Node not found"}},"security":[{"token":[]}]}},"/api/v1/nodes/force_drain":{"post":{"tags":["nodes"],"description":"Force drain - immediately terminates all instances (only when nodes are already draining)","operationId":"force_drain","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForceDrainRequestProto"}}},"required":true},"responses":{"200":{"description":"Force drain completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForceDrainResponseProto"}}}},"400":{"description":"Node is not in draining state"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]}]}},"/api/v1/nodes/list":{"post":{"tags":["nodes"],"description":"List nodes. With a `query`, returns one page of the filtered, sorted list plus a summary (total, status counts and filter options) for the whole list.","operationId":"list_nodes","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ListProviderNodesRequestProto"},{"type":"null"}]}}}},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProviderNodesResponseProto"}}}},"401":{"description":"Unauthorized"}},"security":[{"token":[]}]}},"/api/v1/nodes/metrics/list":{"post":{"tags":["nodes"],"description":"Get hardware metrics (GPU temperature, utilization, VRAM, power) for nodes","operationId":"node_metrics","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeMetricsRequestProto"}}},"required":true},"responses":{"200":{"description":"Metrics retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeMetricsResponseProto"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]}]}},"/api/v1/nodes/metrics/list/{node_id}":{"post":{"tags":["nodes"],"description":"Get hardware metrics (GPU temperature, utilization, VRAM, power) for a specific node","operationId":"node_metrics_by_id","parameters":[{"name":"node_id","in":"path","description":"Node UUID","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Metrics retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NodeMetricsResponseProto"}}}},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Node not found"}},"security":[{"token":[]}]}},"/api/v1/nodes/resume":{"post":{"tags":["nodes"],"description":"Resume nodes - bring them back online after being drained","operationId":"resume_node","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeNodeRequestProto"}}},"required":true},"responses":{"200":{"description":"Nodes resumed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeNodeResponseProto"}}}},"400":{"description":"Node is not in drained state"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]}]}},"/api/v1/nodes/set_marketplace_listing":{"post":{"tags":["nodes"],"description":"Toggle whether nodes appear on the marketplace. Does not affect drain state; rejects nodes in any drain state other than None (their listing is controlled by the drain lifecycle).","operationId":"set_marketplace_listing","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetNodeMarketplaceListingRequestProto"}}},"required":true},"responses":{"200":{"description":"Listing updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetNodeMarketplaceListingResponseProto"}}}},"400":{"description":"Node is in a drain state"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden - not authorized to manage this node"},"404":{"description":"Node not found"}},"security":[{"token":[]}]}},"/api/v1/nodes/update_instance_type":{"post":{"tags":["nodes"],"description":"Update provider node instance type","operationId":"update_provider_node_instance_type","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProviderNodeInstanceTypeRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded"},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"api-key":[]}]}},"/api/v1/providers/access/grant":{"post":{"tags":["providers"],"description":"Grant a user or a team provider access with a role, or change the role of an existing grant","operationId":"grant_provider_access","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantProviderAccessRequestProto"}}},"required":true},"responses":{"204":{"description":"Grant applied"},"403":{"description":"Forbidden"},"404":{"description":"No such principal"}},"security":[{"token":[]}]}},"/api/v1/providers/access/list":{"post":{"tags":["providers"],"description":"List the users and teams granted access to a provider, with their roles","operationId":"list_provider_access","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProviderAccessRequestProto"}}},"required":true},"responses":{"200":{"description":"Grants","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProviderAccessResponseProto"}}}},"403":{"description":"Forbidden"}},"security":[{"token":[]}]}},"/api/v1/providers/access/revoke":{"post":{"tags":["providers"],"description":"Revoke a user's or a team's provider access","operationId":"revoke_provider_access","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeProviderAccessRequestProto"}}},"required":true},"responses":{"204":{"description":"Grant revoked"},"403":{"description":"Forbidden"}},"security":[{"token":[]}]}},"/api/v1/providers/list":{"post":{"tags":["providers"],"description":"List providers","operationId":"list_providers","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProvidersRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListProvidersResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"`with_payout_settings` without a logged-in user"},"403":{"description":"`with_payout_settings` without `ManageBalance`"}}}},"/api/v1/recipes/add":{"post":{"tags":["recipes"],"description":"Add a new recipe","operationId":"add_recipe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddRecipeRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded"},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/recipes/list":{"post":{"tags":["recipes"],"description":"List available recipes, optionally with each VM image's metadata and its compatibility with what a rent selector would rent","operationId":"list_recipes","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ListRecipesRequestProto"},{"type":"null"}]}}}},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRecipesResponseProto"}}}},"400":{"description":"Bad request, or an unknown instance type or variant"},"401":{"description":"Compatibility asked without signing in"},"403":{"description":"Compatibility asked without RentInstance, or for a node the caller could not rent"},"503":{"description":"No node offers the variant in the requested datacenters"}}}},"/api/v1/recipes/remove":{"post":{"tags":["recipes"],"description":"Remove a recipe","operationId":"remove_recipe","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveRecipeOrGroupRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded"},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/recipes/update_vm_image":{"post":{"tags":["recipes"],"description":"Update the image URL of selected ownerless VM recipes","operationId":"update_vm_recipe_image","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVmRecipeImageRequestProto"}}},"required":true},"responses":{"201":{"description":"Recipe image updated"},"401":{"description":"Not authorized"},"403":{"description":"ManageRecipes permission required"},"404":{"description":"A selected ownerless VM recipe was not found"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/reservations/create":{"post":{"tags":["reservations"],"description":"Create a reservation for a running instance and attach it","operationId":"create_and_attach_reservation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReservationRequestProto"}}},"required":true},"responses":{"200":{"description":"Reservation created and attached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateReservationResponseProto"}}}},"400":{"description":"Bad request"},"403":{"description":"Not authorized"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/reservations/list":{"post":{"tags":["reservations"],"description":"List user reservations","operationId":"list_reservations","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListReservationsRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListReservationsResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/reservations/types/list":{"post":{"tags":["ReservationTypes"],"summary":"List available reservation types","operationId":"list_reservation_types","responses":{"200":{"description":"List of reservation types","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ListReservationTypesResponseProto"}}}}},"400":{"description":"Invalid request format or instance variant ID not found"},"500":{"description":"Internal server error"}}}},"/api/v1/reservations/update":{"post":{"tags":["reservations"],"description":"Extend validity of the active reservation bound to an executor","operationId":"update_active_reservation","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReservationRequestProto"}}},"required":true},"responses":{"200":{"description":"Reservation validity extended","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateReservationResponseProto"}}}},"400":{"description":"Bad request"},"403":{"description":"Not authorized"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/services/bulk-charge":{"post":{"tags":["services"],"description":"Charge the account behind the request's `api_key` for a service, several charges at once. Platform Admins only","operationId":"bulk_charge_for_service","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkServiceChargeRequestProto"}}},"required":true},"responses":{"201":{"description":"Charge has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BulkServiceChargeResponseProto"}}}},"403":{"description":"The caller lacks `ManageBalance`, or `api_key` isn't a valid key"},"409":{"description":"Charge for provided request ID already exists"}},"security":[{"api-key":[]}]}},"/api/v1/services/charge":{"post":{"tags":["services"],"description":"Charge the account behind the request's `api_key` for a service. Platform Admins only","operationId":"charge_for_service","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceChargeRequestProto"}}},"required":true},"responses":{"201":{"description":"Charge has been created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceChargeResponseProto"}}}},"403":{"description":"The caller lacks `ManageBalance`, or `api_key` isn't a valid key"},"409":{"description":"Charge for provided request ID already exists"}},"security":[{"api-key":[]}]}},"/api/v1/ssh-keys/add":{"post":{"tags":["ssh_keys"],"description":"Add ssh keys","operationId":"add_ssh_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSshKeyRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateSshKeyResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/ssh-keys/delete":{"post":{"tags":["ssh_keys"],"description":"Delete ssh key with selector","operationId":"select_and_delete_ssh_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteSshKeyRequestProto"}}},"required":true},"responses":{"201":{"description":"Request succeeded"},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/ssh-keys/list":{"post":{"tags":["ssh_keys"],"description":"List ssh keys","operationId":"list_ssh_keys","responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListSshKeysResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/ssh-keys/{ssh_key_id}":{"delete":{"tags":["ssh_keys"],"description":"Delete ssh key","operationId":"delete_ssh_key","parameters":[{"name":"ssh_key_id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Request succeeded"},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/teams/create":{"post":{"tags":["teams"],"description":"Create a new team","operationId":"create_team","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamRequestProto"}}},"required":true},"responses":{"201":{"description":"Team created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/teams/list":{"post":{"tags":["teams"],"description":"List teams. Defaults to the authenticated user's teams. Admin/provider can use selectors to query all teams, with optional account info and member details.","operationId":"list_teams","requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ListTeamsRequestProto"},{"type":"null"}]}}}},"responses":{"200":{"description":"Teams retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListTeamsResponseProto"}}}},"401":{"description":"Not authorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]}]}},"/api/v1/teams/search":{"post":{"tags":["teams"],"description":"Search teams by name substring (admin/provider only).","operationId":"search_teams","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchTeamsRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchTeamsResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/teams/{team_id}":{"get":{"tags":["teams"],"description":"Get details of a specific team including its members and pending invites","operationId":"get_team","parameters":[{"name":"team_id","in":"path","description":"The unique identifier of the team to retrieve","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Team details retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"404":{"description":"Team not found"}},"security":[{"token":[]}]}},"/api/v1/teams/{team_id}/members/add":{"put":{"tags":["teams"],"description":"Add a new member to a team by their email. If the user exists, they are added directly and a Member is returned. If the user doesn't exist, an invite is created and an Invite is returned.","operationId":"add_team_member","parameters":[{"name":"team_id","in":"path","description":"The unique identifier of the team to add the member to","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Email of the user to add to the team","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddTeamMemberRequestProto"}}},"required":true},"responses":{"200":{"description":"Member added or invite created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberOrInviteResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"404":{"description":"Team not found"},"429":{"description":"This user sent too many invites recently, to this invitee email or in total"}},"security":[{"token":[]}]}},"/api/v1/teams/{team_id}/members/remove":{"post":{"tags":["teams"],"description":"Remove a member from a team or cancel a pending invite","operationId":"remove_team_member","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemoveTeamMemberRequestProto"}}},"required":true},"responses":{"204":{"description":"Member removed or invite cancelled successfully"},"400":{"description":"Invalid request parameters"},"401":{"description":"Unauthorized"},"403":{"description":"Forbidden"},"404":{"description":"Team, member, or invite not found"}},"security":[{"bearer_auth":[]}]}},"/api/v1/teams/{team_id}/members/update":{"put":{"tags":["teams"],"description":"Update the role of a team member or pending invite","operationId":"update_team_membership","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamMembershipRequestProto"}}},"required":true},"responses":{"204":{"description":"Role updated successfully"},"400":{"description":"Invalid request parameters"},"401":{"description":"Unauthorized"},"404":{"description":"Team, member, or invite not found"}},"security":[{"bearer_auth":[]}]}},"/api/v1/users/add":{"post":{"tags":["users"],"description":"Create a new user (admin/provider). Credit limit and initial balance are admin-only.","operationId":"add_user","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserRequestProto"}}},"required":true},"responses":{"200":{"description":"User created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddUserResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"403":{"description":"Forbidden, or a provider operator adding an email address on a restricted organization's domain"},"409":{"description":"Email already exists"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/users/delete":{"post":{"tags":["users"],"description":"Admin-only: erase a user. See docs/SOC2_USER_DELETION.md. Refuses with 409 for provider roots, node owners, or users with active executors.","operationId":"delete_user","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUserRequestProto"}}},"required":true},"responses":{"200":{"description":"Deletion (or dry-run) completed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUserResponseProto"}}}},"401":{"description":"Not authenticated, or target user not found"},"403":{"description":"Caller is not an admin"},"409":{"description":"Deletion refused by pre-flight (provider root / owns nodes / active executors)"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/users/list":{"post":{"tags":["users"],"description":"List users for admin or provider user-management views","operationId":"list_users","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUsersRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListUsersResponseProto"}}}},"401":{"description":"Not authorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/users/register":{"post":{"tags":["users"],"description":"Register a new user","operationId":"register_user","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterUserRequestProto"}}},"required":true},"responses":{"201":{"description":"Registration successful"},"401":{"description":"Not authorized"},"403":{"description":"CAPTCHA missing or rejected for an untrusted email domain, or an email address on a restricted organization's domain without a platform admin's token or API key"}},"security":[{},{"token":[]},{"api-key":[]}]}},"/api/v1/users/search":{"post":{"tags":["users"],"description":"Search users by name or email substring (admin/provider only).","operationId":"search_users","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchUsersRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchUsersResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/users/send_message":{"post":{"tags":["users"],"description":"Send a custom email message to selected users (admin/provider only)","operationId":"send_users_message","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendUsersMessageRequestProto"}}},"required":true},"responses":{"200":{"description":"Request succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendUsersMessageResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"403":{"description":"Forbidden"}},"security":[{"token":[]},{"api-key":[]}]}},"/api/v1/volumes/create":{"post":{"tags":["volumes"],"description":"Create a new volume","operationId":"create_volume","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVolumeRequestProto"}}},"required":true},"responses":{"201":{"description":"Volume created successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateVolumeResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"409":{"description":"Volume name already exists"}},"security":[{"token":[]}]}},"/api/v1/volumes/list":{"post":{"tags":["volumes"],"description":"List volumes","operationId":"list_volumes","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVolumesRequestProto"}}},"required":true},"responses":{"200":{"description":"Volumes retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVolumesResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"}},"security":[{"token":[]}]}},"/api/v1/volumes/update":{"post":{"tags":["volumes"],"description":"Update volume (rename)","operationId":"update_volume","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVolumeRequestProto"}}},"required":true},"responses":{"200":{"description":"Volume updated successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateVolumeResponseProto"}}}},"400":{"description":"Bad request"},"401":{"description":"Not authorized"},"404":{"description":"Volume not found"}},"security":[{"token":[]}]}}},"components":{"schemas":{"AccountHold":{"type":"object","required":["kind","amount","created_at"],"properties":{"amount":{"type":"integer","format":"int64","description":"Amount still held, in currency units (cents)"},"created_at":{"type":"string"},"instance_id":{"type":["string","null"],"description":"The instance the funds are held for"},"instance_name":{"type":["string","null"]},"kind":{"$ref":"#/components/schemas/AccountHoldKind"}}},"AccountHoldKind":{"type":"string","description":"What funds are set aside for.","enum":["Boot","Reservation"]},"AccountInfo":{"type":"object","required":["balance"],"properties":{"balance":{"type":"number","format":"double","description":"Balance in USD"}}},"AccountInfoProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["balance"],"properties":{"balance":{"type":"number","format":"double","description":"Balance in USD"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AccountRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/AccountSelector"},"with_auto_top_up":{"type":"boolean","description":"Include the account's auto top-up state in the response\n(`AccountInfo.auto_top_up`). Team accounts require billing role."}}},"AccountRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/AccountSelector"},"with_auto_top_up":{"type":"boolean","description":"Include the account's auto top-up state in the response\n(`AccountInfo.auto_top_up`). Team accounts require billing role."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AccountSelector":{"oneOf":[{"type":"string","enum":["ByToken"]},{"type":"object","required":["ByTeam"],"properties":{"ByTeam":{"type":"string"}},"example":{"ByTeamId":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}},{"type":"object","description":"Read a provider's billing account: its root, its Operator grantees\nand platform Admins hold `ViewProviderBilling` on it. Accepted by\nthe account-info, transaction-list and auto top-up recovery\nroutes; every route that changes an account refuses it.","required":["ByProvider"],"properties":{"ByProvider":{"type":"string","description":"Read a provider's billing account: its root, its Operator grantees\nand platform Admins hold `ViewProviderBilling` on it. Accepted by\nthe account-info, transaction-list and auto top-up recovery\nroutes; every route that changes an account refuses it."}}}]},"AccountTargetSelector":{"oneOf":[{"type":"object","description":"Target user accounts by ID","required":["ByUserIds"],"properties":{"ByUserIds":{"type":"array","items":{"type":"string"},"description":"Target user accounts by ID"}},"example":{"ByUserIds":["00000000-0000-0000-0000-000000000000"]}},{"type":"object","description":"Target team accounts by ID","required":["ByTeamIds"],"properties":{"ByTeamIds":{"type":"array","items":{"type":"string"},"description":"Target team accounts by ID"}},"example":{"ByTeamIds":["00000000-0000-0000-0000-000000000000"]}}],"description":"Selector for financial operations targeting specific user or team accounts by ID."},"AddApiKeyRequest":{"type":"object","required":["active"],"properties":{"active":{"type":"boolean","description":"Enable/disable API key"},"name":{"type":["string","null"],"description":"API key name","example":"my-key"},"team_id":{"type":["string","null"],"description":"Team ID in case of a team API key","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"AddApiKeyRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["active"],"properties":{"active":{"type":"boolean","description":"Enable/disable API key"},"name":{"type":["string","null"],"description":"API key name","example":"my-key"},"team_id":{"type":["string","null"],"description":"Team ID in case of a team API key","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddApiKeyResponse":{"type":"object","required":["id","active","key"],"properties":{"active":{"type":"boolean","description":"Enabled/disabled status","example":"true"},"id":{"type":"string","description":"API key ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"key":{"type":"string","description":"API key value, only available at generation time","example":"rift_36RFCEBTU2RFJG6IUSLR6OAT839VXVZ6PILPOVXB1aw2as"},"name":{"type":["string","null"],"description":"API key name","example":"my-key"}}},"AddApiKeyResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["id","active","key"],"properties":{"active":{"type":"boolean","description":"Enabled/disabled status","example":"true"},"id":{"type":"string","description":"API key ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"key":{"type":"string","description":"API key value, only available at generation time","example":"rift_36RFCEBTU2RFJG6IUSLR6OAT839VXVZ6PILPOVXB1aw2as"},"name":{"type":["string","null"],"description":"API key name","example":"my-key"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddExecutorToCluster":{"type":"object","required":["executor_id","executor_name"],"properties":{"executor_id":{"type":"string"},"executor_name":{"type":"string"}}},"AddExecutorToClusterProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["executor_id","executor_name"],"properties":{"executor_id":{"type":"string"},"executor_name":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddInstanceTypeRequest":{"type":"object","required":["instance_type"],"properties":{"instance_type":{"$ref":"#/components/schemas/InstanceTypeInfo"},"providers":{"type":["array","null"],"items":{"type":"string"},"description":"List of providers that the instance type should be available on","example":["AWS"]}}},"AddInstanceTypeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["instance_type"],"properties":{"instance_type":{"$ref":"#/components/schemas/InstanceTypeInfo"},"providers":{"type":["array","null"],"items":{"type":"string"},"description":"List of providers that the instance type should be available on","example":["AWS"]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddInstanceVariantRequest":{"type":"object","required":["instance_type_name","variant"],"properties":{"instance_type_name":{"type":"string","description":"Instance type name","example":"p4d"},"variant":{"$ref":"#/components/schemas/InstanceVariantRawInfo"}}},"AddInstanceVariantRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["instance_type_name","variant"],"properties":{"instance_type_name":{"type":"string","description":"Instance type name","example":"p4d"},"variant":{"$ref":"#/components/schemas/InstanceVariantRawInfo"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddNetworkRequest":{"type":"object","required":["name","datacenter","ip_ranges"],"properties":{"datacenter":{"type":"string","description":"Datacenter for the network","example":"us-east-nc-nr-1"},"egress_proxy_url":{"type":["string","null"],"description":"Outbound HTTP(S) proxy used by new VMs on this network. Credentials are not accepted."},"gateway":{"type":["string","null"],"description":"Optional gateway IP address","example":"192.168.1.1"},"iface":{"type":["string","null"],"description":"Optional network interface name","example":"eth0"},"ip_ranges":{"type":"array","items":{"$ref":"#/components/schemas/NetworkIpRange"},"description":"IP ranges to add to the network"},"name":{"type":"string","description":"Network name","example":"private-network-1"},"netmask":{"type":["integer","null"],"format":"int32","description":"Optional network mask","example":24,"minimum":0},"no_proxy":{"type":["string","null"],"description":"Comma-separated proxy bypass targets for Docker and curl on new VMs."},"server_address":{"type":["string","null"],"description":"Optional server address if need to use internal IP for communication"},"team_id":{"type":["string","null"],"description":"Optional team ID","example":"00000000-0000-0000-0000-000000000000"},"team_name":{"type":["string","null"],"description":"Optional team name (alternative to team_id)","example":"my-team"}}},"AddNetworkRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","datacenter","ip_ranges"],"properties":{"datacenter":{"type":"string","description":"Datacenter for the network","example":"us-east-nc-nr-1"},"egress_proxy_url":{"type":["string","null"],"description":"Outbound HTTP(S) proxy used by new VMs on this network. Credentials are not accepted."},"gateway":{"type":["string","null"],"description":"Optional gateway IP address","example":"192.168.1.1"},"iface":{"type":["string","null"],"description":"Optional network interface name","example":"eth0"},"ip_ranges":{"type":"array","items":{"$ref":"#/components/schemas/NetworkIpRange"},"description":"IP ranges to add to the network"},"name":{"type":"string","description":"Network name","example":"private-network-1"},"netmask":{"type":["integer","null"],"format":"int32","description":"Optional network mask","example":24,"minimum":0},"no_proxy":{"type":["string","null"],"description":"Comma-separated proxy bypass targets for Docker and curl on new VMs."},"server_address":{"type":["string","null"],"description":"Optional server address if need to use internal IP for communication"},"team_id":{"type":["string","null"],"description":"Optional team ID","example":"00000000-0000-0000-0000-000000000000"},"team_name":{"type":["string","null"],"description":"Optional team name (alternative to team_id)","example":"my-team"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddNetworkResponse":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"ID of the created network","example":"00000000-0000-0000-0000-000000000000"}}},"AddNetworkResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"ID of the created network","example":"00000000-0000-0000-0000-000000000000"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddRecipeDetails":{"oneOf":[{"type":"object","required":["Docker"],"properties":{"Docker":{"type":"object","required":["image","command","ports","env"],"properties":{"command":{"type":"array","items":{"type":"string"},"description":"Docker command to run the recipe","example":[]},"env":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"Environment variables to set","example":[["JUPYTER_PORT","8117"]]},"image":{"type":"string","description":"Docker image corresponding to the recipe","example":"quay.io/jupyter/pytorch-notebook"},"ports":{"type":"array","items":{"type":"string"},"description":"Ports to expose in the format <host>:<container>:<tcp|udp|sctp>","example":["8117:8888"]}}}}},{"type":"object","required":["VirtualMachine"],"properties":{"VirtualMachine":{"type":"object","required":["image_url"],"properties":{"architecture":{"type":["string","null"],"example":"x86_64"},"cloudinit_url":{"type":["string","null"]},"image_url":{"type":"string","description":"VM image to use for the recipe","example":"https://storage.googleapis.com/cloudrift-vm-disks/disks/ubuntu/24.04/noble-server-cloudimg-amd64.img"},"os_family":{"type":["string","null"],"example":"ubuntu"}}}}}]},"AddRecipeGroupRequest":{"type":"object","required":["name","description"],"properties":{"description":{"type":"string","description":"Description of the recipe group","example":"VM images with various Linux distributions."},"logo_url":{"type":["string","null"],"description":"Logo of the recipe group, if available, e.g. Ubuntu, PyTorch or Jupyter logo","example":"/images/os/logo/linux.svg"},"metadata":{"type":["string","null"],"description":"JSON string with metadata for the recipe group","example":"{\"color\": \"ED7014\"}"},"name":{"type":"string","description":"Name of the recipe group","example":"Linux"},"tags":{"type":["array","null"],"items":{"type":"string"},"description":"Tags for the recipe group to help users find it and filter by them"}}},"AddRecipeGroupRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","description"],"properties":{"description":{"type":"string","description":"Description of the recipe group","example":"VM images with various Linux distributions."},"logo_url":{"type":["string","null"],"description":"Logo of the recipe group, if available, e.g. Ubuntu, PyTorch or Jupyter logo","example":"/images/os/logo/linux.svg"},"metadata":{"type":["string","null"],"description":"JSON string with metadata for the recipe group","example":"{\"color\": \"ED7014\"}"},"name":{"type":"string","description":"Name of the recipe group","example":"Linux"},"tags":{"type":["array","null"],"items":{"type":"string"},"description":"Tags for the recipe group to help users find it and filter by them"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddRecipeRequest":{"type":"object","required":["name","description","details"],"properties":{"description":{"type":"string","description":"Description of the recipe","example":"Docker image with Jupyter, PyTorch and CUDA installed for easy machine learning."},"details":{"$ref":"#/components/schemas/AddRecipeDetails","description":"Recipe object with the recipe details"},"global":{"type":"boolean","description":"If true, create a global recipe (no owner). Only admins can set this to true.\nRegular users' recipes are always owned by them."},"group_name":{"type":["string","null"],"description":"Optional group name to add the recipe to"},"instructions_url":{"type":["string","null"],"description":"URL to the instructions for the recipe, if available","example":"/instructions/deepseek_r1_7b.md"},"logo_url":{"type":["string","null"],"description":"Logo of the recipe, if available, e.g. Ubuntu, PyTorch or Jupyter logo","example":"/images/os/logo/ubuntu.svg"},"name":{"type":"string","description":"Name of the recipe","example":"PyTorch Notebook"},"tags":{"type":["array","null"],"items":{"type":"string"},"description":"Tags for the recipe to help users find it and filter by them"},"team_id":{"type":["string","null"],"description":"Optional team ID to assign ownership to a team instead of the user.\nThe user must be a member of the team to create team-owned recipes.","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"AddRecipeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","description","details"],"properties":{"description":{"type":"string","description":"Description of the recipe","example":"Docker image with Jupyter, PyTorch and CUDA installed for easy machine learning."},"details":{"$ref":"#/components/schemas/AddRecipeDetails","description":"Recipe object with the recipe details"},"global":{"type":"boolean","description":"If true, create a global recipe (no owner). Only admins can set this to true.\nRegular users' recipes are always owned by them."},"group_name":{"type":["string","null"],"description":"Optional group name to add the recipe to"},"instructions_url":{"type":["string","null"],"description":"URL to the instructions for the recipe, if available","example":"/instructions/deepseek_r1_7b.md"},"logo_url":{"type":["string","null"],"description":"Logo of the recipe, if available, e.g. Ubuntu, PyTorch or Jupyter logo","example":"/images/os/logo/ubuntu.svg"},"name":{"type":"string","description":"Name of the recipe","example":"PyTorch Notebook"},"tags":{"type":["array","null"],"items":{"type":"string"},"description":"Tags for the recipe to help users find it and filter by them"},"team_id":{"type":["string","null"],"description":"Optional team ID to assign ownership to a team instead of the user.\nThe user must be a member of the team to create team-owned recipes.","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddRecipeTagRequest":{"type":"object","required":["name","description"],"properties":{"description":{"type":"string"},"name":{"type":"string"}}},"AddRecipeTagRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","description"],"properties":{"description":{"type":"string"},"name":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddSshKeyRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"SSH key name","example":"my-key"},"public_key":{"type":["string","null"],"description":"SSH key public part","example":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD..."}}},"AddSshKeyRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"SSH key name","example":"my-key"},"public_key":{"type":["string","null"],"description":"SSH key public part","example":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD..."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddSshKeyResponse":{"type":"object","required":["public_key"],"properties":{"public_key":{"$ref":"#/components/schemas/SshKey"}}},"AddSshKeyResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["public_key"],"properties":{"public_key":{"$ref":"#/components/schemas/SshKey"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddTeamMemberRequest":{"type":"object","description":"Request to add a team member or create an invite for a non-existent user.","required":["email"],"properties":{"email":{"type":"string","description":"Email of the user to add or invite.","example":"john.doe@example.com"},"role":{"oneOf":[{"$ref":"#/components/schemas/TeamRole","description":"Role to assign (defaults to Member if not specified)."},{"type":"null"}]}}},"AddTeamMemberRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to add a team member or create an invite for a non-existent user.","required":["email"],"properties":{"email":{"type":"string","description":"Email of the user to add or invite.","example":"john.doe@example.com"},"role":{"oneOf":[{"$ref":"#/components/schemas/TeamRole","description":"Role to assign (defaults to Member if not specified)."},{"type":"null"}]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddUserFinancialInfo":{"type":"object","description":"Financial settings to apply when creating a new user account.","properties":{"credit_limit":{"type":["integer","null"],"format":"int64","description":"Credit limit in currency units (cents). Ignored when `unlimited` is true."},"initial_balance":{"type":["integer","null"],"format":"int64","description":"Initial balance in currency units (cents)."},"unlimited":{"type":"boolean","description":"Use unlimited credit limit."}}},"AddUserRequest":{"type":"object","required":["email","name"],"properties":{"email":{"type":"string","example":"newuser@example.com"},"financial":{"oneOf":[{"$ref":"#/components/schemas/AddUserFinancialInfo","description":"Optional financial settings for the new account."},{"type":"null"}]},"name":{"type":"string","example":"Jane Doe"}}},"AddUserRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["email","name"],"properties":{"email":{"type":"string","example":"newuser@example.com"},"financial":{"oneOf":[{"$ref":"#/components/schemas/AddUserFinancialInfo","description":"Optional financial settings for the new account."},{"type":"null"}]},"name":{"type":"string","example":"Jane Doe"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddUserResponse":{"type":"object","required":["user_id","email"],"properties":{"email":{"type":"string","example":"newuser@example.com"},"user_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}}},"AddUserResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["user_id","email"],"properties":{"email":{"type":"string","example":"newuser@example.com"},"user_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AddUserToCluster":{"type":"object","required":["user_email"],"properties":{"user_email":{"type":"string"}}},"AddUserToClusterProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["user_email"],"properties":{"user_email":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AdminAuthorizedKeysResponse":{"type":"object","required":["ssh_keys"],"properties":{"ssh_keys":{"type":"array","items":{"type":"string"}}}},"AdminAuthorizedKeysResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["ssh_keys"],"properties":{"ssh_keys":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AdvanceClockRequest":{"type":"object","required":["seconds"],"properties":{"seconds":{"type":"integer","format":"int64","minimum":0}}},"AdvanceClockRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["seconds"],"properties":{"seconds":{"type":"integer","format":"int64","minimum":0}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AdvanceClockResponse":{"type":"object","required":["current_time"],"properties":{"current_time":{"type":"string"}}},"AdvanceClockResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["current_time"],"properties":{"current_time":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ApiKey":{"type":"object","description":"TODO: Currently we have user API keys and provider API keys\n      This protocol handles only user API keys as provider API keys are planned for removal","required":["id","key","has_secret","active","created_at"],"properties":{"active":{"type":"boolean","description":"Enabled/disabled status","example":"true"},"created_at":{"type":"string","description":"API key creation time","example":"2021-01-01T00:00:00Z"},"creator_email":{"type":["string","null"],"description":"The email of the creator of the API key in case of team API keys","example":"debug@usr.com"},"creator_name":{"type":["string","null"],"description":"The name of the creator of the API key in case of team API keys","example":"Test User"},"has_secret":{"type":"boolean","description":"Whether the API key has a secret part"},"id":{"type":"string","description":"API key ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"key":{"type":"string","description":"Public part of the API key","example":"rift_36RFCEBTU2RFJG6IUSLR6OAT839VXVZ6PILPOVXB1aw2as"},"name":{"type":["string","null"],"description":"API key name","example":"my-key"}}},"ApiKeySelector":{"oneOf":[{"type":"object","required":["ByTeamId"],"properties":{"ByTeamId":{"type":"string"}},"example":{"ByTeamId":{"id":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},{"type":"object","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"}}},"example":{"ById":["f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"]}},{"type":"string","enum":["All"],"example":"All"}]},"AutoTopUpRecoveryInfo":{"type":"object","description":"Returned by `/auto-top-up/recovery-info` when the latest attempt is in\n`RequiresAction`. The FE passes `client_secret` to `stripe.handleNextAction`.","required":["payment_intent_id","client_secret","amount_cents"],"properties":{"amount_cents":{"type":"integer","format":"int64"},"client_secret":{"type":"string"},"payment_intent_id":{"type":"string"}}},"AutoTopUpRecoveryInfoProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Returned by `/auto-top-up/recovery-info` when the latest attempt is in\n`RequiresAction`. The FE passes `client_secret` to `stripe.handleNextAction`.","required":["payment_intent_id","client_secret","amount_cents"],"properties":{"amount_cents":{"type":"integer","format":"int64"},"client_secret":{"type":"string"},"payment_intent_id":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AutoTopUpRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/AccountSelector"}}},"AutoTopUpRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/AccountSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AutoTopUpSettings":{"type":"object","required":["enabled","threshold_cents","top_up_amount_cents"],"properties":{"enabled":{"type":"boolean"},"monthly_cap_cents":{"type":["integer","null"],"format":"int64","description":"Optional cap on auto-top-up spend per calendar month, in cents."},"threshold_cents":{"type":"integer","format":"int64","description":"Trigger threshold in cents. Charge fires when pending balance falls below this."},"top_up_amount_cents":{"type":"integer","format":"int64","description":"Amount charged per top-up, in cents."}}},"AutoTopUpState":{"type":"object","required":["status","spent_this_month_cents"],"properties":{"grace_period_ends_at":{"type":["string","null"],"description":"`last_failed_at + GRACE_DURATION` — frontend shows \"Instances will\nkeep running until {date}\" during the grace window."},"last_charged_at":{"type":["string","null"]},"last_failed_at":{"type":["string","null"]},"last_failure_code":{"type":["string","null"]},"last_failure_message":{"type":["string","null"]},"paused_until":{"type":["string","null"]},"settings":{"oneOf":[{"$ref":"#/components/schemas/AutoTopUpSettings","description":"`None` when status is `Off` and no row exists in the DB yet."},{"type":"null"}]},"spent_this_month_cents":{"type":"integer","format":"int64","description":"Cents charged this calendar month via auto-top-up (sum of Succeeded + Recovered)."},"status":{"$ref":"#/components/schemas/AutoTopUpStatus"}}},"AutoTopUpStateProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["status","spent_this_month_cents"],"properties":{"grace_period_ends_at":{"type":["string","null"],"description":"`last_failed_at + GRACE_DURATION` — frontend shows \"Instances will\nkeep running until {date}\" during the grace window."},"last_charged_at":{"type":["string","null"]},"last_failed_at":{"type":["string","null"]},"last_failure_code":{"type":["string","null"]},"last_failure_message":{"type":["string","null"]},"paused_until":{"type":["string","null"]},"settings":{"oneOf":[{"$ref":"#/components/schemas/AutoTopUpSettings","description":"`None` when status is `Off` and no row exists in the DB yet."},{"type":"null"}]},"spent_this_month_cents":{"type":"integer","format":"int64","description":"Cents charged this calendar month via auto-top-up (sum of Succeeded + Recovered)."},"status":{"$ref":"#/components/schemas/AutoTopUpStatus"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"AutoTopUpStatus":{"type":"string","description":"Derived status — computed server-side from settings + failure state +\nmonthly spend. Frontend uses this directly for UI dispatch.","enum":["Off","Active","CapReached","ChargeFailed","DisabledAfterFailures"]},"AutoTopUpUpdateRequest":{"type":"object","required":["selector","settings"],"properties":{"selector":{"$ref":"#/components/schemas/AccountSelector"},"settings":{"$ref":"#/components/schemas/AutoTopUpSettings"}}},"AutoTopUpUpdateRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector","settings"],"properties":{"selector":{"$ref":"#/components/schemas/AccountSelector"},"settings":{"$ref":"#/components/schemas/AutoTopUpSettings"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"BaseImageCaching":{"type":"string","description":"How the host manages this VM's base image.","enum":["Shared","Ephemeral"]},"Bucket":{"type":"object","required":["bucket_id"],"properties":{"bucket_id":{"type":"integer","format":"int64","minimum":0}}},"BucketProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["bucket_id"],"properties":{"bucket_id":{"type":"integer","format":"int64","minimum":0}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"BulkServiceChargeRequest":{"type":"object","required":["api_key","service","provider","charges"],"properties":{"api_key":{"type":"string","description":"API key of the account to charge: a user's, or a team's. The request itself\nis authenticated by a platform Admin, so this only names the account.","example":"rift_..."},"charges":{"type":"array","items":{"$ref":"#/components/schemas/ServiceCharge"},"description":"Charges to be applied"},"provider":{"type":"string","description":"Name of the provider of the service","example":"TestProvider"},"service":{"type":"string","description":"Name of the service to charge","example":"LLM-Inference-API"}}},"BulkServiceChargeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["api_key","service","provider","charges"],"properties":{"api_key":{"type":"string","description":"API key of the account to charge: a user's, or a team's. The request itself\nis authenticated by a platform Admin, so this only names the account.","example":"rift_..."},"charges":{"type":"array","items":{"$ref":"#/components/schemas/ServiceCharge"},"description":"Charges to be applied"},"provider":{"type":"string","description":"Name of the provider of the service","example":"TestProvider"},"service":{"type":"string","description":"Name of the service to charge","example":"LLM-Inference-API"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"BulkServiceChargeResponse":{"type":"object","required":["request_ids"],"properties":{"request_ids":{"type":"array","items":{"type":"string"},"description":"Either a provided request IDs or generated ones"}}},"BulkServiceChargeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["request_ids"],"properties":{"request_ids":{"type":"array","items":{"type":"string"},"description":"Either a provided request IDs or generated ones"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CancelDrainRequest":{"type":"object","description":"Request to cancel an active drain","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"CancelDrainRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to cancel an active drain","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CancelDrainResponse":{"type":"object","required":["node_ids"],"properties":{"node_ids":{"type":"array","items":{"type":"string"}}}},"CancelDrainResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["node_ids"],"properties":{"node_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CapabilitiesResponse":{"type":"object","description":"What the calling principal may do, and where. Mirrors the two axes of\nthe server's authorization model: `permissions` answers whether an\naction is allowed at all, `scope`, `providers` and\n`provider_permissions` answer which rows it may touch. Gate a client on\n`permissions`; use `provider_permissions` to pick which provider a\nrequest may name for a given action, never to decide access.","required":["features","is_admin"],"properties":{"features":{"type":"array","items":{"$ref":"#/components/schemas/GlobalCapability"},"description":"Deprecated: derive node access from `ListNodes` in `permissions`.","deprecated":true},"is_admin":{"type":"boolean","description":"Deprecated: `scope == Platform`. It is not a permission check; a\nplatform-scoped role without a management permission is still\nrefused on writes.","deprecated":true},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/Permission"},"description":"The caller's effective permission set, sorted by name: the role's\npermissions plus, for an account-anchored provider operator, the\nProvider role's permissions. For a team API key this is the key\ncreator's role permissions minus those whose route gate rejects\nteam principals; operator standing never carries over to a team\nkey. A name this client does not know arrives as `Unknown`."},"provider_name":{"type":["string","null"],"description":"Deprecated: the provider rooted by the caller, if any. Read\n`providers`, which also covers platform scope and operators that do\nnot root the provider.","deprecated":true},"provider_permissions":{"type":"array","items":{"$ref":"#/components/schemas/ProviderPermissions"},"description":"The same providers with the permissions the caller holds on each,\nsorted by provider name. Operator standing is granted per provider\nwith a role, so a caller may hold `ManageNodes` on one provider and\nonly `ListNodes` on another while `permissions` carries both."},"providers":{"type":"array","items":{"type":"string"},"description":"Names of the providers the caller may operate, sorted: every\nprovider under `Platform` scope, the providers the user operates\nunder `Account` scope, none for a team API key."},"scope":{"$ref":"#/components/schemas/ScopeAnchor","description":"Where `permissions` apply: `Platform` for admins, who act on every\nprovider; `Account` for everyone else, including team API keys."}}},"CapabilitiesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"What the calling principal may do, and where. Mirrors the two axes of\nthe server's authorization model: `permissions` answers whether an\naction is allowed at all, `scope`, `providers` and\n`provider_permissions` answer which rows it may touch. Gate a client on\n`permissions`; use `provider_permissions` to pick which provider a\nrequest may name for a given action, never to decide access.","required":["features","is_admin"],"properties":{"features":{"type":"array","items":{"$ref":"#/components/schemas/GlobalCapability"},"description":"Deprecated: derive node access from `ListNodes` in `permissions`.","deprecated":true},"is_admin":{"type":"boolean","description":"Deprecated: `scope == Platform`. It is not a permission check; a\nplatform-scoped role without a management permission is still\nrefused on writes.","deprecated":true},"permissions":{"type":"array","items":{"$ref":"#/components/schemas/Permission"},"description":"The caller's effective permission set, sorted by name: the role's\npermissions plus, for an account-anchored provider operator, the\nProvider role's permissions. For a team API key this is the key\ncreator's role permissions minus those whose route gate rejects\nteam principals; operator standing never carries over to a team\nkey. A name this client does not know arrives as `Unknown`."},"provider_name":{"type":["string","null"],"description":"Deprecated: the provider rooted by the caller, if any. Read\n`providers`, which also covers platform scope and operators that do\nnot root the provider.","deprecated":true},"provider_permissions":{"type":"array","items":{"$ref":"#/components/schemas/ProviderPermissions"},"description":"The same providers with the permissions the caller holds on each,\nsorted by provider name. Operator standing is granted per provider\nwith a role, so a caller may hold `ManageNodes` on one provider and\nonly `ListNodes` on another while `permissions` carries both."},"providers":{"type":"array","items":{"type":"string"},"description":"Names of the providers the caller may operate, sorted: every\nprovider under `Platform` scope, the providers the user operates\nunder `Account` scope, none for a team API key."},"scope":{"$ref":"#/components/schemas/ScopeAnchor","description":"Where `permissions` apply: `Platform` for admins, who act on every\nprovider; `Account` for everyone else, including team API keys."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ChangeGroupRequest":{"type":"object","required":["group"],"properties":{"group":{"type":"string"},"recipes":{"oneOf":[{"$ref":"#/components/schemas/RecipeSelector"},{"type":"null"}]}}},"ChangeGroupRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["group"],"properties":{"group":{"type":"string"},"recipes":{"oneOf":[{"$ref":"#/components/schemas/RecipeSelector"},{"type":"null"}]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ChangeTagRequest":{"type":"object","required":["tag"],"properties":{"groups":{"oneOf":[{"$ref":"#/components/schemas/RecipeSelector"},{"type":"null"}]},"recipes":{"oneOf":[{"$ref":"#/components/schemas/RecipeSelector"},{"type":"null"}]},"tag":{"type":"string"}}},"ChangeTagRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["tag"],"properties":{"groups":{"oneOf":[{"$ref":"#/components/schemas/RecipeSelector"},{"type":"null"}]},"recipes":{"oneOf":[{"$ref":"#/components/schemas/RecipeSelector"},{"type":"null"}]},"tag":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ClusterExecutors":{"type":"object","required":["executors"],"properties":{"executors":{"type":"array","items":{"$ref":"#/components/schemas/ExecutorInfo"}}}},"ClusterExecutorsProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["executors"],"properties":{"executors":{"type":"array","items":{"$ref":"#/components/schemas/ExecutorInfo"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ClusterInfo":{"type":"object","required":["nodes"],"properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInfo"}}}},"ClusterInfoProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["nodes"],"properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInfo"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"Command":{"oneOf":[{"type":"object","required":["BareMetal"],"properties":{"BareMetal":{"$ref":"#/components/schemas/SshServerCommandProto"}}},{"type":"object","required":["SshKeys"],"properties":{"SshKeys":{"$ref":"#/components/schemas/SshServerCommandProto"}}},{"type":"object","required":["Ip"],"properties":{"Ip":{"$ref":"#/components/schemas/IpCommandProto"}}},{"type":"object","required":["Docker"],"properties":{"Docker":{"$ref":"#/components/schemas/DockerCommandProto"}}},{"type":"object","required":["Maas"],"properties":{"Maas":{"$ref":"#/components/schemas/MaasCommandProto"}}},{"type":"object","required":["Virt"],"properties":{"Virt":{"$ref":"#/components/schemas/VirtCommandProto"}}},{"type":"object","required":["System"],"properties":{"System":{"$ref":"#/components/schemas/SystemCommandProto"}}},{"type":"object","required":["Frp"],"properties":{"Frp":{"$ref":"#/components/schemas/FrpCommandProto"}}},{"type":"object","required":["Volume"],"properties":{"Volume":{"$ref":"#/components/schemas/VolumeCommandProto"}}}],"description":"Command to execute on the node - consists of multiple commands"},"CommandInfo":{"type":"object","required":["command_id","status"],"properties":{"bucket_id":{"type":["integer","null"],"format":"int64","description":"bucket id for accessing files produced or consumed by the command","minimum":0},"command_id":{"type":"integer","format":"int64","description":"id for accessing command via the endpoint","minimum":0},"status":{"$ref":"#/components/schemas/CommandStatus","description":"command status like queued, running, completed"}}},"CommandInfoProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["command_id","status"],"properties":{"bucket_id":{"type":["integer","null"],"format":"int64","description":"bucket id for accessing files produced or consumed by the command","minimum":0},"command_id":{"type":"integer","format":"int64","description":"id for accessing command via the endpoint","minimum":0},"status":{"$ref":"#/components/schemas/CommandStatus","description":"command status like queued, running, completed"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CommandOutput":{"oneOf":[{"type":"object","required":["BareMetal"],"properties":{"BareMetal":{"$ref":"#/components/schemas/SshServerCommandOutputProto"}}},{"type":"object","required":["SshKeys"],"properties":{"SshKeys":{"$ref":"#/components/schemas/SshServerCommandOutputProto"}}},{"type":"object","required":["Ip"],"properties":{"Ip":{"$ref":"#/components/schemas/IpCommandOutputProto"}}},{"type":"object","required":["Docker"],"properties":{"Docker":{"$ref":"#/components/schemas/DockerCommandOutputProto"}}},{"type":"object","required":["Virt"],"properties":{"Virt":{"$ref":"#/components/schemas/VirtCommandOutputProto"}}},{"type":"object","required":["System"],"properties":{"System":{"$ref":"#/components/schemas/SystemCommandOutputProto"}}},{"type":"object","required":["Frp"],"properties":{"Frp":{"$ref":"#/components/schemas/FrpCommandOutputProto"}}},{"type":"object","required":["Maas"],"properties":{"Maas":{"$ref":"#/components/schemas/MaasCommandOutputProto"}}},{"type":"object","required":["Volume"],"properties":{"Volume":{"$ref":"#/components/schemas/VolumeCommandOutputProto"}}}]},"CommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["BareMetal"],"properties":{"BareMetal":{"$ref":"#/components/schemas/SshServerCommandOutputProto"}}},{"type":"object","required":["SshKeys"],"properties":{"SshKeys":{"$ref":"#/components/schemas/SshServerCommandOutputProto"}}},{"type":"object","required":["Ip"],"properties":{"Ip":{"$ref":"#/components/schemas/IpCommandOutputProto"}}},{"type":"object","required":["Docker"],"properties":{"Docker":{"$ref":"#/components/schemas/DockerCommandOutputProto"}}},{"type":"object","required":["Virt"],"properties":{"Virt":{"$ref":"#/components/schemas/VirtCommandOutputProto"}}},{"type":"object","required":["System"],"properties":{"System":{"$ref":"#/components/schemas/SystemCommandOutputProto"}}},{"type":"object","required":["Frp"],"properties":{"Frp":{"$ref":"#/components/schemas/FrpCommandOutputProto"}}},{"type":"object","required":["Maas"],"properties":{"Maas":{"$ref":"#/components/schemas/MaasCommandOutputProto"}}},{"type":"object","required":["Volume"],"properties":{"Volume":{"$ref":"#/components/schemas/VolumeCommandOutputProto"}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["BareMetal"],"properties":{"BareMetal":{"$ref":"#/components/schemas/SshServerCommandProto"}}},{"type":"object","required":["SshKeys"],"properties":{"SshKeys":{"$ref":"#/components/schemas/SshServerCommandProto"}}},{"type":"object","required":["Ip"],"properties":{"Ip":{"$ref":"#/components/schemas/IpCommandProto"}}},{"type":"object","required":["Docker"],"properties":{"Docker":{"$ref":"#/components/schemas/DockerCommandProto"}}},{"type":"object","required":["Maas"],"properties":{"Maas":{"$ref":"#/components/schemas/MaasCommandProto"}}},{"type":"object","required":["Virt"],"properties":{"Virt":{"$ref":"#/components/schemas/VirtCommandProto"}}},{"type":"object","required":["System"],"properties":{"System":{"$ref":"#/components/schemas/SystemCommandProto"}}},{"type":"object","required":["Frp"],"properties":{"Frp":{"$ref":"#/components/schemas/FrpCommandProto"}}},{"type":"object","required":["Volume"],"properties":{"Volume":{"$ref":"#/components/schemas/VolumeCommandProto"}}}],"description":"Command to execute on the node - consists of multiple commands"},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CommandResult":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/CommandResultSchema"}}},"CommandResultProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["result"],"properties":{"result":{"$ref":"#/components/schemas/CommandResultSchema"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CommandResultSchema":{"oneOf":[{"type":"object","required":["Ok"],"properties":{"Ok":{"$ref":"#/components/schemas/CommandOutput"}}},{"type":"object","required":["Err"],"properties":{"Err":{"type":"string"}}}]},"CommandStatus":{"type":"string","enum":["Queued","Processing","NotResponding","Completed","Lost"]},"CommandStatusProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"string","enum":["Queued","Processing","NotResponding","Completed","Lost"]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CommandWithContext":{"type":"object","required":["executor_id","command_id","command"],"properties":{"bucket_id":{"type":["integer","null"],"format":"int64","description":"bucket id for accessing files produced or consumed by the command","minimum":0},"cluster_name":{"type":["string","null"],"description":"name of the cluster for running the command"},"command":{"$ref":"#/components/schemas/Command","description":"command for execution"},"command_id":{"type":"integer","format":"int64","description":"id for accessing command via the endpoint","minimum":0},"executor_id":{"type":"string","description":"executor for running the command"},"executor_name":{"type":["string","null"],"description":"name of the node for running the command"}}},"ComputeProviderInfo":{"type":"object","required":["name","datacenters","list_on_marketplace"],"properties":{"datacenters":{"type":"array","items":{"$ref":"#/components/schemas/DataCenterInfo"},"description":"Data centers where the provider has resources"},"description":{"type":["string","null"],"description":"Description of the provider","example":"Biggest cloud provider on earth"},"email":{"type":["string","null"],"description":"Provider email address","example":"support@aws.amazon.com"},"list_on_marketplace":{"type":"boolean","description":"Whether the provider should be listed on the marketplace","example":true},"logo_url":{"type":["string","null"],"description":"Provider logo URL","example":"https://en.m.wikipedia.org/wiki/File:Amazon_Web_Services_Logo.svg"},"name":{"type":"string","description":"Provider name (unique ID)","example":"Arcane Web Services"},"payout_settings":{"oneOf":[{"$ref":"#/components/schemas/ProviderPayoutSettingsInfo","description":"Payout settings, present only when the request sets\n`with_payout_settings` and the provider is enrolled."},{"type":"null"}]},"website":{"type":["string","null"],"description":"Provider website URL","example":"https://aws.amazon.com/"}}},"ComputeProviderSelector":{"oneOf":[{"type":"string","description":"Select all providers","enum":["All"]},{"type":"object","description":"Select providers by name","required":["ByName"],"properties":{"ByName":{"type":"array","items":{"type":"string"},"description":"Select providers by name"}}}]},"ContainerDesc":{"type":"object","required":["image","ports","env","open_stdin","stdin_once","attach_stdin","attach_stdout","attach_stderr","tty","command","host_config","rm"],"properties":{"attach_stderr":{"type":"boolean","description":"attach to container's stderr"},"attach_stdin":{"type":"boolean","description":"attach to container's stdin"},"attach_stdout":{"type":"boolean","description":"attach to container's stdout"},"command":{"type":"array","items":{"type":"string"},"description":"command for executing in the container","example":["python","-c","print('Hello CloudRift')"]},"env":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"environment variables to set in the container","example":[]},"host_config":{"$ref":"#/components/schemas/HostConfig","description":"host configuration for the container"},"image":{"type":"string","description":"image to use in the container","example":"python:slim"},"name":{"type":["string","null"],"description":"Optional name for the container","example":"my_container_name"},"open_stdin":{"type":"boolean","description":"open stdin for the container"},"ports":{"type":"array","items":{"$ref":"#/components/schemas/PortBinding"},"description":"ports to open for the container"},"rm":{"type":"boolean","description":"flag to remove the container when it exits"},"stdin_once":{"type":"boolean","description":"close stdin after the 1 attached client disconnects"},"tty":{"type":"boolean","description":"attach standard streams to a TTY, including stdin if it is not closed"},"user":{"type":["string","null"],"description":"user for the container"},"volumes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/DockerVolumeMount"},"description":"Volume mounts for the container"}}},"ContainerEventType":{"type":"string","enum":["Create","Start","Restart","Pause","Destroy","Stop","Unpause"]},"ContainerState":{"type":"string","enum":["Created","Running","Paused","Restarting","Exited","Removing","Dead"]},"ContainerSummary":{"type":"object","required":["container_id","image","command","created","state","ports","names"],"properties":{"command":{"type":"string","description":"command for executing in the container"},"container_id":{"type":"string","description":"id for accessing container from the endpoint"},"created":{"type":"integer","format":"int64","description":"UNIX timestamp when container was created"},"image":{"type":"string","description":"image used when creating container"},"names":{"type":"array","items":{"type":"string"},"description":"names of the container"},"ports":{"type":"array","items":{"type":"string"},"description":"port mappings for the container"},"state":{"$ref":"#/components/schemas/ContainerState","description":"status of the container as reported by Docker, like running, stopped, etc."}}},"CpuInfo":{"type":"object","required":["brand","brand_short","physical_core_count","logical_core_count"],"properties":{"brand":{"type":"string","description":"Full brand name of the CPU","example":"AMD Ryzen Threadripper 1950X 16-Core Processor"},"brand_short":{"type":"string","description":"Short and recognizable brand name of the CPU","example":"Threadripper 1950X"},"logical_core_count":{"type":"integer","format":"int32","description":"Number of logical cores","example":32,"minimum":0},"physical_core_count":{"type":"integer","format":"int32","description":"Number of physical cores","example":16,"minimum":0},"vendor":{"type":["string","null"],"description":"Vendor of the CPU","example":"AMD"},"vendor_logo_url":{"type":["string","null"],"description":"Logo of the CPU vendor","example":"https://storage.googleapis.com/cloudrift-resources/vendor/logo/advanced-micro-devices-white-with-text.svg"}}},"CpuSharingPolicy":{"type":"string","description":"SMT and overcommit policy for a variant's vCPUs.","enum":["Dedicated","Packed","Shared"]},"CreateCluster":{"type":"object","required":["name","public"],"properties":{"name":{"type":"string"},"public":{"type":"boolean"}}},"CreateClusterProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","public"],"properties":{"name":{"type":"string"},"public":{"type":"boolean"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreatePaymentIntentResponse":{"type":"object","required":["payment_intent_id"],"properties":{"payment_intent_id":{"type":"string","description":"ID of the payment intent - this should be used as client_reference_id in Stripe\nor other external payment processor"}}},"CreatePaymentIntentResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["payment_intent_id"],"properties":{"payment_intent_id":{"type":"string","description":"ID of the payment intent - this should be used as client_reference_id in Stripe\nor other external payment processor"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreateQuotaRequest":{"type":"object","required":["node_id","recipient","name","resources"],"properties":{"name":{"type":"string","description":"Operator label, e.g. \"KMG-serv4-2026\""},"node_id":{"type":"string"},"recipient":{"$ref":"#/components/schemas/QuotaRecipient"},"resources":{"$ref":"#/components/schemas/QuotaResources"},"valid_from":{"type":["string","null"],"description":"Defaults to now."},"valid_till":{"type":["string","null"],"description":"`None` = no expiry."}}},"CreateQuotaRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["node_id","recipient","name","resources"],"properties":{"name":{"type":"string","description":"Operator label, e.g. \"KMG-serv4-2026\""},"node_id":{"type":"string"},"recipient":{"$ref":"#/components/schemas/QuotaRecipient"},"resources":{"$ref":"#/components/schemas/QuotaResources"},"valid_from":{"type":["string","null"],"description":"Defaults to now."},"valid_till":{"type":["string","null"],"description":"`None` = no expiry."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreateQuotaResponse":{"type":"object","required":["quota"],"properties":{"quota":{"$ref":"#/components/schemas/Quota","description":"The created quota, fully populated — saves the operator UI a\nfollow-up list call."}}},"CreateQuotaResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["quota"],"properties":{"quota":{"$ref":"#/components/schemas/Quota","description":"The created quota, fully populated — saves the operator UI a\nfollow-up list call."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreateReservationRequest":{"type":"object","required":["executor_id","reservation_type_id"],"properties":{"billing_exempt":{"type":"boolean","description":"Whether this reservation is exempt from billing (admins only)"},"executor_id":{"type":"string","description":"ID of the executor to attach the reservation to"},"reservation_type_id":{"type":"string","description":"ID of the reservation type determining duration/discount"},"team_id":{"type":["string","null"],"description":"Optional team ID"}}},"CreateReservationRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["executor_id","reservation_type_id"],"properties":{"billing_exempt":{"type":"boolean","description":"Whether this reservation is exempt from billing (admins only)"},"executor_id":{"type":"string","description":"ID of the executor to attach the reservation to"},"reservation_type_id":{"type":"string","description":"ID of the reservation type determining duration/discount"},"team_id":{"type":["string","null"],"description":"Optional team ID"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreateReservationResponse":{"type":"object","required":["reservation_id"],"properties":{"reservation_id":{"type":"string","description":"ID of the created reservation"}}},"CreateReservationResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["reservation_id"],"properties":{"reservation_id":{"type":"string","description":"ID of the created reservation"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreateTeamRequest":{"type":"object","required":["name"],"properties":{"description":{"type":["string","null"],"example":"Team responsible for backend development"},"name":{"type":"string","example":"Engineering Team"}}},"CreateTeamRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name"],"properties":{"description":{"type":["string","null"],"example":"Team responsible for backend development"},"name":{"type":"string","example":"Engineering Team"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreateTeamResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["id","name","account_id","created_at","updated_at","user_role"],"properties":{"account_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"created_at":{"type":"string"},"description":{"type":["string","null"],"example":"Team responsible for backend development"},"id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"name":{"type":"string","example":"Engineering Team"},"updated_at":{"type":"string"},"user_role":{"type":"string","example":"Owner"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreateVolumeRequest":{"type":"object","required":["name","size_gb","datacenter","volume_type_name"],"properties":{"billing_exempt":{"type":"boolean","description":"Admin-only: if true, no billing or provider payout for this volume"},"datacenter":{"type":"string","description":"Datacenter name where the volume should be created","example":"us-east-1"},"description":{"type":["string","null"],"description":"Optional description","example":"Data storage for ML training"},"name":{"type":"string","description":"Volume name","example":"my-data-volume"},"size_gb":{"type":"integer","format":"int32","description":"Volume size in GB","example":100},"team_id":{"type":["string","null"],"description":"Team ID in case of a team volume","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"volume_type_name":{"type":"string","description":"Volume type name","example":"standard"}}},"CreateVolumeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","size_gb","datacenter","volume_type_name"],"properties":{"billing_exempt":{"type":"boolean","description":"Admin-only: if true, no billing or provider payout for this volume"},"datacenter":{"type":"string","description":"Datacenter name where the volume should be created","example":"us-east-1"},"description":{"type":["string","null"],"description":"Optional description","example":"Data storage for ML training"},"name":{"type":"string","description":"Volume name","example":"my-data-volume"},"size_gb":{"type":"integer","format":"int32","description":"Volume size in GB","example":100},"team_id":{"type":["string","null"],"description":"Team ID in case of a team volume","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"volume_type_name":{"type":"string","description":"Volume type name","example":"standard"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CreateVolumeResponse":{"type":"object","required":["volume"],"properties":{"volume":{"$ref":"#/components/schemas/VolumeInfo","description":"Created volume information"}}},"CreateVolumeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["volume"],"properties":{"volume":{"$ref":"#/components/schemas/VolumeInfo","description":"Created volume information"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"CustomInstancePricing":{"type":"object","description":"Per-dimension weights (sum to 1.0) for splitting a node's `cost_per_hour`\nacross a custom shape's resources.","required":["gpu_weight","vcpu_weight","ram_weight","disk_weight"],"properties":{"disk_weight":{"type":"number","format":"double"},"gpu_weight":{"type":"number","format":"double"},"ram_weight":{"type":"number","format":"double"},"vcpu_weight":{"type":"number","format":"double"}}},"DataCenterInfo":{"type":"object","required":["name","location"],"properties":{"country_code":{"type":["string","null"],"description":"Data center country code","example":"US"},"location":{"type":"array","items":false,"prefixItems":[{"type":"number","format":"float"},{"type":"number","format":"float"}],"description":"Data center geographical location","example":[37.7749,-122.4194]},"name":{"type":"string","description":"Data center name like 'us-east-nc-nr-1' (unique ID)","example":"us-east-nc-nr-1"}}},"DatacenterNetworks":{"type":"object","required":["datacenter","networks"],"properties":{"datacenter":{"type":"string"},"networks":{"type":"array","items":{"$ref":"#/components/schemas/NetworkInfo"}}}},"DeactivationCause":{"type":"string","description":"Why a rental was deactivated before reaching the Active state.","enum":["DockerImagePullFailed","DockerCommandFailed","VmBootFailed","PlatformError"]},"DeleteApiKeysRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/ApiKeySelector","description":"Which API key(s) to delete"}}},"DeleteApiKeysRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/ApiKeySelector","description":"Which API key(s) to delete"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteApiKeysResponse":{"type":"object","required":["status","keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/KeyResult"},"description":"Information about the deleted API keys with their operation status"},"status":{"$ref":"#/components/schemas/ResponseStatus","description":"Overall status of the operation"}}},"DeleteApiKeysResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["status","keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/KeyResult"},"description":"Information about the deleted API keys with their operation status"},"status":{"$ref":"#/components/schemas/ResponseStatus","description":"Overall status of the operation"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteNetworkRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/DeleteNetworkSelector","description":"Network selector"}}},"DeleteNetworkRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/DeleteNetworkSelector","description":"Network selector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteNetworkResponse":{"type":"object","required":["deleted_ids","active_instance_count"],"properties":{"active_instance_count":{"type":"integer","format":"int64","description":"Number of active instances that were using this network","minimum":0},"deleted_ids":{"type":"array","items":{"type":"string"},"description":"IDs of deleted networks"}}},"DeleteNetworkResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["deleted_ids","active_instance_count"],"properties":{"active_instance_count":{"type":"integer","format":"int64","description":"Number of active instances that were using this network","minimum":0},"deleted_ids":{"type":"array","items":{"type":"string"},"description":"IDs of deleted networks"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteNetworkSelector":{"oneOf":[{"type":"object","description":"Select network by datacenter and name","required":["ByDatacenterAndName"],"properties":{"ByDatacenterAndName":{"type":"object","description":"Select network by datacenter and name","required":["datacenter","network"],"properties":{"datacenter":{"type":"string"},"network":{"type":"string"}}}},"example":{"ByDatacenterAndName":{"datacenter":"us-east-nc-nr-1","network":"private-network-1"}}}],"description":"Selector for identifying a network"},"DeleteNodeRequest":{"type":"object","description":"Request to permanently delete nodes from the system","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"DeleteNodeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to permanently delete nodes from the system","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteNodeResponse":{"type":"object","required":["node_ids"],"properties":{"node_ids":{"type":"array","items":{"type":"string"}}}},"DeleteNodeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["node_ids"],"properties":{"node_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteSshKeyRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/SshKeySelector"}}},"DeleteSshKeyRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/SshKeySelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteUserRequest":{"type":"object","description":"Admin-only request to erase a user. See `docs/SOC2_USER_DELETION.md`.","required":["user_id","reason"],"properties":{"dry_run":{"type":"boolean","description":"If true, run pre-flight only; no mutation."},"reason":{"type":"string","description":"Recorded in the audit log.","example":"GDPR erasure request, ticket SOC2-42"},"user_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}}},"DeleteUserRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Admin-only request to erase a user. See `docs/SOC2_USER_DELETION.md`.","required":["user_id","reason"],"properties":{"dry_run":{"type":"boolean","description":"If true, run pre-flight only; no mutation."},"reason":{"type":"string","description":"Recorded in the audit log.","example":"GDPR erasure request, ticket SOC2-42"},"user_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteUserResponse":{"type":"object","required":["dry_run","report"],"properties":{"dry_run":{"type":"boolean"},"report":{"$ref":"#/components/schemas/UserDeletionReport"}}},"DeleteUserResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["dry_run","report"],"properties":{"dry_run":{"type":"boolean"},"report":{"$ref":"#/components/schemas/UserDeletionReport"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteVolumeRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/VolumeSelector","description":"Volume selector"},"team_id":{"type":["string","null"],"description":"Team ID in case of team volumes","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"DeleteVolumeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/VolumeSelector","description":"Volume selector"},"team_id":{"type":["string","null"],"description":"Team ID in case of team volumes","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeleteVolumeResponse":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Success message"}}},"DeleteVolumeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Success message"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DeviceSelector":{"oneOf":[{"type":"string","enum":["None"]},{"type":"string","enum":["All"]},{"type":"object","required":["Count"],"properties":{"Count":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["Range"],"properties":{"Range":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"maxItems":2,"minItems":2}}},{"type":"object","description":"TODO (FC-205): consider using BigInt as mask for efficiency","required":["Indices"],"properties":{"Indices":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"TODO (FC-205): consider using BigInt as mask for efficiency"}}}]},"DiskInfo":{"type":"object","required":["kind","name","fs_type","mount_point","size"],"properties":{"fs_type":{"type":"string","description":"File system type like ext4, xfs","example":"ext4"},"kind":{"$ref":"#/components/schemas/DiskKind","description":"Disk kind like HDD, SSD"},"mount_point":{"type":"string","description":"Mount point of the disk like /","example":"/"},"name":{"type":"string","description":"Disk name like sda, nvme0n1","example":"nvme0n1"},"size":{"type":"integer","format":"int64","description":"Total disk size in bytes","example":"1_073_741_824_000","minimum":0}}},"DiskKind":{"type":"string","enum":["HDD","SSD","Unknown"]},"DockerCommand":{"oneOf":[{"type":"object","description":"Pull an image","required":["image","type"],"properties":{"image":{"type":"string","description":"image to pull"},"registry_auth":{"oneOf":[{"$ref":"#/components/schemas/RegistryAuth","description":"optional registry authentication"},{"type":"null"}]},"type":{"type":"string","enum":["PullImage"]}}},{"allOf":[{"$ref":"#/components/schemas/ContainerDesc","description":"Create a container"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CreateContainer"]}}}],"description":"Create a container"},{"type":"object","description":"Copy file into the container from the files service","required":["container","bucket_id","remote_key","local_path","type"],"properties":{"bucket_id":{"type":"integer","format":"int64","description":"bucket to read from in the file service","minimum":0},"container":{"type":"string","description":"id or name of the container on the node"},"local_path":{"type":"string","description":"path to the file in the container"},"remote_key":{"type":"string","description":"key (path) to the file in the file service"},"type":{"type":"string","enum":["CopyIntoContainer"]}}},{"type":"object","description":"Copy file from the container to the file service","required":["container","bucket_id","remote_key","local_path","type"],"properties":{"bucket_id":{"type":"integer","format":"int64","description":"bucket to write to in the file service","minimum":0},"container":{"type":"string","description":"id or name of the container on the node"},"local_path":{"type":"string","description":"path to the file in the container"},"remote_key":{"type":"string","description":"key (path) to store file under in the file service"},"type":{"type":"string","enum":["CopyFromContainer"]}}},{"type":"object","description":"Start the container","required":["container","detach","type"],"properties":{"container":{"type":"string","description":"id or name of the container on the node"},"detach":{"type":"boolean","description":"don't wait for the container to finish and return status immediately"},"type":{"type":"string","enum":["StartContainer"]}}},{"allOf":[{"$ref":"#/components/schemas/ExecDesc","description":"Create an exec instance in the container"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CreateExec"]}}}],"description":"Create an exec instance in the container"},{"type":"object","description":"Start a previously set up exec instance","required":["exec_id","detach","tty","type"],"properties":{"console_size":{"type":["array","null"],"items":false,"prefixItems":[{"type":"integer","format":"int32","minimum":0},{"type":"integer","format":"int32","minimum":0}],"description":"initial terminal size if attaching to a TTY: (height, width)"},"detach":{"type":"boolean","description":"detach from the command, i.e. don't wait for the command to finish"},"exec_id":{"type":"string","description":"id of the exec instance"},"tty":{"type":"boolean","description":"attach to exec process stdout and stream data to the client"},"type":{"type":"string","enum":["StartExec"]}}},{"type":"object","description":"List containers on the node","required":["all","type"],"properties":{"all":{"type":"boolean","description":"show all containers, only running containers are shown by default"},"type":{"type":"string","enum":["ListContainers"]}}},{"type":"object","description":"Get logs from the container","required":["container","stdout","stderr","since","type"],"properties":{"container":{"type":"string","description":"id or name of the container on the node"},"since":{"type":"integer","format":"int64","description":"show logs since timestamp (RFC3339 or RFC3339Nano format)"},"stderr":{"type":"boolean","description":"include stderr"},"stdout":{"type":"boolean","description":"include stdout"},"tail":{"type":["integer","null"],"format":"int64","description":"number of lines to tail from the end of the logs","minimum":0},"type":{"type":"string","enum":["StreamContainerLogs"]}}},{"type":"object","description":"Kill the container","required":["container","type"],"properties":{"container":{"type":"string","description":"id or name of the container on the node"},"ok_if_not_exists":{"type":"boolean","description":"succeed if the container doesn't exist"},"signal":{"type":["string","null"],"description":"signal to send to the container"},"type":{"type":"string","enum":["KillContainer"]}}},{"type":"object","required":["container","force","type"],"properties":{"container":{"type":"string","description":"id or name of the container on the node"},"force":{"type":"boolean","description":"force removal of the container"},"ok_if_not_exists":{"type":"boolean","description":"succeed if the container doesn't exist"},"type":{"type":"string","enum":["RemoveContainer"]}}},{"type":"object","required":["name","driver","options","type"],"properties":{"driver":{"type":"string","description":"driver for the network"},"gateway":{"type":["string","null"],"description":"gateway for the network"},"ip_range":{"type":["string","null"],"description":"ip range for the network"},"name":{"type":"string","description":"name of the network"},"options":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"additional options for the network"},"subnet":{"type":["string","null"],"description":"subnet for the network"},"type":{"type":"string","enum":["CreateNetwork"]}}},{"type":"object","required":["docker_id","type"],"properties":{"docker_id":{"type":"string","description":"id of the network to remove"},"ok_if_not_exists":{"type":"boolean","description":"succeed if the container doesn't exist"},"type":{"type":"string","enum":["RemoveNetwork"]}}}],"description":"Command to execute on the node"},"DockerCommandOutput":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["PullImage"]}}},{"type":"object","required":["container_id","container_name","type"],"properties":{"container_id":{"type":"string"},"container_name":{"type":"string"},"type":{"type":"string","enum":["CreateContainer"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CopyIntoContainer"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CopyFromContainer"]}}},{"type":"object","required":["type"],"properties":{"exit_code":{"type":["integer","null"],"format":"int64"},"type":{"type":"string","enum":["StartContainer"]}}},{"type":"object","required":["exec_id","type"],"properties":{"exec_id":{"type":"string"},"type":{"type":"string","enum":["CreateExec"]}}},{"type":"object","required":["type"],"properties":{"exit_code":{"type":["integer","null"],"format":"int64"},"type":{"type":"string","enum":["StartExec"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ResizeExec"]}}},{"type":"object","required":["containers","type"],"properties":{"containers":{"type":"array","items":{"$ref":"#/components/schemas/ContainerSummary"}},"type":{"type":"string","enum":["ListContainers"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["StreamContainerLogs"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ResizeContainerTTY"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["KillContainer"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["RemoveContainer"]}}},{"type":"object","required":["docker_id","type"],"properties":{"docker_id":{"type":"string"},"type":{"type":"string","enum":["CreateNetwork"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["RemoveNetwork"]}}}],"description":"Result of the command execution"},"DockerCommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["PullImage"]}}},{"type":"object","required":["container_id","container_name","type"],"properties":{"container_id":{"type":"string"},"container_name":{"type":"string"},"type":{"type":"string","enum":["CreateContainer"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CopyIntoContainer"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CopyFromContainer"]}}},{"type":"object","required":["type"],"properties":{"exit_code":{"type":["integer","null"],"format":"int64"},"type":{"type":"string","enum":["StartContainer"]}}},{"type":"object","required":["exec_id","type"],"properties":{"exec_id":{"type":"string"},"type":{"type":"string","enum":["CreateExec"]}}},{"type":"object","required":["type"],"properties":{"exit_code":{"type":["integer","null"],"format":"int64"},"type":{"type":"string","enum":["StartExec"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ResizeExec"]}}},{"type":"object","required":["containers","type"],"properties":{"containers":{"type":"array","items":{"$ref":"#/components/schemas/ContainerSummary"}},"type":{"type":"string","enum":["ListContainers"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["StreamContainerLogs"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["ResizeContainerTTY"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["KillContainer"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["RemoveContainer"]}}},{"type":"object","required":["docker_id","type"],"properties":{"docker_id":{"type":"string"},"type":{"type":"string","enum":["CreateNetwork"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["RemoveNetwork"]}}}],"description":"Result of the command execution"},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DockerCommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","description":"Pull an image","required":["image","type"],"properties":{"image":{"type":"string","description":"image to pull"},"registry_auth":{"oneOf":[{"$ref":"#/components/schemas/RegistryAuth","description":"optional registry authentication"},{"type":"null"}]},"type":{"type":"string","enum":["PullImage"]}}},{"allOf":[{"$ref":"#/components/schemas/ContainerDesc","description":"Create a container"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CreateContainer"]}}}],"description":"Create a container"},{"type":"object","description":"Copy file into the container from the files service","required":["container","bucket_id","remote_key","local_path","type"],"properties":{"bucket_id":{"type":"integer","format":"int64","description":"bucket to read from in the file service","minimum":0},"container":{"type":"string","description":"id or name of the container on the node"},"local_path":{"type":"string","description":"path to the file in the container"},"remote_key":{"type":"string","description":"key (path) to the file in the file service"},"type":{"type":"string","enum":["CopyIntoContainer"]}}},{"type":"object","description":"Copy file from the container to the file service","required":["container","bucket_id","remote_key","local_path","type"],"properties":{"bucket_id":{"type":"integer","format":"int64","description":"bucket to write to in the file service","minimum":0},"container":{"type":"string","description":"id or name of the container on the node"},"local_path":{"type":"string","description":"path to the file in the container"},"remote_key":{"type":"string","description":"key (path) to store file under in the file service"},"type":{"type":"string","enum":["CopyFromContainer"]}}},{"type":"object","description":"Start the container","required":["container","detach","type"],"properties":{"container":{"type":"string","description":"id or name of the container on the node"},"detach":{"type":"boolean","description":"don't wait for the container to finish and return status immediately"},"type":{"type":"string","enum":["StartContainer"]}}},{"allOf":[{"$ref":"#/components/schemas/ExecDesc","description":"Create an exec instance in the container"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["CreateExec"]}}}],"description":"Create an exec instance in the container"},{"type":"object","description":"Start a previously set up exec instance","required":["exec_id","detach","tty","type"],"properties":{"console_size":{"type":["array","null"],"items":false,"prefixItems":[{"type":"integer","format":"int32","minimum":0},{"type":"integer","format":"int32","minimum":0}],"description":"initial terminal size if attaching to a TTY: (height, width)"},"detach":{"type":"boolean","description":"detach from the command, i.e. don't wait for the command to finish"},"exec_id":{"type":"string","description":"id of the exec instance"},"tty":{"type":"boolean","description":"attach to exec process stdout and stream data to the client"},"type":{"type":"string","enum":["StartExec"]}}},{"type":"object","description":"List containers on the node","required":["all","type"],"properties":{"all":{"type":"boolean","description":"show all containers, only running containers are shown by default"},"type":{"type":"string","enum":["ListContainers"]}}},{"type":"object","description":"Get logs from the container","required":["container","stdout","stderr","since","type"],"properties":{"container":{"type":"string","description":"id or name of the container on the node"},"since":{"type":"integer","format":"int64","description":"show logs since timestamp (RFC3339 or RFC3339Nano format)"},"stderr":{"type":"boolean","description":"include stderr"},"stdout":{"type":"boolean","description":"include stdout"},"tail":{"type":["integer","null"],"format":"int64","description":"number of lines to tail from the end of the logs","minimum":0},"type":{"type":"string","enum":["StreamContainerLogs"]}}},{"type":"object","description":"Kill the container","required":["container","type"],"properties":{"container":{"type":"string","description":"id or name of the container on the node"},"ok_if_not_exists":{"type":"boolean","description":"succeed if the container doesn't exist"},"signal":{"type":["string","null"],"description":"signal to send to the container"},"type":{"type":"string","enum":["KillContainer"]}}},{"type":"object","required":["container","force","type"],"properties":{"container":{"type":"string","description":"id or name of the container on the node"},"force":{"type":"boolean","description":"force removal of the container"},"ok_if_not_exists":{"type":"boolean","description":"succeed if the container doesn't exist"},"type":{"type":"string","enum":["RemoveContainer"]}}},{"type":"object","required":["name","driver","options","type"],"properties":{"driver":{"type":"string","description":"driver for the network"},"gateway":{"type":["string","null"],"description":"gateway for the network"},"ip_range":{"type":["string","null"],"description":"ip range for the network"},"name":{"type":"string","description":"name of the network"},"options":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"additional options for the network"},"subnet":{"type":["string","null"],"description":"subnet for the network"},"type":{"type":"string","enum":["CreateNetwork"]}}},{"type":"object","required":["docker_id","type"],"properties":{"docker_id":{"type":"string","description":"id of the network to remove"},"ok_if_not_exists":{"type":"boolean","description":"succeed if the container doesn't exist"},"type":{"type":"string","enum":["RemoveNetwork"]}}}],"description":"Command to execute on the node"},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DockerEvent":{"type":"object","required":["event_type","actor_id"],"properties":{"actor_id":{"type":"string","description":"container, network or other ID"},"event_type":{"$ref":"#/components/schemas/DockerEventType","description":"type of the event"}}},"DockerEventType":{"oneOf":[{"type":"object","required":["Container"],"properties":{"Container":{"$ref":"#/components/schemas/ContainerEventType"}}},{"type":"object","required":["Network"],"properties":{"Network":{"$ref":"#/components/schemas/NetworkEventType"}}}]},"DockerRegistryAuth":{"oneOf":[{"type":"object","required":["UsernamePassword"],"properties":{"UsernamePassword":{"type":"object","required":["username","password"],"properties":{"password":{"type":"string"},"username":{"type":"string"}}}}}]},"DockerVolumeMount":{"type":"object","description":"Volume mount configuration for Docker containers with Ceph RBD","required":["ceph_pool","ceph_image","mount_path"],"properties":{"ceph_image":{"type":"string","description":"Ceph RBD image name"},"ceph_pool":{"type":"string","description":"Ceph pool name where the RBD image is stored"},"mount_path":{"type":"string","description":"Mount path in the container","example":"/data"}}},"DrainNodeRequest":{"type":"object","description":"Request to start draining nodes","required":["selector","grace_period_secs"],"properties":{"custom_message":{"type":["string","null"],"description":"Custom message to include in the notification email (uses default if not provided)"},"grace_period_secs":{"type":"integer","format":"int64","description":"Grace period in seconds before instances are terminated\nProviders must give occupied nodes at least 1209600 seconds (two weeks).","example":1209600},"notify_users":{"type":"boolean","description":"Whether to send notification emails to users with active instances"},"selector":{"$ref":"#/components/schemas/NodeAdminSelector","description":"Selector for nodes to drain"}}},"DrainNodeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to start draining nodes","required":["selector","grace_period_secs"],"properties":{"custom_message":{"type":["string","null"],"description":"Custom message to include in the notification email (uses default if not provided)"},"grace_period_secs":{"type":"integer","format":"int64","description":"Grace period in seconds before instances are terminated\nProviders must give occupied nodes at least 1209600 seconds (two weeks).","example":1209600},"notify_users":{"type":"boolean","description":"Whether to send notification emails to users with active instances"},"selector":{"$ref":"#/components/schemas/NodeAdminSelector","description":"Selector for nodes to drain"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"DrainNodeResponse":{"type":"object","description":"Response after starting node drain","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/NodeDrainResult"}}}},"DrainNodeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Response after starting node drain","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/NodeDrainResult"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"EmailVerificationResendRequest":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email to send the verification link","example":"debug@usr.com"}}},"EmailVerificationResendRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email to send the verification link","example":"debug@usr.com"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"EvictedImage":{"type":"object","description":"A base image the node evicted (or skipped downloading) during `SyncImages`,\nreported back to the server for observability.","required":["file_name","reason","freed_bytes"],"properties":{"file_name":{"type":"string"},"freed_bytes":{"type":"integer","format":"int64","minimum":0},"reason":{"$ref":"#/components/schemas/ImageEvictionReason"}}},"ExecDesc":{"type":"object","required":["container","attach_stdin","attach_stdout","attach_stderr","tty","privileged","env","command"],"properties":{"attach_stderr":{"type":"boolean","description":"attach to exec process stderr and stream data to the client"},"attach_stdin":{"type":"boolean","description":"attach to exec process stdin and stream data from the client"},"attach_stdout":{"type":"boolean","description":"attach to exec process stdout and stream data to the client"},"command":{"type":"array","items":{"type":"string"},"description":"command for executing in the container","example":["python","-c","print('Hello CloudRift')"]},"container":{"type":"string","description":"container id or name for running the exec process"},"env":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"environment variables to set for the command","example":[]},"privileged":{"type":"boolean","description":"run process in privileged mode"},"tty":{"type":"boolean","description":"attach standard streams to a TTY, including stdin if it is not closed"},"user":{"type":["string","null"],"description":"user, and optionally, group to run the exec process inside the container,\nformat is one of: user, user:group, uid, or uid:gid."},"workdir":{"type":["string","null"],"description":"working directory for the exec process inside the container"}}},"ExecutorInfo":{"type":"object","required":["id","name","status","node_id","node_status","machine_id"],"properties":{"client_version":{"type":["string","null"],"description":"Version of the client","example":"0.41"},"cpu":{"oneOf":[{"$ref":"#/components/schemas/SystemCpuInfo","description":"CPU models like Ryzen 5950X"},{"type":"null"}]},"cpu_mask":{"type":["string","null"],"description":"CPUs available to executor as a hex number making a bitmask"},"disk":{"type":["integer","null"],"format":"int64","description":"Total memory on the node","minimum":0},"dram":{"type":["integer","null"],"format":"int64","description":"Total memory on the node","minimum":0},"dram_limit":{"type":["integer","null"],"format":"int64","description":"Maximum amount of memory executor is allowrd to use","minimum":0},"gpu":{"type":["array","null"],"items":{"$ref":"#/components/schemas/SystemGpuInfo"},"description":"GPU models like GeForce RTX 4090"},"gpu_mask":{"type":["string","null"],"description":"GPUs available to executor as a hex number making a bitmask"},"host_address":{"type":["string","null"],"description":"Executor public IP address"},"id":{"type":"string","description":"ID of the executor to be used in API calls"},"machine_id":{"type":"string","description":"Unique machine ID (typically HW ID)"},"name":{"type":"string","description":"Name of the executor in the cluster","example":"gpu-monster"},"node_id":{"type":"string","description":"ID of the node the executor is running on"},"node_status":{"$ref":"#/components/schemas/NodeStatus","description":"Status of the executor, like offline or active"},"status":{"$ref":"#/components/schemas/InstanceStatus","description":"status of the executor, like offline or active"}}},"ExecutorInfoProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["id","name","status","node_id","node_status","machine_id"],"properties":{"client_version":{"type":["string","null"],"description":"Version of the client","example":"0.41"},"cpu":{"oneOf":[{"$ref":"#/components/schemas/SystemCpuInfo","description":"CPU models like Ryzen 5950X"},{"type":"null"}]},"cpu_mask":{"type":["string","null"],"description":"CPUs available to executor as a hex number making a bitmask"},"disk":{"type":["integer","null"],"format":"int64","description":"Total memory on the node","minimum":0},"dram":{"type":["integer","null"],"format":"int64","description":"Total memory on the node","minimum":0},"dram_limit":{"type":["integer","null"],"format":"int64","description":"Maximum amount of memory executor is allowrd to use","minimum":0},"gpu":{"type":["array","null"],"items":{"$ref":"#/components/schemas/SystemGpuInfo"},"description":"GPU models like GeForce RTX 4090"},"gpu_mask":{"type":["string","null"],"description":"GPUs available to executor as a hex number making a bitmask"},"host_address":{"type":["string","null"],"description":"Executor public IP address"},"id":{"type":"string","description":"ID of the executor to be used in API calls"},"machine_id":{"type":"string","description":"Unique machine ID (typically HW ID)"},"name":{"type":"string","description":"Name of the executor in the cluster","example":"gpu-monster"},"node_id":{"type":"string","description":"ID of the node the executor is running on"},"node_status":{"$ref":"#/components/schemas/NodeStatus","description":"Status of the executor, like offline or active"},"status":{"$ref":"#/components/schemas/InstanceStatus","description":"status of the executor, like offline or active"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ExternalTransactionAccountSelector":{"oneOf":[{"type":"object","required":["ComputeProvider"],"properties":{"ComputeProvider":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the compute provider","example":"TestProvider"}}}}},{"type":"object","required":["TeamByName"],"properties":{"TeamByName":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the team","example":"Test Team"}}}}},{"type":"object","description":"Target user accounts by ID","required":["ByUserIds"],"properties":{"ByUserIds":{"type":"array","items":{"type":"string"},"description":"Target user accounts by ID"}},"example":{"ByUserIds":["00000000-0000-0000-0000-000000000000"]}},{"type":"object","description":"Target team accounts by ID","required":["ByTeamIds"],"properties":{"ByTeamIds":{"type":"array","items":{"type":"string"},"description":"Target team accounts by ID"}},"example":{"ByTeamIds":["00000000-0000-0000-0000-000000000000"]}}]},"ExternalTransactionRequest":{"type":"object","required":["account","amount"],"properties":{"account":{"$ref":"#/components/schemas/ExternalTransactionAccountSelector","description":"Account from or to which we're transferring money"},"amount":{"type":"integer","format":"int64","description":"Amount of money in currency units (cents)","example":-500050},"description":{"type":["string","null"],"description":"Description of the payout","example":"Payment for GPU usage for November 2025"}}},"ExternalTransactionRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["account","amount"],"properties":{"account":{"$ref":"#/components/schemas/ExternalTransactionAccountSelector","description":"Account from or to which we're transferring money"},"amount":{"type":"integer","format":"int64","description":"Amount of money in currency units (cents)","example":-500050},"description":{"type":["string","null"],"description":"Description of the payout","example":"Payment for GPU usage for November 2025"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"FeatureFlag":{"type":"object","required":["flag_name","flag_value"],"properties":{"flag_name":{"type":"string"},"flag_value":{"type":"string"},"updated_at":{"type":["string","null"]}}},"FeatureFlagListResponse":{"type":"object","required":["flags"],"properties":{"flags":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFlag"}}}},"FeatureFlagListResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["flags"],"properties":{"flags":{"type":"array","items":{"$ref":"#/components/schemas/FeatureFlag"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"FeatureFlagProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["flag_name","flag_value"],"properties":{"flag_name":{"type":"string"},"flag_value":{"type":"string"},"updated_at":{"type":["string","null"]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"FileInfo":{"type":"object","required":["size","open"],"properties":{"open":{"type":"boolean","description":"flag indicating that data is still being written to the file"},"size":{"type":"integer","format":"int64","description":"size of the file","minimum":0}}},"FileInfoProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["size","open"],"properties":{"open":{"type":"boolean","description":"flag indicating that data is still being written to the file"},"size":{"type":"integer","format":"int64","description":"size of the file","minimum":0}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"FileMetadata":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"FileMetadataProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ForceDrainRequest":{"type":"object","description":"Request to force drain nodes (immediately terminate all instances)\nOnly allowed when nodes are already in Draining state","required":["selector"],"properties":{"reason":{"type":["string","null"],"description":"Optional reason for force draining (shown to users in termination notice)"},"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"ForceDrainRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to force drain nodes (immediately terminate all instances)\nOnly allowed when nodes are already in Draining state","required":["selector"],"properties":{"reason":{"type":["string","null"],"description":"Optional reason for force draining (shown to users in termination notice)"},"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ForceDrainResponse":{"type":"object","description":"Response after force draining","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/NodeForceDrainResult"}}}},"ForceDrainResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Response after force draining","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/NodeForceDrainResult"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"FrpCommand":{"oneOf":[{"type":"object","required":["config","type"],"properties":{"config":{"$ref":"#/components/schemas/FrpConfig"},"type":{"type":"string","enum":["AddConfig"]}}},{"type":"object","required":["name","type"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["RemoveConfig"]}}}]},"FrpCommandOutput":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["AddConfig"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["RemoveConfig"]}}}]},"FrpCommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["AddConfig"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["RemoveConfig"]}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"FrpCommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["config","type"],"properties":{"config":{"$ref":"#/components/schemas/FrpConfig"},"type":{"type":"string","enum":["AddConfig"]}}},{"type":"object","required":["name","type"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["RemoveConfig"]}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"FrpConfig":{"type":"object","required":["server_addr","server_port","web_server_addr","web_server_port","auth_token","proxies"],"properties":{"auth_token":{"type":"string"},"proxies":{"type":"array","items":{"$ref":"#/components/schemas/ProxyConfig"}},"server_addr":{"type":"string"},"server_port":{"type":"integer","format":"int32","minimum":0},"web_server_addr":{"type":"string"},"web_server_port":{"type":"integer","format":"int32","minimum":0}}},"FrpConfigProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["server_addr","server_port","web_server_addr","web_server_port","auth_token","proxies"],"properties":{"auth_token":{"type":"string"},"proxies":{"type":"array","items":{"$ref":"#/components/schemas/ProxyConfig"}},"server_addr":{"type":"string"},"server_port":{"type":"integer","format":"int32","minimum":0},"web_server_addr":{"type":"string"},"web_server_port":{"type":"integer","format":"int32","minimum":0}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"GenerateSshKeyResponse":{"type":"object","required":["public_key","private_key"],"properties":{"private_key":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"SSH key private part in PEM format (base64 encoded)","example":"LS0tLS1CRUdJTiB...tLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo="},"public_key":{"$ref":"#/components/schemas/SshKey"}}},"GenerateSshKeyResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["public_key","private_key"],"properties":{"private_key":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"SSH key private part in PEM format (base64 encoded)","example":"LS0tLS1CRUdJTiB...tLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo="},"public_key":{"$ref":"#/components/schemas/SshKey"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"GetClustersResponse":{"type":"object","required":["clusters"],"properties":{"clusters":{"type":"array","items":{"type":"string"}}}},"GetClustersResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["clusters"],"properties":{"clusters":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"GetTeamRequest":{"type":"object","required":["team_id"],"properties":{"team_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}}},"GetTeamRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["team_id"],"properties":{"team_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"GetVolumeRequest":{"type":"object","required":["volume_id"],"properties":{"team_id":{"type":["string","null"],"description":"Team ID in case of a team volume","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"volume_id":{"type":"string","description":"Volume ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"GetVolumeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["volume_id"],"properties":{"team_id":{"type":["string","null"],"description":"Team ID in case of a team volume","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"volume_id":{"type":"string","description":"Volume ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"GetVolumeResponse":{"type":"object","required":["volume"],"properties":{"volume":{"$ref":"#/components/schemas/VolumeInfo","description":"Volume information"}}},"GetVolumeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["volume"],"properties":{"volume":{"$ref":"#/components/schemas/VolumeInfo","description":"Volume information"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"GlobalCapability":{"oneOf":[{"type":"object","required":["nodes"],"properties":{"nodes":{"type":"object","required":["read"],"properties":{"read":{"type":"boolean"}}}}}],"description":"Deprecated: a pre-computed UI flag from before `CapabilitiesResponse`\ncarried the permission set. Read `ListNodes` in\n`CapabilitiesResponse::permissions` instead."},"GpuInfo":{"type":"object","required":["vram","pci_vendor_id","pci_device_id"],"properties":{"brand":{"type":["string","null"],"description":"Full brand name of the GPU","example":"NVIDIA GeForce RTX 4090"},"brand_short":{"type":["string","null"],"description":"Short and recognizable brand name of the GPU","example":"RTX 4090"},"nvidia_kernel_module_support":{"oneOf":[{"$ref":"#/components/schemas/NvidiaKernelModuleSupport","description":"Which NVIDIA kernel-module flavor a VM image must ship to drive this GPU; `None` for non-NVIDIA GPUs"},{"type":"null"}]},"pci_device_id":{"type":"integer","format":"int32","description":"PCI device ID, it can be used to locate GPU model if high-level information is not available","example":"2717","minimum":0},"pci_slot":{"type":["string","null"],"description":"PCI slot information","example":"0000:01:00.0"},"pci_vendor_id":{"type":"integer","format":"int32","description":"PCI vendor ID, it can be used to locate GPU model if high-level information is not available","example":"10de","minimum":0},"vendor":{"type":["string","null"],"description":"Vendor of the GPU","example":"NVIDIA"},"vendor_logo_url":{"type":["string","null"],"description":"Logo of the GPU vendor","example":"https://storage.googleapis.com/cloudrift-resources/vendor/logo/nvidia-white-with-text.svg"},"vram":{"type":"integer","format":"int64","description":"Amount of memory in bytes","example":"25_757_220_864","minimum":0}}},"GpuMetrics":{"type":"object","description":"Metrics for a single GPU","required":["gpu_index"],"properties":{"fb_free_mib":{"type":["number","null"],"format":"double"},"fb_used_mib":{"type":["number","null"],"format":"double"},"gpu_index":{"type":"string"},"gpu_utilization_percent":{"type":["number","null"],"format":"double"},"gpu_uuid":{"type":["string","null"]},"gr_activity":{"type":["number","null"],"format":"double","description":"Graphics/compute engine active ratio (0.0–1.0)"},"pci_bdf":{"type":["string","null"],"example":"0000:41:00.0"},"power_usage_watts":{"type":["number","null"],"format":"double"},"temperature_celsius":{"type":["number","null"],"format":"double"},"tensor_activity":{"type":["number","null"],"format":"double","description":"Tensor core active ratio (0.0–1.0)"}}},"GpuPowerState":{"type":"string","description":"PCI power state of a GPU. `D0` is fully on; a GPU stuck in `D3Cold`\nhas usually lost power or dropped off the bus, which is what fails its\nPCI check.","enum":["D0","D1","D2","D3","D3Hot","D3Cold","Unknown"]},"GrantProviderAccessRequest":{"type":"object","description":"Grant a principal access to a provider, or change the role of an\nexisting grant.","required":["selector","principal","role"],"properties":{"principal":{"$ref":"#/components/schemas/ProviderAccessPrincipal"},"role":{"$ref":"#/components/schemas/ProviderAccessRole"},"selector":{"$ref":"#/components/schemas/ProviderAccessSelector"}}},"GrantProviderAccessRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Grant a principal access to a provider, or change the role of an\nexisting grant.","required":["selector","principal","role"],"properties":{"principal":{"$ref":"#/components/schemas/ProviderAccessPrincipal"},"role":{"$ref":"#/components/schemas/ProviderAccessRole"},"selector":{"$ref":"#/components/schemas/ProviderAccessSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"HostConfig":{"type":"object","required":["network_mode","privileged","cpus","gpus"],"properties":{"console_size":{"type":["array","null"],"items":false,"prefixItems":[{"type":"integer","format":"int32","minimum":0},{"type":"integer","format":"int32","minimum":0}],"description":"initial terminal size if attaching to a TTY: (height, width)"},"cpus":{"$ref":"#/components/schemas/DeviceSelector","description":"number of cpu cores for execution"},"disk":{"type":["integer","null"],"format":"int64","description":"disk limit","minimum":0},"gpus":{"$ref":"#/components/schemas/DeviceSelector","description":"number of gpus for execution (ignored if mig_profile is set)"},"memory":{"type":["integer","null"],"format":"int64","description":"memory limit","minimum":0},"mig_profile":{"type":["string","null"],"description":"MIG profile for fractional GPU allocation (e.g., \"1g.5gb\", \"2g.10gb\")\nIf set, provider creates a MIG instance instead of passing through whole GPUs"},"network_mode":{"type":"string","description":"network mode for the container: host, bridge or none"},"privileged":{"type":"boolean","description":"privileged mode for the container"}}},"HostPort":{"type":"object","description":"Structure used to bind a host port to a container port","required":["port"],"properties":{"ip":{"type":["string","null"]},"port":{"type":"integer","format":"int32","minimum":0}}},"ImageEvictionReason":{"type":"string","description":"Why a cached base image was evicted from the node's content-addressed store.","enum":["Dangling","SpaceLru"]},"InstanceAndUsageInfo":{"type":"object","description":"Same shape as `v059::InstanceAndUsageInfo` but with `virtual_machines` /\n`bare_metal` carrying `v061::InstanceLoginInfo`.","required":["id","status","node_id","node_mode","node_status","virtual_machines","containers","created_at","ssh_key_auth"],"properties":{"bare_metal":{"oneOf":[{"$ref":"#/components/schemas/InstanceBareMetalInfo"},{"type":"null"}]},"billing_exempt":{"type":"boolean"},"containers":{"type":"array","items":{"$ref":"#/components/schemas/InstanceContainerInfo"}},"cpu":{"oneOf":[{"$ref":"#/components/schemas/CpuInfo"},{"type":"null"}]},"cpu_limit":{"type":["integer","null"],"format":"int32","example":"96","minimum":0},"cpu_mask":{"type":["string","null"],"example":"ffffffffffffffffffffffff"},"created_at":{"type":"string"},"disk_limit":{"type":["integer","null"],"format":"int64","minimum":0},"dram":{"type":["integer","null"],"format":"int64","minimum":0},"dram_limit":{"type":["integer","null"],"format":"int64","example":"1236950581248","minimum":0},"end_reason":{"oneOf":[{"$ref":"#/components/schemas/InstanceEndReason","description":"Set when the server ended a running rental, such as for an empty\nbalance. `None` otherwise, including for a `Failed` rental."},{"type":"null"}]},"failure":{"oneOf":[{"$ref":"#/components/schemas/RentalFailureInfo","description":"Populated when `status == Failed`: the reason this rental never reached Active.\n`None` for any other status, including normal stop, balance depletion, and\nuser-requested terminate."},{"type":"null"}]},"gpu_limit":{"type":["integer","null"],"format":"int32","example":"8","minimum":0},"gpu_mask":{"type":["string","null"],"example":"1ff"},"gpus":{"type":["array","null"],"items":{"$ref":"#/components/schemas/GpuInfo"}},"host_address":{"type":["string","null"],"example":"38.108.83.41"},"id":{"type":"string"},"instance_name":{"type":["string","null"],"example":"bright-falcon"},"instructions":{"oneOf":[{"$ref":"#/components/schemas/InstanceUserInstructions"},{"type":"null"}]},"internal_host_address":{"type":["string","null"],"example":"172.154.10.38"},"mig_profile":{"type":["string","null"],"example":"1g.5gb"},"node_drain_info":{"oneOf":[{"$ref":"#/components/schemas/NodeDrainInfo","description":"Maintenance notice for anyone who can list this instance."},{"type":"null"}]},"node_id":{"type":"string"},"node_mode":{"$ref":"#/components/schemas/InstanceMode"},"node_status":{"$ref":"#/components/schemas/NodeStatus"},"port_mappings":{"type":["array","null"],"items":{"type":"array","items":false,"prefixItems":[{"type":"integer","format":"int32","minimum":0},{"type":"integer","format":"int32","minimum":0}]}},"reservation_data":{"oneOf":[{"$ref":"#/components/schemas/ReservationDates"},{"type":"null"}]},"resource_info":{"oneOf":[{"$ref":"#/components/schemas/InstanceResourceInfo"},{"type":"null"}]},"resources_released":{"type":"boolean","description":"Whether the node has released the instance's compute after it ended.\nIts capacity is available to new rentals only then."},"ssh_key_auth":{"type":"boolean"},"status":{"$ref":"#/components/schemas/InstanceStatus"},"tags":{"type":"array","items":{"type":"string"},"description":"Free-form labels attached at rent time. Empty for untagged rentals."},"usage_info":{"oneOf":[{"$ref":"#/components/schemas/InstanceUsageInfo"},{"type":"null"}]},"virtual_machines":{"type":"array","items":{"$ref":"#/components/schemas/InstanceVirtualMachineInfo"}},"volume_mounts":{"type":["array","null"],"items":{"$ref":"#/components/schemas/VolumeInfo"}}}},"InstanceBareMetalInfo":{"type":"object","description":"Same shape as `v045::InstanceBareMetalInfo` but carrying\n`v061::InstanceLoginInfo`.","required":["name","ready"],"properties":{"login_info":{"oneOf":[{"$ref":"#/components/schemas/InstanceLoginInfo"},{"type":"null"}]},"name":{"type":"string"},"ready":{"type":"boolean"}}},"InstanceConfiguration":{"oneOf":[{"type":"object","required":["BareMetal"],"properties":{"BareMetal":{"type":"object","required":["ssh_key"],"properties":{"ssh_key":{"$ref":"#/components/schemas/InstanceSshKeySelector","description":"SSH key to use for the instance"},"volumes":{"oneOf":[{"$ref":"#/components/schemas/InstanceVolumeSelector","description":"Volumes to attach to the instance"},{"type":"null"}]}}}}},{"type":"object","required":["VirtualMachine"],"properties":{"VirtualMachine":{"type":"object","required":["image_url"],"properties":{"cloudinit_commands":{"type":["string","null"],"description":"Command to run in the VM"},"cloudinit_url":{"type":["string","null"],"description":"Cloud-init template: one of the `cloudinit_url` values returned by `/api/v1/recipes/list`","example":"https://storage.googleapis.com/cloudrift-vm-disks/cloudinit/ubuntu-base.cloudinit"},"cloudinit_user_data":{"type":["string","null"],"description":"Your own cloud-init user data (a `#cloud-config` document or a `#!` script, at most 64 KiB), applied\non top of the template: lists such as `runcmd`, `users` and `write_files` are appended to the\ntemplate's, other keys replace them"},"image_url":{"type":"string","description":"ULR of the image to use for the VM","example":"https://storage.googleapis.com/cloudrift-vm-disks/disks/ubuntu/24.04/noble-server-cloudimg-amd64.img"},"ports":{"type":["array","null"],"items":{"type":"string"},"description":"Ports to expose","example":["8888"]},"ssh_key":{"oneOf":[{"$ref":"#/components/schemas/InstanceSshKeySelector","description":"SSH key to use for the instance"},{"type":"null"}]},"volumes":{"oneOf":[{"$ref":"#/components/schemas/InstanceVolumeSelector","description":"Volumes to attach to the instance"},{"type":"null"}]}}}}},{"type":"object","required":["Docker"],"properties":{"Docker":{"type":"object","properties":{"command":{"type":["array","null"],"items":{"type":"string"},"description":"Command to run in the container","example":[]},"env":{"type":["array","null"],"items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"Environment variables to set","example":[["JUPYTER_PORT","8117"]]},"image":{"type":["string","null"],"description":"Docker image to run","example":"quay.io/jupyter/pytorch-notebook"},"name":{"type":["string","null"],"description":"Optional name for the container","example":"my_notebook"},"ports":{"type":["array","null"],"items":{"type":"string"},"description":"Ports to expose in the format <host>:<container>/<tcp|udp|sctp>","example":["8117:8888"]},"registry_auth":{"oneOf":[{"$ref":"#/components/schemas/DockerRegistryAuth","description":"Optional Docker registry authentication"},{"type":"null"}]},"volumes":{"oneOf":[{"$ref":"#/components/schemas/InstanceVolumeSelector","description":"Volumes to attach to the instance"},{"type":"null"}]}}}}}]},"InstanceContainerInfo":{"type":"object","required":["docker_id","truncated_docker_id"],"properties":{"docker_id":{"type":"string"},"name":{"type":["string","null"]},"truncated_docker_id":{"type":"string"}}},"InstanceEndReason":{"type":"string","description":"Why the server ended a rental that had been running.","enum":["InsufficientBalance","Unknown"]},"InstanceInfo":{"type":"object","required":["name","cost_per_hour"],"properties":{"cost_per_hour":{"type":"integer","format":"int32","description":"Cost per hour in currency units (cents)","example":"3277","minimum":0},"custom_pricing":{"oneOf":[{"$ref":"#/components/schemas/CustomInstancePricing","description":"Per-dimension pricing weights for custom (off-catalog) configs, so a\nclient can price a custom shape locally the same way the server does\nat rent. Kept in its own optional struct: it isn't always needed and\nthe pricing model is still in flux."},{"type":"null"}]},"name":{"type":"string","description":"Instance type name","example":"p4d.24xlarge"}}},"InstanceInfoFlags":{"type":"object","description":"Same as `v058::InstanceInfoFlags` plus [`Self::with_credentials`].","properties":{"with_connection_info":{"type":"boolean","description":"Include connection fields: host_address, internal_host_address, reservation_data, volume_mounts."},"with_credentials":{"type":"boolean","description":"Include instance credentials: the login password and the rendered\nconnection instructions that embed it. Requires the\n`ViewInstanceCredentials` permission — asking for it without that\npermission is a `403`, not a silently redacted response.\n\nAlso requires `with_connection_info` for the instructions, which are\npart of the connection payload."},"with_hardware_info":{"type":"boolean","description":"Include detailed hardware fields: cpu, cpu_mask, dram, disk_limit, gpu_mask, mig_profile."},"with_usage_info":{"type":"boolean","description":"Include billing/usage info: resource_info (provider, cost) and usage_info (duration, user)."}}},"InstanceLoginInfo":{"oneOf":[{"type":"object","required":["UsernameAndPassword"],"properties":{"UsernameAndPassword":{"type":"object","required":["username","password"],"properties":{"password":{"type":"string"},"username":{"type":"string"}}}}},{"type":"object","description":"The instance has no password (SSH-key auth only).","required":["Username"],"properties":{"Username":{"type":"object","description":"The instance has no password (SSH-key auth only).","required":["username"],"properties":{"username":{"type":"string"}}}}},{"type":"object","description":"The caller lacks `ViewInstanceCredentials`, so the password was never\nfetched. Distinct from [`Self::Username`] so clients can render\n\"withheld\" rather than \"none\".","required":["HiddenPassword"],"properties":{"HiddenPassword":{"type":"object","description":"The caller lacks `ViewInstanceCredentials`, so the password was never\nfetched. Distinct from [`Self::Username`] so clients can render\n\"withheld\" rather than \"none\".","required":["username"],"properties":{"username":{"type":"string"}}}}}],"description":"Same as `v045::InstanceLoginInfo` plus [`Self::HiddenPassword`]."},"InstanceMetrics":{"type":"object","description":"Hardware metrics for a single instance, filtered to GPUs allocated via gpu_mask","required":["instance_id","node_id","gpus"],"properties":{"gpus":{"type":"array","items":{"$ref":"#/components/schemas/GpuMetrics"},"description":"GPU metrics filtered to the GPUs assigned to this instance"},"instance_id":{"type":"string","description":"Instance (executor) ID"},"node_id":{"type":"string","description":"Node the instance is running on"}}},"InstanceMetricsRequest":{"type":"object","description":"Request to fetch hardware metrics for instances","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstanceMetricsSelector"}}},"InstanceMetricsRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to fetch hardware metrics for instances","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstanceMetricsSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"InstanceMetricsResponse":{"type":"object","description":"Response containing instance-level GPU metrics","required":["metrics"],"properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/InstanceMetrics"}}}},"InstanceMetricsResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Response containing instance-level GPU metrics","required":["metrics"],"properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/InstanceMetrics"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"InstanceMetricsSelector":{"oneOf":[{"type":"object","description":"Select instances by ID","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"},"description":"Select instances by ID"}},"example":{"ById":["f8c403e6-7101-11ee-b00d-63f746883a19"]}}],"description":"Selector for which instances to query metrics for"},"InstanceMode":{"type":"string","enum":["Container","VirtualMachine","BareMetal"]},"InstancePreset":{"type":"object","description":"A saved resource shape that pre-fills the rental sliders. Captured\nautomatically when a custom config is rented; `dram`/`disk` are bytes,\n`cpu_count` is guest vCPUs.","required":["id","instance_type","cpu_count","dram"],"properties":{"cpu_count":{"type":"integer","format":"int32","example":"16","minimum":0},"disk":{"type":["integer","null"],"format":"int64","example":"8796093022208","minimum":0},"dram":{"type":"integer","format":"int64","example":"48000000000","minimum":0},"gpu_count":{"type":["integer","null"],"format":"int32","example":"1","minimum":0},"id":{"type":"string","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"instance_type":{"type":"string","example":"h200-141gb"}}},"InstanceResourceInfo":{"type":"object","required":["provider_name","instance_type","cost_per_hour"],"properties":{"cost_per_hour":{"type":"number","format":"float","description":"Cost per hour in currency units","example":"3277"},"instance_type":{"type":"string","description":"Name of the instance type","example":"p4d.24xlarge"},"provider_name":{"type":"string","description":"Name of the provider, i.e. resource owner","example":"Arcane Web Services"}}},"InstanceSshKeySelector":{"oneOf":[{"type":"object","description":"List of SSH key names to use for the instance","required":["ByName"],"properties":{"ByName":{"type":"array","items":{"type":"string"},"description":"List of SSH key names to use for the instance"}},"example":["my-key"]},{"type":"object","description":"Use specified SSH key","required":["PublicKeys"],"properties":{"PublicKeys":{"type":"array","items":{"type":"string"},"description":"Use specified SSH key"}},"example":["ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD..."]},{"type":"object","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"}}},"example":{"ById":["f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"]}}]},"InstanceStatus":{"type":"string","description":"Adds `Failed` for rentals that never reached `Active`. Distinct type from\n`v045::InstanceStatus` so v045 clients keep their original 4-variant contract.","enum":["Initializing","Active","Deactivating","Inactive","Failed"]},"InstanceType":{"type":"object","required":["name","variants","cost_per_hour","datacenters"],"properties":{"brand_short":{"type":["string","null"],"description":"Short and recognizable brand name of the core instance hardware for easier navigation"},"cost_per_hour":{"type":"integer","format":"int64","description":"Cost of the instance per hour in currency units (cents)","example":3277},"datacenters":{"type":"array","items":{"$ref":"#/components/schemas/InstanceTypeDatacenter"},"description":"List of datacenters where this instance type is available"},"manufacturer":{"type":["string","null"],"description":"Used to display GPU or CPU (if no GPU is present) vendor to the user for easier navigation","example":"Nvidia"},"name":{"type":"string","description":"Instance type name","example":"p4d"},"nvidia_kernel_module_support":{"oneOf":[{"$ref":"#/components/schemas/NvidiaKernelModuleSupport","description":"NVIDIA kernel-module flavor the GPUs of this instance type can load; pick\n`nvidia-driver-proprietary` images for `ProprietaryOnly`. `None` for types without NVIDIA GPUs."},{"type":"null"}]},"variants":{"type":"array","items":{"$ref":"#/components/schemas/InstanceVariantInfo"},"description":"Slice options for this instance type"}}},"InstanceTypeDatacenter":{"type":"object","required":["name","provider_name"],"properties":{"country_code":{"type":["string","null"],"description":"Country code of the datacenter","example":"US"},"name":{"type":"string","description":"Datacenter name","example":"us-east-nc-nr-1"},"provider_logo":{"type":["string","null"],"description":"Provider logo URL/path","example":"https://example.com/logo.svg"},"provider_name":{"type":"string","description":"Provider name","example":"Arcane Web Services"}}},"InstanceTypeInfo":{"type":"object","required":["name","cost_per_hour"],"properties":{"brand_short":{"type":["string","null"],"description":"Short and recognizable brand name of the core instance hardware for easier navigation"},"cost_per_hour":{"type":"integer","format":"int64","description":"Cost of the instance per hour in currency units (cents)","example":3277},"manufacturer":{"type":["string","null"],"description":"Used to display GPU or CPU (if no GPU is present) vendor to the user for easier navigation","example":"Nvidia"},"name":{"type":"string","description":"Instance type name","example":"p4d"}}},"InstanceTypeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","cost_per_hour"],"properties":{"brand_short":{"type":["string","null"],"description":"Short and recognizable brand name of the core instance hardware for easier navigation"},"cost_per_hour":{"type":"integer","format":"int64","description":"Cost of the instance per hour in currency units (cents)","example":3277},"manufacturer":{"type":["string","null"],"description":"Used to display GPU or CPU (if no GPU is present) vendor to the user for easier navigation","example":"Nvidia"},"name":{"type":"string","description":"Instance type name","example":"p4d"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"InstanceTypeSelector":{"oneOf":[{"type":"string","description":"Select all instance types","enum":["All"]},{"type":"object","description":"Select instance types by service name","required":["ByServiceAndLocation"],"properties":{"ByServiceAndLocation":{"type":"object","description":"Select instance types by service name","properties":{"datacenters":{"type":["array","null"],"items":{"type":"string"},"description":"Locations of the instance types","example":["us-east-nc-nr-1"]},"services":{"type":["array","null"],"items":{"type":"string"},"description":"List of services that the instance type should support, e.g. docker, VM","example":["docker"]}}}}},{"type":"object","description":"Select instance types by service and provider name","required":["ByServiceAndProvider"],"properties":{"ByServiceAndProvider":{"type":"object","description":"Select instance types by service and provider name","properties":{"providers":{"type":["array","null"],"items":{"type":"string"},"description":"List of providers that the instance type should support, e.g. AWS, GCP","example":["AWS"]},"services":{"type":["array","null"],"items":{"type":"string"},"description":"List of services that the instance type should support, e.g. docker, VM","example":["docker"]}}}}},{"type":"object","description":"Select instance types by name","required":["ByName"],"properties":{"ByName":{"type":"array","items":{"type":"string"},"description":"Select instance types by name"}},"example":"generic-cpu"}]},"InstanceUsageInfo":{"type":"object","required":["usage","accounted_usage","user_id","user_email","user_name"],"properties":{"accounted_usage":{"type":"object","description":"Amount of usage we've subtracted from user balance","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"nanos":0,"secs":1}},"team_id":{"type":["string","null"],"description":"Team whose account pays for the instance. Absent for a personal rental."},"team_name":{"type":["string","null"],"description":"Name of the team in `team_id`","example":"Acme Research"},"usage":{"type":"object","description":"Total amount of usage we've estimated","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"nanos":0,"secs":1}},"user_email":{"type":"string","description":"User's email of the instance","example":"jdoe@me.com"},"user_id":{"type":"string","description":"User ID of the instance renter"},"user_name":{"type":"string","description":"User's name of the instance","example":"John Doe"}}},"InstanceUserInstructions":{"type":"object","required":["instructions_template","placeholder_values"],"properties":{"instructions_template":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"Instructions for the user to access the instance, stored as base64-encoded bytes"},"placeholder_values":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"Placeholder values for the instructions template"}}},"InstanceVariant":{"type":"object","required":["name","cpu_count","dram","vram","disk"],"properties":{"cpu_count":{"type":"integer","format":"int32","description":"CPU count","example":"24","minimum":0},"disk":{"type":"integer","format":"int64","description":"Disk size in bytes","example":"8_796_093_022_208","minimum":0},"dram":{"type":"integer","format":"int64","description":"RAM size","example":"48000000000","minimum":0},"gpu_count":{"type":["integer","null"],"format":"int32","description":"GPU count","example":"2","minimum":0},"mig_profile":{"type":["string","null"],"description":"MIG profile name for fractional GPU allocation (e.g., \"1g.5gb\", \"2g.10gb\")","example":"3g.40gb"},"name":{"type":"string","description":"Instance variant name including instance type name","example":"p4d.24xlarge"},"vram":{"type":"integer","format":"int64","description":"VRAM per GPU","example":"40000000000","minimum":0}}},"InstanceVariantInfo":{"type":"object","required":["name","cpu_count","logical_cpu_count","dram","vram","disk","cost_per_hour","nodes","nodes_per_dc","available_nodes","available_nodes_per_dc","ip_availability_per_dc","volume_types_per_dc","cpu_sharing_policy"],"properties":{"available_nodes":{"type":"integer","format":"int32","description":"Number of nodes that this variant is available on to estimate availability","example":"2","minimum":0},"available_nodes_per_dc":{"type":"object","description":"Number of nodes that this variant is available on per datacenter","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"us-central-tx-nr-1":1,"us-east-nc-nr-1":1}},"cost_per_hour":{"type":"number","format":"double","description":"Cost of the instance per hour in currency units (cents)","example":"3277"},"cpu_count":{"type":"integer","format":"int32","description":"CPU count","example":"24","minimum":0},"cpu_sharing_policy":{"$ref":"#/components/schemas/CpuSharingPolicy","description":"How this variant's vCPUs share host cores, which determines how much\nhost CPU a rental of it consumes."},"disk":{"type":"integer","format":"int64","description":"Disk size in bytes","example":"8_796_093_022_208","minimum":0},"dram":{"type":"integer","format":"int64","description":"RAM size","example":"48000000000","minimum":0},"gpu_count":{"type":["integer","null"],"format":"int32","description":"GPU count","example":"2","minimum":0},"ip_availability_per_dc":{"type":"object","description":"IP availability information per datacenter\nThis leaves room to add extra fields in the future like the number of public IPs available","additionalProperties":{"$ref":"#/components/schemas/IpAvailability"},"propertyNames":{"type":"string"},"example":{"us-central-tx-nr-1":{"public_ips":false},"us-east-nc-nr-1":{"public_ips":true}}},"logical_cpu_count":{"type":"integer","format":"int32","description":"Logical CPU count (cpu_count * 2)","example":"24","minimum":0},"mig_profile":{"type":["string","null"],"description":"MIG profile name for fractional GPU allocation (e.g., \"1g.5gb\", \"2g.10gb\")","example":"1g.5gb"},"name":{"type":"string","description":"Instance variant name including instance type name","example":"p4d.24xlarge"},"nodes":{"type":"integer","format":"int32","description":"Number of nodes that this variant is available on to estimate availability","example":"4","minimum":0},"nodes_per_dc":{"type":"object","description":"Number of nodes that this variant is available on per datacenter","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"us-central-tx-nr-1":1,"us-east-nc-nr-1":3}},"volume_types_per_dc":{"type":"object","description":"Available volume types per datacenter","additionalProperties":{"type":"array","items":{"$ref":"#/components/schemas/VolumeTypeAvailability"}},"propertyNames":{"type":"string"},"example":{"us-central-tx-nr-1":[{"cost_per_gb_per_hour":10,"name":"premium"}],"us-east-nc-nr-1":[{"cost_per_gb_per_hour":3,"name":"standard"}]}},"vram":{"type":"integer","format":"int64","description":"VRAM per GPU","example":"40000000000","minimum":0}}},"InstanceVariantRawInfo":{"type":"object","required":["name","instance_fraction","cpu_count","dram","vram","disk"],"properties":{"cpu_count":{"type":"integer","format":"int32","description":"CPU count","example":24,"minimum":0},"disk":{"type":"integer","format":"int64","description":"Disk size in bytes","example":"8_796_093_022_208","minimum":0},"dram":{"type":"integer","format":"int64","description":"RAM size","example":"48000000000","minimum":0},"gpu_count":{"type":["integer","null"],"format":"int32","description":"GPU count","example":2,"minimum":0},"instance_fraction":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"Instance fraction","example":[1,2]},"mig_profile":{"type":["string","null"],"description":"MIG profile name for fractional GPU allocation (e.g., \"1g.5gb\", \"2g.10gb\")","example":"1g.5gb"},"name":{"type":"string","description":"Instance variant name","example":"24xlarge"},"vram":{"type":"integer","format":"int64","description":"VRAM per GPU","example":"40000000000","minimum":0}}},"InstanceVariantResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","instance_fraction","cpu_count","dram","vram","disk"],"properties":{"cpu_count":{"type":"integer","format":"int32","description":"CPU count","example":24,"minimum":0},"disk":{"type":"integer","format":"int64","description":"Disk size in bytes","example":"8_796_093_022_208","minimum":0},"dram":{"type":"integer","format":"int64","description":"RAM size","example":"48000000000","minimum":0},"gpu_count":{"type":["integer","null"],"format":"int32","description":"GPU count","example":2,"minimum":0},"instance_fraction":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"Instance fraction","example":[1,2]},"mig_profile":{"type":["string","null"],"description":"MIG profile name for fractional GPU allocation (e.g., \"1g.5gb\", \"2g.10gb\")","example":"1g.5gb"},"name":{"type":"string","description":"Instance variant name","example":"24xlarge"},"vram":{"type":"integer","format":"int64","description":"VRAM per GPU","example":"40000000000","minimum":0}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"InstanceVariantSelector":{"oneOf":[{"type":"object","required":["ByInstanceTypeAndName"],"properties":{"ByInstanceTypeAndName":{"type":"object","required":["instance_type","variant"],"properties":{"instance_type":{"type":"string","description":"Instance type name","example":"p4d"},"variant":{"type":"string","description":"Instance variant name","example":"24xlarge"}}}}}]},"InstanceVirtualMachineInfo":{"type":"object","description":"Same shape as `v045::InstanceVirtualMachineInfo` but carrying\n`v061::InstanceLoginInfo`.","required":["vmid","name","ready","state"],"properties":{"login_info":{"oneOf":[{"$ref":"#/components/schemas/InstanceLoginInfo"},{"type":"null"}]},"memory_usage_kb":{"type":["integer","null"],"format":"int32","minimum":0},"name":{"type":"string"},"ready":{"type":"boolean"},"state":{"$ref":"#/components/schemas/VirtDomainState","description":"VM power state"},"vmid":{"type":"integer","format":"int32"}}},"InstanceVolumeSelector":{"oneOf":[{"type":"object","description":"List of volume mounts","required":["Mounts"],"properties":{"Mounts":{"type":"array","items":{"$ref":"#/components/schemas/VolumeMount"},"description":"List of volume mounts"}},"example":[{"mount_path":"/data","volume":{"ByName":["my-data-volume"]}}]},{"type":"string","description":"No volumes","enum":["None"],"example":"None"}]},"InstancesSelector":{"oneOf":[{"type":"object","description":"List of instance IDs to retrieve information about","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"},"description":"List of instance IDs to retrieve information about"}},"example":{"ById":["f8c403e6-7101-11ee-b00d-63f746883a19"]}},{"type":"object","description":"Retrieve information about instances by status with optional scope","required":["ByStatus"],"properties":{"ByStatus":{"$ref":"#/components/schemas/StatusSelector","description":"Retrieve information about instances by status with optional scope"}}},{"type":"object","description":"Retrieve instances from a named cluster with optional scope","required":["ByClusterName"],"properties":{"ByClusterName":{"type":"string","description":"Retrieve instances from a named cluster with optional scope"}},"example":"default"},{"type":"object","description":"List all instances on a specific node (platform Admin or provider operator only)","required":["ByNodeId"],"properties":{"ByNodeId":{"type":"string","description":"List all instances on a specific node (platform Admin or provider operator only)"}},"example":{"ByNodeId":"f8c403e6-7101-11ee-b00d-63f746883a19"}},{"type":"object","description":"List all instances for a specific user (admin: all instances, provider: only instances on their nodes)","required":["ByUserId"],"properties":{"ByUserId":{"type":"string","description":"List all instances for a specific user (admin: all instances, provider: only instances on their nodes)"}},"example":{"ByUserId":"f8c403e6-7101-11ee-b00d-63f746883a19"}},{"type":"object","description":"List the caller's instances (personal + teams) filtered by tag.\nMatches instances carrying every tag in `all` and at least one tag\nin `any`; see [`TagSelector`].","required":["ByTags"],"properties":{"ByTags":{"$ref":"#/components/schemas/TagSelector","description":"List the caller's instances (personal + teams) filtered by tag.\nMatches instances carrying every tag in `all` and at least one tag\nin `any`; see [`TagSelector`]."}},"example":{"ByTags":{"all":["env:prod"],"any":["region:us","region:eu"]}}}]},"IpAddrCommand":{"oneOf":[{"type":"string","enum":["Show"]},{"type":"object","required":["Add"],"properties":{"Add":{"type":"object","required":["dev","addr"],"properties":{"addr":{"$ref":"#/components/schemas/IpNet","description":"Address and associated network to add"},"dev":{"type":"string","description":"Name of the device (network interface) to add the IP address to"}}}}},{"type":"object","required":["Del"],"properties":{"Del":{"type":"object","required":["dev","addr","ok_if_not_exists"],"properties":{"addr":{"$ref":"#/components/schemas/IpNet","description":"Address to remove"},"dev":{"type":"string","description":"Name of the device (network interface) to delete the IP address from"},"ok_if_not_exists":{"type":"boolean","description":"Don't fail if the address doesn't exist"}}}}}]},"IpAddrCommandOutput":{"oneOf":[{"type":"object","required":["Show"],"properties":{"Show":{"type":"array","items":{"$ref":"#/components/schemas/NetIface"}}}},{"type":"string","enum":["Add"]},{"type":"object","description":"Number of addresses deleted","required":["Del"],"properties":{"Del":{"type":"integer","format":"int64","description":"Number of addresses deleted","minimum":0}}}]},"IpAvailability":{"type":"object","required":["public_ips"],"properties":{"public_ips":{"type":"boolean","description":"Whether public IPs are available in this datacenter","example":"true"}}},"IpCommand":{"oneOf":[{"type":"object","required":["Addr"],"properties":{"Addr":{"$ref":"#/components/schemas/IpAddrCommand"}}},{"type":"object","required":["Route"],"properties":{"Route":{"$ref":"#/components/schemas/IpRouteCommand"}}}]},"IpCommandOutput":{"oneOf":[{"type":"object","required":["Addr"],"properties":{"Addr":{"$ref":"#/components/schemas/IpAddrCommandOutput"}}},{"type":"object","required":["Route"],"properties":{"Route":{"$ref":"#/components/schemas/IpRouteCommandOutput"}}}]},"IpCommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Addr"],"properties":{"Addr":{"$ref":"#/components/schemas/IpAddrCommandOutput"}}},{"type":"object","required":["Route"],"properties":{"Route":{"$ref":"#/components/schemas/IpRouteCommandOutput"}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"IpCommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Addr"],"properties":{"Addr":{"$ref":"#/components/schemas/IpAddrCommand"}}},{"type":"object","required":["Route"],"properties":{"Route":{"$ref":"#/components/schemas/IpRouteCommand"}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"IpNet":{"oneOf":[{"type":"object","required":["V4"],"properties":{"V4":{"$ref":"#/components/schemas/Ipv4Net"}}},{"type":"object","required":["V6"],"properties":{"V6":{"$ref":"#/components/schemas/Ipv6Net"}}}]},"IpRoute":{"type":"object","required":["dst_prefix_len","src_prefix_len"],"properties":{"dst_prefix_len":{"type":"integer","format":"int32","minimum":0},"gateway":{"oneOf":[{"$ref":"#/components/schemas/IpRouteAddress"},{"type":"null"}]},"output_interface_index":{"type":["integer","null"],"format":"int32","minimum":0},"output_interface_name":{"type":["string","null"]},"src_prefix_len":{"type":"integer","format":"int32","minimum":0}}},"IpRouteAddress":{"oneOf":[{"type":"object","required":["Inet"],"properties":{"Inet":{"type":"string"}}},{"type":"object","required":["Inet6"],"properties":{"Inet6":{"type":"string"}}}]},"IpRouteCommand":{"type":"string","enum":["Show"]},"IpRouteCommandOutput":{"oneOf":[{"type":"object","required":["Show"],"properties":{"Show":{"type":"array","items":{"$ref":"#/components/schemas/IpRoute"}}}},{"type":"string","enum":["Add"]},{"type":"object","description":"Number of addresses deleted","required":["Del"],"properties":{"Del":{"type":"integer","format":"int64","description":"Number of addresses deleted","minimum":0}}}]},"Ipv4Net":{"type":"object","required":["addr","prefix_len"],"properties":{"addr":{"type":"string","description":"IP address"},"prefix_len":{"type":"integer","format":"int32","description":"Prefix length corresponding to the netmask like /24","minimum":0}}},"Ipv6Net":{"type":"object","required":["addr","prefix_len"],"properties":{"addr":{"type":"string","description":"IP address"},"prefix_len":{"type":"integer","format":"int32","description":"Prefix length corresponding to the netmask like /24","minimum":0}}},"KeyError":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","description":"Error code","example":"INVALID_TYPE"},"message":{"type":"string","description":"Error message","example":"All elements must be numbers."}}},"KeyResult":{"type":"object","required":["id","status"],"properties":{"error":{"oneOf":[{"$ref":"#/components/schemas/KeyError","description":"Error that occurred during the operation on this key null if status is success"},{"type":"null"}]},"id":{"type":"string","description":"API key ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"status":{"$ref":"#/components/schemas/KeyStatus","description":"Status of the operation on this key"}}},"KeyStatus":{"type":"string","enum":["success","error"]},"ListApiKeysRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/ApiKeySelector","description":"Which API key(s) to list"}}},"ListApiKeysRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/ApiKeySelector","description":"Which API key(s) to list"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListApiKeysResponse":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"},"description":"List of the user API keys"}}},"ListApiKeysResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/ApiKey"},"description":"List of the user API keys"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListClusterUsersResponse":{"type":"object","required":["user_emails"],"properties":{"user_emails":{"type":"array","items":{"type":"string"}}}},"ListClusterUsersResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["user_emails"],"properties":{"user_emails":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListFiles":{"type":"object","required":["files"],"properties":{"files":{"type":"array","items":{"$ref":"#/components/schemas/FileMetadata"}}}},"ListFilesProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["files"],"properties":{"files":{"type":"array","items":{"$ref":"#/components/schemas/FileMetadata"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListInstancePresetsResponse":{"type":"object","required":["presets"],"properties":{"presets":{"type":"array","items":{"$ref":"#/components/schemas/InstancePreset"}}}},"ListInstancePresetsResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["presets"],"properties":{"presets":{"type":"array","items":{"$ref":"#/components/schemas/InstancePreset"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListInstanceTypesRequest":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/InstanceTypeSelector","description":"List of the instance types available for renting"}}},"ListInstanceTypesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/InstanceTypeSelector","description":"List of the instance types available for renting"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListInstanceTypesResponse":{"type":"object","required":["instance_types"],"properties":{"instance_types":{"type":"array","items":{"$ref":"#/components/schemas/InstanceType"},"description":"List of the instance types available for renting"}}},"ListInstanceTypesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["instance_types"],"properties":{"instance_types":{"type":"array","items":{"$ref":"#/components/schemas/InstanceType"},"description":"List of the instance types available for renting"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListInstancesRequest":{"type":"object","description":"Same as `v058::ListInstancesRequest` but carrying `v061::InstanceInfoFlags`.","required":["selector"],"properties":{"mask":{"$ref":"#/components/schemas/InstanceInfoFlags","description":"Controls which optional data fields are fetched. Absent or empty object means no optional data."},"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to list"}}},"ListInstancesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Same as `v058::ListInstancesRequest` but carrying `v061::InstanceInfoFlags`.","required":["selector"],"properties":{"mask":{"$ref":"#/components/schemas/InstanceInfoFlags","description":"Controls which optional data fields are fetched. Absent or empty object means no optional data."},"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to list"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListInstancesResponse":{"type":"object","required":["instances"],"properties":{"instances":{"type":"array","items":{"$ref":"#/components/schemas/InstanceAndUsageInfo"},"description":"List of requested user instances, it might not contain all requested instances if some are not found or there was an error"}}},"ListInstancesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["instances"],"properties":{"instances":{"type":"array","items":{"$ref":"#/components/schemas/InstanceAndUsageInfo"},"description":"List of requested user instances, it might not contain all requested instances if some are not found or there was an error"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListNetworksRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NetworkSelector"}}},"ListNetworksRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NetworkSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListNetworksResponse":{"type":"object","required":["networks"],"properties":{"networks":{"type":"array","items":{"$ref":"#/components/schemas/DatacenterNetworks"}}}},"ListNetworksResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["networks"],"properties":{"networks":{"type":"array","items":{"$ref":"#/components/schemas/DatacenterNetworks"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListProviderAccessRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/ProviderAccessSelector"}}},"ListProviderAccessRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/ProviderAccessSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListProviderAccessResponse":{"type":"object","required":["grants"],"properties":{"grants":{"type":"array","items":{"$ref":"#/components/schemas/ProviderAccessGrant"},"description":"Sorted by principal name."}}},"ListProviderAccessResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["grants"],"properties":{"grants":{"type":"array","items":{"$ref":"#/components/schemas/ProviderAccessGrant"},"description":"Sorted by principal name."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListProviderNodesRequest":{"type":"object","properties":{"query":{"oneOf":[{"$ref":"#/components/schemas/NodeListQuery","description":"Page, filter and sort the nodes. Without it every node is listed\nand the response carries no summary."},{"type":"null"}]},"selector":{"$ref":"#/components/schemas/ProviderSelector","description":"Selector for filtering providers whose nodes to list"}}},"ListProviderNodesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","properties":{"query":{"oneOf":[{"$ref":"#/components/schemas/NodeListQuery","description":"Page, filter and sort the nodes. Without it every node is listed\nand the response carries no summary."},{"type":"null"}]},"selector":{"$ref":"#/components/schemas/ProviderSelector","description":"Selector for filtering providers whose nodes to list"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListProviderNodesResponse":{"type":"object","required":["nodes"],"properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/ProviderNodeInfo"},"description":"List of the nodes available for renting. With a `query`, only the requested page."},"summary":{"oneOf":[{"$ref":"#/components/schemas/NodeListSummary","description":"Totals and filter options for the whole list; present when the request carried a `query`"},{"type":"null"}]}}},"ListProviderNodesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["nodes"],"properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/ProviderNodeInfo"},"description":"List of the nodes available for renting. With a `query`, only the requested page."},"summary":{"oneOf":[{"$ref":"#/components/schemas/NodeListSummary","description":"Totals and filter options for the whole list; present when the request carried a `query`"},{"type":"null"}]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListProvidersRequest":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/ComputeProviderSelector","description":"Selector for filtering providers"},"with_payout_settings":{"type":"boolean","description":"Include each enrolled provider's payout settings. Requires the\n`ManageBalance` permission; without it the whole request is refused."}}},"ListProvidersRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/ComputeProviderSelector","description":"Selector for filtering providers"},"with_payout_settings":{"type":"boolean","description":"Include each enrolled provider's payout settings. Requires the\n`ManageBalance` permission; without it the whole request is refused."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListProvidersResponse":{"type":"object","required":["providers"],"properties":{"providers":{"type":"array","items":{"$ref":"#/components/schemas/ComputeProviderInfo"},"description":"List of compute providers on the platform"}}},"ListProvidersResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["providers"],"properties":{"providers":{"type":"array","items":{"$ref":"#/components/schemas/ComputeProviderInfo"},"description":"List of compute providers on the platform"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListQuotasRequest":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/QuotaSelector"}}},"ListQuotasRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/QuotaSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListQuotasResponse":{"type":"object","required":["quotas"],"properties":{"quotas":{"type":"array","items":{"$ref":"#/components/schemas/Quota"}}}},"ListQuotasResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["quotas"],"properties":{"quotas":{"type":"array","items":{"$ref":"#/components/schemas/Quota"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListRecipesRequest":{"type":"object","description":"Options for `recipes/list`; without a body the catalog comes back as before.","properties":{"compatibility":{"oneOf":[{"$ref":"#/components/schemas/NodeSelector","description":"Judge each VM image for what `instances/rent` would rent with this selector and carry\nthe verdict as `compatibility`. Needs `RentInstance`; a node named outright must be rentable\nby the caller as rent admits it (on the marketplace, allocated to them, or managed by\nthem)."},{"type":"null"}]},"team_id":{"type":["string","null"],"description":"Team on whose behalf the compatibility is asked, checked as `instances/rent` checks it"},"with_image_metadata":{"type":"boolean","description":"Carry each VM recipe's `image_metadata`"}}},"ListRecipesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Options for `recipes/list`; without a body the catalog comes back as before.","properties":{"compatibility":{"oneOf":[{"$ref":"#/components/schemas/NodeSelector","description":"Judge each VM image for what `instances/rent` would rent with this selector and carry\nthe verdict as `compatibility`. Needs `RentInstance`; a node named outright must be rentable\nby the caller as rent admits it (on the marketplace, allocated to them, or managed by\nthem)."},{"type":"null"}]},"team_id":{"type":["string","null"],"description":"Team on whose behalf the compatibility is asked, checked as `instances/rent` checks it"},"with_image_metadata":{"type":"boolean","description":"Carry each VM recipe's `image_metadata`"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListRecipesResponse":{"type":"object","required":["groups","other_recipes"],"properties":{"groups":{"type":"array","items":{"$ref":"#/components/schemas/RecipeGroup"},"description":"List of the recipe groups available for renting"},"other_recipes":{"type":"array","items":{"$ref":"#/components/schemas/Recipe"},"description":"List of all recipes without any group assigned"}}},"ListRecipesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["groups","other_recipes"],"properties":{"groups":{"type":"array","items":{"$ref":"#/components/schemas/RecipeGroup"},"description":"List of the recipe groups available for renting"},"other_recipes":{"type":"array","items":{"$ref":"#/components/schemas/Recipe"},"description":"List of all recipes without any group assigned"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListReservationTypesResponse":{"type":"object","required":["reservation_types"],"properties":{"reservation_types":{"type":"array","items":{"$ref":"#/components/schemas/ReservationType"}}}},"ListReservationTypesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["reservation_types"],"properties":{"reservation_types":{"type":"array","items":{"$ref":"#/components/schemas/ReservationType"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListReservationsRequest":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/ReservationSelector"}}},"ListReservationsRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/ReservationSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListReservationsResponse":{"type":"object","required":["reservations"],"properties":{"reservations":{"type":"array","items":{"$ref":"#/components/schemas/Reservation"}}}},"ListReservationsResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["reservations"],"properties":{"reservations":{"type":"array","items":{"$ref":"#/components/schemas/Reservation"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListSavedEnvironmentsRequest":{"type":"object","properties":{"team_id":{"type":["string","null"],"description":"Scope the listing to a team the caller belongs to; omit for the\ncaller's own environments."}}},"ListSavedEnvironmentsRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","properties":{"team_id":{"type":["string","null"],"description":"Scope the listing to a team the caller belongs to; omit for the\ncaller's own environments."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListSavedEnvironmentsResponse":{"type":"object","required":["saved_environments"],"properties":{"saved_environments":{"type":"array","items":{"$ref":"#/components/schemas/SavedEnvironment"}}}},"ListSavedEnvironmentsResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["saved_environments"],"properties":{"saved_environments":{"type":"array","items":{"$ref":"#/components/schemas/SavedEnvironment"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListSshKeysRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/AccountSelector"}}},"ListSshKeysRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/AccountSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListSshKeysResponse":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/SshKey"},"description":"List of the SSH keys available for renting","example":[{"id":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b","name":"my-key","public_key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD..."}]}}},"ListSshKeysResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/SshKey"},"description":"List of the SSH keys available for renting","example":[{"id":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b","name":"my-key","public_key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD..."}]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListTeamSshKeysResponse":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/SshKey"},"description":"List of the SSH keys available for renting","example":[{"id":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b","name":"my-key","owner":true,"public_key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD...","user_name":"John Doe"}]}}},"ListTeamSshKeysResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/SshKey"},"description":"List of the SSH keys available for renting","example":[{"id":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b","name":"my-key","owner":true,"public_key":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD...","user_name":"John Doe"}]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListTeamsRequest":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/TeamListSelector"},"with_account_info":{"type":"boolean","description":"Include account/financial info (admin/provider)."},"with_members":{"type":"boolean","description":"Include team members in the response."}}},"ListTeamsRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","properties":{"selector":{"$ref":"#/components/schemas/TeamListSelector"},"with_account_info":{"type":"boolean","description":"Include account/financial info (admin/provider)."},"with_members":{"type":"boolean","description":"Include team members in the response."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListTeamsResponse":{"type":"object","required":["teams","total"],"properties":{"teams":{"type":"array","items":{"$ref":"#/components/schemas/TeamInfo"}},"total":{"type":"integer","format":"int32","description":"Total number of teams matching the selector.","minimum":0}}},"ListTeamsResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["teams","total"],"properties":{"teams":{"type":"array","items":{"$ref":"#/components/schemas/TeamInfo"}},"total":{"type":"integer","format":"int32","description":"Total number of teams matching the selector.","minimum":0}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListUsersRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/UserSelector","description":"Filter users. A selector is always required."},"with_account_info":{"type":"boolean","description":"Include account/financial info (admin/provider)."}}},"ListUsersRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/UserSelector","description":"Filter users. A selector is always required."},"with_account_info":{"type":"boolean","description":"Include account/financial info (admin/provider)."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListUsersResponse":{"type":"object","required":["users","total"],"properties":{"total":{"type":"integer","format":"int32","description":"Total number of users matching the selector.","minimum":0},"users":{"type":"array","items":{"$ref":"#/components/schemas/UserInfo"}}}},"ListUsersResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["users","total"],"properties":{"total":{"type":"integer","format":"int32","description":"Total number of users matching the selector.","minimum":0},"users":{"type":"array","items":{"$ref":"#/components/schemas/UserInfo"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListVolumesRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/VolumeSelector"},"team_id":{"type":["string","null"],"description":"Team ID to list team volumes","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"ListVolumesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/VolumeSelector"},"team_id":{"type":["string","null"],"description":"Team ID to list team volumes","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ListVolumesResponse":{"type":"object","required":["volumes"],"properties":{"volumes":{"type":"array","items":{"$ref":"#/components/schemas/VolumeInfo"},"description":"List of volumes"}}},"ListVolumesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["volumes"],"properties":{"volumes":{"type":"array","items":{"$ref":"#/components/schemas/VolumeInfo"},"description":"List of volumes"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"LoginUserRequest":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string","description":"User email","example":"debug@usr.com"},"password":{"type":"string","description":"User password","example":"debug-pwd"}}},"LoginUserRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["email","password"],"properties":{"email":{"type":"string","description":"User email","example":"debug@usr.com"},"password":{"type":"string","description":"User password","example":"debug-pwd"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"LoginUserResponse":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"Token for authentication to be used in the Authorization header"}}},"LoginUserResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"Token for authentication to be used in the Authorization header"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"MaasCommand":{"oneOf":[{"type":"object","required":["type"],"properties":{"tags":{"type":["array","null"],"items":{"type":"string"}},"type":{"type":"string","enum":["ListNodes"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["GetServerInfo"]}}},{"type":"object","required":["system_id","type"],"properties":{"system_id":{"type":"string"},"type":{"type":"string","enum":["GetNodeInfo"]}}},{"type":"object","required":["system_id","instance_name","ssh_keys","type"],"properties":{"instance_name":{"type":"string"},"password":{"type":["string","null"]},"ssh_keys":{"type":"array","items":{"type":"string"}},"system_id":{"type":"string"},"type":{"type":"string","enum":["Deploy"]},"username":{"type":["string","null"]}}},{"type":"object","required":["system_id","type"],"properties":{"instance_name":{"type":["string","null"]},"system_id":{"type":"string"},"type":{"type":"string","enum":["Release"]}}}]},"MaasCommandOutput":{"oneOf":[{"type":"object","required":["nodes","type"],"properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/MaasNodeInfo"}},"type":{"type":"string","enum":["ListNodes"]}}},{"allOf":[{"$ref":"#/components/schemas/MaasServerInfo"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["GetServerInfo"]}}}]},{"allOf":[{"$ref":"#/components/schemas/MaasNodeInfo"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["GetNodeInfo"]}}}]},{"allOf":[{"$ref":"#/components/schemas/MaasNodeInfo"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Deploy"]}}}]},{"allOf":[{"$ref":"#/components/schemas/MaasNodeInfo"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Release"]}}}]}]},"MaasCommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["nodes","type"],"properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/MaasNodeInfo"}},"type":{"type":"string","enum":["ListNodes"]}}},{"allOf":[{"$ref":"#/components/schemas/MaasServerInfo"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["GetServerInfo"]}}}]},{"allOf":[{"$ref":"#/components/schemas/MaasNodeInfo"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["GetNodeInfo"]}}}]},{"allOf":[{"$ref":"#/components/schemas/MaasNodeInfo"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Deploy"]}}}]},{"allOf":[{"$ref":"#/components/schemas/MaasNodeInfo"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Release"]}}}]}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"MaasCommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["type"],"properties":{"tags":{"type":["array","null"],"items":{"type":"string"}},"type":{"type":"string","enum":["ListNodes"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["GetServerInfo"]}}},{"type":"object","required":["system_id","type"],"properties":{"system_id":{"type":"string"},"type":{"type":"string","enum":["GetNodeInfo"]}}},{"type":"object","required":["system_id","instance_name","ssh_keys","type"],"properties":{"instance_name":{"type":"string"},"password":{"type":["string","null"]},"ssh_keys":{"type":"array","items":{"type":"string"}},"system_id":{"type":"string"},"type":{"type":"string","enum":["Deploy"]},"username":{"type":["string","null"]}}},{"type":"object","required":["system_id","type"],"properties":{"instance_name":{"type":["string","null"]},"system_id":{"type":"string"},"type":{"type":"string","enum":["Release"]}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"MaasNodeInfo":{"type":"object","required":["system_id","status","ip_addresses"],"properties":{"hardware_uuid":{"type":["string","null"]},"instance_name":{"type":["string","null"]},"ip_addresses":{"type":"array","items":{"type":"string"}},"status":{"$ref":"#/components/schemas/MaasNodeStatus"},"system_id":{"type":"string"}}},"MaasNodeStatus":{"oneOf":[{"type":"string","enum":["New"]},{"type":"string","enum":["Ready"]},{"type":"string","enum":["Deployed"]},{"type":"object","required":["Failed"],"properties":{"Failed":{"type":"string"}}},{"type":"object","required":["Busy"],"properties":{"Busy":{"type":"string"}}},{"type":"object","required":["Unknown"],"properties":{"Unknown":{"type":"string"}}}]},"MaasServerInfo":{"type":"object","required":["version","subversion","capabilities"],"properties":{"capabilities":{"type":"array","items":{"type":"string"}},"subversion":{"type":"string"},"version":{"type":"string"}}},"MeResponse":{"type":"object","required":["id","email","provider","totp_enabled"],"properties":{"email":{"type":"string","description":"user email"},"id":{"type":"string","description":"user ID"},"name":{"type":["string","null"],"description":"user name"},"provider":{"type":"string","description":"authentication provider: \"CloudRift\", \"Google\", or \"GitHub\""},"restricted":{"type":"boolean","description":"The account is flagged as fraudulent and limited to read-only access\nuntil support lifts the flag. Absent from older servers."},"totp_enabled":{"type":"boolean","description":"whether TOTP 2FA is enabled"}}},"MeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["id","email","provider","totp_enabled"],"properties":{"email":{"type":"string","description":"user email"},"id":{"type":"string","description":"user ID"},"name":{"type":["string","null"],"description":"user name"},"provider":{"type":"string","description":"authentication provider: \"CloudRift\", \"Google\", or \"GitHub\""},"restricted":{"type":"boolean","description":"The account is flagged as fraudulent and limited to read-only access\nuntil support lifts the flag. Absent from older servers."},"totp_enabled":{"type":"boolean","description":"whether TOTP 2FA is enabled"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NetIfAddr":{"oneOf":[{"type":"object","required":["Inet"],"properties":{"Inet":{"type":"object","required":["net"],"properties":{"broadcast":{"type":"string","description":"Broadcast address"},"net":{"$ref":"#/components/schemas/Ipv4Net","description":"IP address and netmask"}}}}},{"type":"object","required":["Inet6"],"properties":{"Inet6":{"type":"object","required":["net"],"properties":{"anycast":{"type":"string","description":"Anycast address"},"net":{"$ref":"#/components/schemas/Ipv6Net","description":"IP address and netmask"}}}}}]},"NetIface":{"type":"object","required":["index","addrs"],"properties":{"addrs":{"type":"array","items":{"$ref":"#/components/schemas/NetIfAddr"},"description":"IP addresses assigned to the interface"},"index":{"type":"integer","format":"int32","description":"Interface index in the system","minimum":0},"name":{"type":["string","null"],"description":"Interface name like eth0"}}},"NetworkEventType":{"type":"string","enum":["Create","Destroy"]},"NetworkExecutorInfo":{"type":"object","required":["id","ip","owner_email"],"properties":{"id":{"type":"string"},"ip":{"type":"string","example":"192.168.1.100"},"owner_email":{"type":"string","description":"Owner (node user) email","example":"john@acme.com"}}},"NetworkInfo":{"type":"object","required":["name"],"properties":{"egress_proxy_url":{"type":["string","null"],"description":"Proxy settings are visible only to a provider or platform administrator."},"executors":{"type":"array","items":{"$ref":"#/components/schemas/NetworkExecutorInfo"}},"gateway":{"type":["string","null"],"example":"192.168.1.1"},"id":{"type":["string","null"]},"iface":{"type":["string","null"]},"ip_ranges":{"type":"array","items":{"$ref":"#/components/schemas/NetworkIpRange"}},"name":{"type":"string","example":"private-network-1"},"netmask":{"type":["integer","null"],"format":"int32","minimum":0},"no_proxy":{"type":["string","null"]},"server_address":{"type":["string","null"]},"team_id":{"type":["string","null"]},"team_name":{"type":["string","null"]}}},"NetworkIpRange":{"type":"object","required":["from","to"],"properties":{"external_from":{"type":["string","null"],"description":"Optional external start mapped 1:1 to [from, to]","example":"38.108.83.41"},"external_to":{"type":["string","null"],"description":"Optional external range end mapped 1:1 to [from, to]","example":"38.108.83.46"},"from":{"type":"string","description":"Minimum IP address (inclusive)","example":"192.168.1.100"},"to":{"type":"string","description":"Maximum IP address (inclusive)","example":"192.168.1.150"}}},"NetworkSelector":{"oneOf":[{"type":"object","description":"Retrieve networks in specific datacenters","required":["ByDataCenter"],"properties":{"ByDataCenter":{"type":"array","items":{"type":"string"},"description":"Retrieve networks in specific datacenters"}},"example":{"ByDataCenter":["us-east-nc-nr-1"]}},{"type":"string","description":"Retrieve all networks (admin: all in DB, provider: all in owned datacenters)","enum":["All"],"example":"All"},{"type":"object","description":"Retrieve networks for a specific team","required":["ByTeamId"],"properties":{"ByTeamId":{"type":"string","description":"Retrieve networks for a specific team"}},"example":{"ByTeamId":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}},{"type":"object","description":"Retrieve networks for a specific provider (by provider name)","required":["ByProvider"],"properties":{"ByProvider":{"type":"string","description":"Retrieve networks for a specific provider (by provider name)"}},"example":{"ByProvider":"TestProvider"}},{"type":"object","description":"Retrieve the networks a rental by this team or user may be placed\nin: public networks plus the renter's own, where a user's own\ninclude those of its teams. The caller must be the user or a member\nof the team.","required":["ByRenter"],"properties":{"ByRenter":{"type":"string","description":"Retrieve the networks a rental by this team or user may be placed\nin: public networks plus the renter's own, where a user's own\ninclude those of its teams. The caller must be the user or a member\nof the team."}},"example":{"ByRenter":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}]},"NodeAdminSelector":{"oneOf":[{"type":"object","description":"Select nodes by ID","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"},"description":"Select nodes by ID"}},"example":{"ById":["f8c403e6-7101-11ee-b00d-63f746883a19"]}}],"description":"Selector for node admin operations (drain, delete, marketplace listing toggle, etc.)"},"NodeCpuAllocationMode":{"type":"string","enum":["Legacy","Pinned","Mixed"]},"NodeDrainInfo":{"type":"object","description":"Information about the drain state of a node","required":["state","notification_sent"],"properties":{"grace_period_secs":{"type":["integer","null"],"format":"int64","description":"Grace period in seconds","example":86400},"notification_sent":{"type":"boolean","description":"Whether notification was sent to users"},"reason":{"type":["string","null"],"description":"Optional reason for the drain"},"scheduled_stop_at":{"type":["string","null"],"description":"When instances will be terminated (started_at + grace_period)","example":"2025-01-08T12:00:00Z"},"started_at":{"type":["string","null"],"description":"When the drain was started","example":"2025-01-07T12:00:00Z"},"state":{"$ref":"#/components/schemas/NodeDrainState","description":"Current drain state"}}},"NodeDrainResult":{"type":"object","description":"Result of draining a single node","required":["node_id","drain_info","active_instance_count","users_notified"],"properties":{"active_instance_count":{"type":"integer","format":"int32","description":"Number of active (non-root) instances on this node","minimum":0},"drain_info":{"$ref":"#/components/schemas/NodeDrainInfo"},"node_id":{"type":"string"},"users_notified":{"type":"integer","format":"int32","description":"Number of users notified via email","minimum":0}}},"NodeDrainState":{"type":"string","description":"State of node draining process","enum":["None","Draining","Drained"]},"NodeEvent":{"type":"object","required":["executor_id","event"],"properties":{"event":{"$ref":"#/components/schemas/DockerEvent","description":"Event data"},"executor_id":{"type":"string","description":"ID of the executor for which the event has occurred"}}},"NodeEventData":{"oneOf":[{"type":"object","required":["Docker"],"properties":{"Docker":{"$ref":"#/components/schemas/DockerEvent"}}},{"type":"object","required":["VirtMachine"],"properties":{"VirtMachine":{"$ref":"#/components/schemas/VirtEvent"}}}]},"NodeEventDataProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Docker"],"properties":{"Docker":{"$ref":"#/components/schemas/DockerEvent"}}},{"type":"object","required":["VirtMachine"],"properties":{"VirtMachine":{"$ref":"#/components/schemas/VirtEvent"}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NodeEventExtended":{"type":"object","required":["executor_id","event"],"properties":{"event":{"$ref":"#/components/schemas/NodeEventData","description":"Event data"},"executor_id":{"type":"string","description":"ID of the executor for which the event has occurred"}}},"NodeEventExtendedProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["executor_id","event"],"properties":{"event":{"$ref":"#/components/schemas/NodeEventData","description":"Event data"},"executor_id":{"type":"string","description":"ID of the executor for which the event has occurred"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NodeEventProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["executor_id","event"],"properties":{"event":{"$ref":"#/components/schemas/DockerEvent","description":"Event data"},"executor_id":{"type":"string","description":"ID of the executor for which the event has occurred"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NodeForceDrainResult":{"type":"object","description":"Result of force draining a single node","required":["node_id","instances_terminated"],"properties":{"instances_terminated":{"type":"integer","format":"int32","description":"Number of instances that were terminated","minimum":0},"node_id":{"type":"string"}}},"NodeGpuHealth":{"type":"object","required":["index","enabled"],"properties":{"enabled":{"type":"boolean","description":"`false` when an operator disabled the GPU"},"index":{"type":"integer","format":"int32","description":"Index of the GPU in `hardware.gpus`, whose `pci_slot` locates the\ncard in the host, and bit of the GPU in `utilization.gpus_available_mask`","example":0,"minimum":0},"pci_valid":{"type":["boolean","null"],"description":"Result of the last PCI check; `None` until the node reports one"},"power_state":{"oneOf":[{"$ref":"#/components/schemas/GpuPowerState","description":"Last reported PCI power state; `None` until the node reports one"},{"type":"null"}]}}},"NodeHealthStatus":{"oneOf":[{"type":"string","enum":["Healthy"]},{"type":"object","required":["Unhealthy"],"properties":{"Unhealthy":{"type":"object","required":["error_code","error_message","last_healthy_at"],"properties":{"error_code":{"type":"string"},"error_message":{"type":"string"},"last_healthy_at":{"type":"string","example":"2021-01-01T00:00:00Z"}}}}}]},"NodeInfo":{"type":"object","required":["id","machine_id","status"],"properties":{"host_address":{"type":["string","null"],"description":"public address of the node"},"id":{"type":"string","description":"unique UUID for the node"},"instance":{"type":["string","null"],"description":"instance associated with the node"},"machine_id":{"type":"string","description":"unique machine ID for the node to distinguish it from other nodes"},"status":{"$ref":"#/components/schemas/NodeStatus","description":"status of the node, like offline or active"}}},"NodeInfoProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["id","machine_id","status"],"properties":{"host_address":{"type":["string","null"],"description":"public address of the node"},"id":{"type":"string","description":"unique UUID for the node"},"instance":{"type":["string","null"],"description":"instance associated with the node"},"machine_id":{"type":"string","description":"unique machine ID for the node to distinguish it from other nodes"},"status":{"$ref":"#/components/schemas/NodeStatus","description":"status of the node, like offline or active"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NodeListDatacenterCount":{"type":"object","required":["name","count"],"properties":{"count":{"type":"integer","format":"int32","minimum":0},"country_code":{"type":["string","null"],"example":"US"},"name":{"type":"string","example":"us-east-1"}}},"NodeListGpuModelCount":{"type":"object","required":["count"],"properties":{"count":{"type":"integer","format":"int32","minimum":0},"model":{"type":["string","null"],"description":"GPU `brand_short`; `None` for nodes without GPUs","example":"RTX 5090"}}},"NodeListProviderCount":{"type":"object","required":["name","count"],"properties":{"count":{"type":"integer","format":"int32","minimum":0},"name":{"type":"string","example":"CloudRift"}}},"NodeListQuery":{"type":"object","properties":{"datacenters":{"type":"array","items":{"type":"string"},"description":"Only nodes in one of these datacenters"},"gpu_models":{"type":"array","items":{"type":["string","null"]},"description":"Only nodes with one of these GPU models (`brand_short` of the first\ndiscrete GPU); `null` stands for nodes without GPUs. Integrated (APU)\ngraphics are ignored, so a node with only those counts as having none.","example":["RTX 5090",null]},"limit":{"type":"integer","format":"int32","description":"Page size, at most 200","example":50,"minimum":0},"offset":{"type":"integer","format":"int32","description":"Number of matching nodes to skip","example":0,"minimum":0},"providers":{"type":"array","items":{"type":"string"},"description":"Only nodes of one of these providers"},"search":{"type":["string","null"],"description":"Case-insensitive substring of the node ID, hostname, IP address,\ndatacenter, country code or GPU model","example":"sel-5090"},"sort":{"oneOf":[{"$ref":"#/components/schemas/NodeListSort","description":"Defaults to `Status` ascending, which puts nodes needing attention first.\nTies are broken by hostname."},{"type":"null"}]},"status":{"oneOf":[{"$ref":"#/components/schemas/NodeListStatus","description":"Only nodes in this status tab"},{"type":"null"}]}}},"NodeListSort":{"type":"object","required":["key"],"properties":{"direction":{"$ref":"#/components/schemas/SortDirection"},"key":{"$ref":"#/components/schemas/NodeListSortKey"}}},"NodeListSortKey":{"type":"string","enum":["Hostname","NodeId","Gpu","InstanceType","IpAddress","ClientVersion","Datacenter","GpuUsage","Vram","Status"]},"NodeListStatus":{"type":"string","description":"Status tab of the node list. A node falls in at most one, checked in\nthis order: `Draining` (draining or drained), then `Unhealthy` (offline,\nnot responding or failing its health check), then `Available` or\n`FullyRented` for a ready node. Hibernated nodes fall in none.","enum":["Available","FullyRented","Unhealthy","Draining"]},"NodeListStatusCounts":{"type":"object","required":["all","available","fully_rented","unhealthy","draining"],"properties":{"all":{"type":"integer","format":"int32","minimum":0},"available":{"type":"integer","format":"int32","minimum":0},"draining":{"type":"integer","format":"int32","minimum":0},"fully_rented":{"type":"integer","format":"int32","minimum":0},"unhealthy":{"type":"integer","format":"int32","minimum":0}}},"NodeListSummary":{"type":"object","required":["total","status_counts","gpu_models","datacenters","providers"],"properties":{"datacenters":{"type":"array","items":{"$ref":"#/components/schemas/NodeListDatacenterCount"},"description":"Every datacenter among the listed nodes, with matches applying every filter except `datacenters`"},"gpu_models":{"type":"array","items":{"$ref":"#/components/schemas/NodeListGpuModelCount"},"description":"Every GPU model among the listed nodes, with matches applying every filter except `gpu_models`"},"newest_client_version":{"type":["string","null"],"description":"Newest client version among the listed nodes, ignoring filters","example":"0.62.0"},"providers":{"type":"array","items":{"$ref":"#/components/schemas/NodeListProviderCount"},"description":"Every provider among the listed nodes, with matches applying every filter except `providers`"},"status_counts":{"$ref":"#/components/schemas/NodeListStatusCounts","description":"Matches per status tab, applying every filter except `status`"},"total":{"type":"integer","format":"int32","description":"Nodes matching every filter, across all pages","example":830,"minimum":0}}},"NodeMemory":{"type":"object","description":"Explicit memory assignment for one host NUMA node in a manual NUMA\nconfiguration. Only needed for a deliberately non-proportional split.","required":["node_id","memory_kb"],"properties":{"memory_kb":{"type":"integer","format":"int64","description":"Memory assigned to the guest cell on this host node, in KiB","example":"16777216","minimum":0},"node_id":{"type":"integer","format":"int32","description":"Host NUMA node id","example":"0","minimum":0}}},"NodeMetrics":{"type":"object","description":"Hardware metrics for a single node","required":["node_id","gpus"],"properties":{"gpus":{"type":"array","items":{"$ref":"#/components/schemas/GpuMetrics"}},"node_id":{"type":"string"}}},"NodeMetricsRequest":{"type":"object","description":"Request to fetch hardware metrics for nodes","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NodeMetricsSelector"}}},"NodeMetricsRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to fetch hardware metrics for nodes","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NodeMetricsSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NodeMetricsResponse":{"type":"object","description":"Response containing node metrics","required":["metrics"],"properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/NodeMetrics"}}}},"NodeMetricsResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Response containing node metrics","required":["metrics"],"properties":{"metrics":{"type":"array","items":{"$ref":"#/components/schemas/NodeMetrics"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NodeMetricsSelector":{"oneOf":[{"type":"object","description":"Select nodes by ID","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"},"description":"Select nodes by ID"}},"example":{"ById":["f8c403e6-7101-11ee-b00d-63f746883a19"]}}],"description":"Selector for which nodes to query metrics for"},"NodeSelector":{"oneOf":[{"type":"object","required":["ByInstanceTypeAndLocation"],"properties":{"ByInstanceTypeAndLocation":{"type":"object","required":["instance_type"],"properties":{"datacenters":{"type":["array","null"],"items":{"type":"string"},"description":"Locations where we can allocate requested instance","example":["us-east-nc-nr-1"]},"instance_type":{"type":"string","description":"Instance type to rent","example":"generic-cpu.1"}}}}},{"type":"object","required":["ByNodeId"],"properties":{"ByNodeId":{"type":"object","required":["node_id","instance_type"],"properties":{"instance_type":{"type":"string","description":"Instance type to rent","example":"generic-cpu.1"},"node_id":{"type":"string","description":"Node ID to rent","example":"f8c403e6-7101-11ee-b00d-63f746883a19"}}}}},{"type":"object","description":"Rent a custom off-catalog configuration on a specific node. Requires\n`allow_custom_instances` enabled and operator role (admin or the\nnode's provider); a quota holder may use it on their own allocated node.","required":["ByNodeWithResources"],"properties":{"ByNodeWithResources":{"type":"object","description":"Rent a custom off-catalog configuration on a specific node. Requires\n`allow_custom_instances` enabled and operator role (admin or the\nnode's provider); a quota holder may use it on their own allocated node.","required":["node_id","resources"],"properties":{"node_id":{"type":"string","description":"Node ID to rent on","example":"f8c403e6-7101-11ee-b00d-63f746883a19"},"resources":{"$ref":"#/components/schemas/ResourceSpec","description":"Exact hardware resources to allocate"}}}}}]},"NodeStatus":{"type":"string","enum":["Ready","Hibernated","NotResponding","Offline"]},"NodeSummary":{"type":"object","required":["machine_id","utilization_percentage","unique_user_count","cost_per_hour","total_usage_amount","total_usage_time","instance_type_name"],"properties":{"cost_per_hour":{"type":"number","format":"double","description":"cost per hour for the machine"},"instance_type_name":{"type":"string","description":"instance type name of the machine"},"machine_id":{"type":"string","description":"unique identifier for the machine"},"most_active_user_email":{"type":["string","null"],"description":"email of the most active user on this machine"},"total_usage_amount":{"type":"number","format":"double","description":"total usage amount for the machine in dollars"},"total_usage_time":{"type":"object","description":"total usage time for the machine as a `Duration`","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"nanos":0,"secs":1}},"unique_user_count":{"type":"integer","format":"int64","description":"number of unique users who used the machine"},"utilization_percentage":{"type":"number","format":"double","description":"utilization percentage of the machine"}}},"NodeSummaryProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["machine_id","utilization_percentage","unique_user_count","cost_per_hour","total_usage_amount","total_usage_time","instance_type_name"],"properties":{"cost_per_hour":{"type":"number","format":"double","description":"cost per hour for the machine"},"instance_type_name":{"type":"string","description":"instance type name of the machine"},"machine_id":{"type":"string","description":"unique identifier for the machine"},"most_active_user_email":{"type":["string","null"],"description":"email of the most active user on this machine"},"total_usage_amount":{"type":"number","format":"double","description":"total usage amount for the machine in dollars"},"total_usage_time":{"type":"object","description":"total usage time for the machine as a `Duration`","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"nanos":0,"secs":1}},"unique_user_count":{"type":"integer","format":"int64","description":"number of unique users who used the machine"},"utilization_percentage":{"type":"number","format":"double","description":"utilization percentage of the machine"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NodeSummaryResponse":{"type":"object","required":["summary"],"properties":{"summary":{"type":"array","items":{"$ref":"#/components/schemas/NodeSummary"}}}},"NodeSummaryResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["summary"],"properties":{"summary":{"type":"array","items":{"$ref":"#/components/schemas/NodeSummary"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"NodeUnallocatedCapacity":{"type":"object","description":"Resources on a node that no allocation holds: healthy GPUs, vCPUs a\nrental can request, RAM a VM can be given in bytes, and storage-disk\nbytes.","required":["gpu_count","cpu_count","dram"],"properties":{"cpu_count":{"type":"integer","format":"int32","example":"96","minimum":0},"disk":{"type":["integer","null"],"format":"int64","description":"`None` when the node reports no usable storage disk.","example":"8796093022208","minimum":0},"dram":{"type":"integer","format":"int64","example":"429496729600","minimum":0},"gpu_count":{"type":"integer","format":"int32","example":"4","minimum":0}}},"NvidiaDriverKind":{"type":"string","enum":["standard","vgpu_guest"]},"NvidiaKernelModule":{"type":"string","enum":["open","proprietary"]},"NvidiaKernelModuleSupport":{"type":"string","description":"NVIDIA kernel-module flavors a GPU can load, derived from its architecture.\nPick images tagged `nvidia-driver-proprietary` for `ProprietaryOnly` and avoid them for `OpenOnly`.","enum":["ProprietaryOnly","OpenOrProprietary","OpenOnly","Unknown"]},"OAuthProvider":{"type":"string","enum":["google","github"]},"OAuthTokenExchangeRequest":{"type":"object","required":["provider","token"],"properties":{"provider":{"$ref":"#/components/schemas/OAuthProvider","description":"OAuth provider"},"token":{"type":"string","description":"OAuth token received from the provider"}}},"OAuthTokenExchangeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["provider","token"],"properties":{"provider":{"$ref":"#/components/schemas/OAuthProvider","description":"OAuth provider"},"token":{"type":"string","description":"OAuth token received from the provider"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"OAuthTokenExchangeResponse":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"Our JWT token that can be used to authenticate with the API"}}},"OAuthTokenExchangeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["token"],"properties":{"token":{"type":"string","description":"Our JWT token that can be used to authenticate with the API"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PasswordResetRequest":{"type":"object","required":["token","new_password"],"properties":{"new_password":{"type":"string","description":"New password","example":"newpassword"},"token":{"type":"string","description":"Password reset token received in the email"}}},"PasswordResetRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["token","new_password"],"properties":{"new_password":{"type":"string","description":"New password","example":"newpassword"},"token":{"type":"string","description":"Password reset token received in the email"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PasswordResetVerifyRequest":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email to send the password reset token","example":"debug@usr.com"}}},"PasswordResetVerifyRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"Email to send the password reset token","example":"debug@usr.com"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PauseInstancesRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to pause (freezes vCPUs; resources stay allocated)"}}},"PauseInstancesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to pause (freezes vCPUs; resources stay allocated)"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PauseInstancesResponse":{"type":"object","required":["paused_ids"],"properties":{"paused_ids":{"type":"array","items":{"type":"string"}}}},"PauseInstancesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["paused_ids"],"properties":{"paused_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PerfDataResponse":{"type":"object","required":["periodic_tasks","active_executors","active_nodes"],"properties":{"active_executors":{"type":"integer","minimum":0},"active_nodes":{"type":"integer","minimum":0},"periodic_tasks":{"$ref":"#/components/schemas/PeriodicTasks"}}},"PerfDataResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["periodic_tasks","active_executors","active_nodes"],"properties":{"active_executors":{"type":"integer","minimum":0},"active_nodes":{"type":"integer","minimum":0},"periodic_tasks":{"$ref":"#/components/schemas/PeriodicTasks"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PeriodicTasks":{"type":"object","required":["last_duration_sec","max_duration_sec"],"properties":{"last_duration_sec":{"type":"number","format":"double"},"max_duration_sec":{"type":"number","format":"double"}}},"PeriodicTasksProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["last_duration_sec","max_duration_sec"],"properties":{"last_duration_sec":{"type":"number","format":"double"},"max_duration_sec":{"type":"number","format":"double"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"Permission":{"type":"string","description":"One class of action a role may perform. Scope (which rows the action may\ntouch) is decided separately by the server.\n\nNames follow one convention: `List<Plural>` for reads, `<Verb><Singular>`\nfor an action on one resource, `Manage<Plural>` for a resource's management\nsurface. Renaming a variant is a two-step data migration on the server and\na protocol change for every client, so settle a name before it is seeded.","enum":["ListInstances","RentInstance","StopInstance","StartInstance","PauseInstance","ResumeInstance","TerminateInstance","ReimageInstance","ViewInstanceCredentials","ListNodes","ManageNodes","DeleteNode","ConfigureNodePlacement","RentPrivilegedInstance","OperateNode","ListUsers","CreateUser","DeleteUser","SendUserMessage","ExemptBilling","UpdateCreditLimit","ManageBalance","ViewBilling","ManagePayments","ListNetworks","CreateNetwork","DeleteNetwork","ListTeams","CreateTeam","ManageTeamMembers","ListClusters","CreateCluster","DeleteCluster","ManageClusterMembers","RunClusterCommand","CreateRecipe","DeleteRecipe","ManageRecipes","ListSshKeys","CreateSshKey","DeleteSshKey","ListVolumes","CreateVolume","DeleteVolume","ListApiKeys","CreateApiKey","UpdateApiKey","DeleteApiKey","ManageProviders","ViewProviderBilling","ListReservations","CreateReservation","ListInstancePresets","DeleteInstancePreset","ListQuotas","ManageTwoFactor","ListFeatureFlags","ListAdminSshKeys","ManageFeatureFlags","RefreshAppSettings","ManageInstanceTypes","Unknown"]},"PollNodeRequest":{"oneOf":[{"type":"object","required":["Register"],"properties":{"Register":{"type":"object","required":["machine_id","hints"],"properties":{"hints":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"various hints for the server to decide what to do with the node"},"machine_id":{"type":"string","description":"unique machine ID for the node to distinguish it from other nodes"}}}}},{"type":"object","required":["Poll"],"properties":{"Poll":{"type":"object","required":["node_id","session_id","hibernated","unfinished_commands"],"properties":{"hibernated":{"type":"boolean","description":"whether the node is hibernated and server should not issue any computationally expensive tasks"},"node_id":{"type":"string","description":"node ID if the node has registered before,\n once it is received from the server it should be sent back in the next request"},"session_id":{"type":"string","description":"session ID if the node has registered before,\nonce it is received from the server it should be sent back in the next request"},"unfinished_commands":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"integer","format":"int64","minimum":0}]},"description":"all the commands that the node is currently processing in the form (executor_id, command_id)\nto let the server know about the commands that are being processed vs lost ones"}}}}},{"type":"object","required":["PollBatch"],"properties":{"PollBatch":{"type":"object","required":["nodes"],"properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/PollNodeRequestData"}}}}}},{"type":"object","required":["Shutdown"],"properties":{"Shutdown":{"type":"object","required":["node_id"],"properties":{"node_id":{"type":"string","description":"node ID if the node has registered before,"}}}}}]},"PollNodeRequestData":{"type":"object","required":["node_id","session_id","hibernated","unfinished_commands"],"properties":{"hibernated":{"type":"boolean","description":"whether the node is hibernated and server should not issue any computationally expensive tasks"},"node_id":{"type":"string","description":"node ID if the node has registered before,\n once it is received from the server it should be sent back in the next request"},"session_id":{"type":"string","description":"session ID if the node has registered before,\nonce it is received from the server it should be sent back in the next request"},"unfinished_commands":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"integer","format":"int64","minimum":0}]},"description":"all the commands that the node is currently processing in the form (executor_id, command_id)\nto let the server know about the commands that are being processed vs lost ones"}}},"PollNodeRequestDataProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["node_id","session_id","hibernated","unfinished_commands"],"properties":{"hibernated":{"type":"boolean","description":"whether the node is hibernated and server should not issue any computationally expensive tasks"},"node_id":{"type":"string","description":"node ID if the node has registered before,\n once it is received from the server it should be sent back in the next request"},"session_id":{"type":"string","description":"session ID if the node has registered before,\nonce it is received from the server it should be sent back in the next request"},"unfinished_commands":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"integer","format":"int64","minimum":0}]},"description":"all the commands that the node is currently processing in the form (executor_id, command_id)\nto let the server know about the commands that are being processed vs lost ones"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PollNodeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Register"],"properties":{"Register":{"type":"object","required":["machine_id","hints"],"properties":{"hints":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"various hints for the server to decide what to do with the node"},"machine_id":{"type":"string","description":"unique machine ID for the node to distinguish it from other nodes"}}}}},{"type":"object","required":["Poll"],"properties":{"Poll":{"type":"object","required":["node_id","session_id","hibernated","unfinished_commands"],"properties":{"hibernated":{"type":"boolean","description":"whether the node is hibernated and server should not issue any computationally expensive tasks"},"node_id":{"type":"string","description":"node ID if the node has registered before,\n once it is received from the server it should be sent back in the next request"},"session_id":{"type":"string","description":"session ID if the node has registered before,\nonce it is received from the server it should be sent back in the next request"},"unfinished_commands":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"integer","format":"int64","minimum":0}]},"description":"all the commands that the node is currently processing in the form (executor_id, command_id)\nto let the server know about the commands that are being processed vs lost ones"}}}}},{"type":"object","required":["PollBatch"],"properties":{"PollBatch":{"type":"object","required":["nodes"],"properties":{"nodes":{"type":"array","items":{"$ref":"#/components/schemas/PollNodeRequestData"}}}}}},{"type":"object","required":["Shutdown"],"properties":{"Shutdown":{"type":"object","required":["node_id"],"properties":{"node_id":{"type":"string","description":"node ID if the node has registered before,"}}}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PollNodeResponse":{"oneOf":[{"type":"object","required":["Register"],"properties":{"Register":{"type":"object","required":["node_id","session_id"],"properties":{"node_id":{"type":"string","description":"a unique UUID of the node to be used in further communication"},"session_id":{"type":"string","description":"a unique UUID of the session to be used in further communication"}}}}},{"type":"object","required":["Poll"],"properties":{"Poll":{"type":"object","properties":{"command":{"oneOf":[{"$ref":"#/components/schemas/CommandWithContext","description":"command to be executed"},{"type":"null"}]}}}}},{"type":"object","required":["PollBatch"],"properties":{"PollBatch":{"type":"object","required":["commands"],"properties":{"commands":{"type":"array","items":{"$ref":"#/components/schemas/PollNodeResponseData"}}}}}},{"type":"string","enum":["Shutdown"]}]},"PollNodeResponseData":{"type":"object","required":["node_id","session_id","command"],"properties":{"command":{"$ref":"#/components/schemas/CommandWithContext","description":"whether the node is hibernated and server should not issue any computationally expensive tasks"},"node_id":{"type":"string","description":"node ID if the node has registered before,\n once it is received from the server it should be sent back in the next request"},"session_id":{"type":"string","description":"session ID if the node has registered before,\nonce it is received from the server it should be sent back in the next request"}}},"PollNodeResponseDataProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["node_id","session_id","command"],"properties":{"command":{"$ref":"#/components/schemas/CommandWithContext","description":"whether the node is hibernated and server should not issue any computationally expensive tasks"},"node_id":{"type":"string","description":"node ID if the node has registered before,\n once it is received from the server it should be sent back in the next request"},"session_id":{"type":"string","description":"session ID if the node has registered before,\nonce it is received from the server it should be sent back in the next request"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PollNodeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Register"],"properties":{"Register":{"type":"object","required":["node_id","session_id"],"properties":{"node_id":{"type":"string","description":"a unique UUID of the node to be used in further communication"},"session_id":{"type":"string","description":"a unique UUID of the session to be used in further communication"}}}}},{"type":"object","required":["Poll"],"properties":{"Poll":{"type":"object","properties":{"command":{"oneOf":[{"$ref":"#/components/schemas/CommandWithContext","description":"command to be executed"},{"type":"null"}]}}}}},{"type":"object","required":["PollBatch"],"properties":{"PollBatch":{"type":"object","required":["commands"],"properties":{"commands":{"type":"array","items":{"$ref":"#/components/schemas/PollNodeResponseData"}}}}}},{"type":"string","enum":["Shutdown"]}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PortBinding":{"type":"object","required":["host","publish"],"properties":{"host":{"$ref":"#/components/schemas/HostPort"},"publish":{"$ref":"#/components/schemas/PublishPort"}}},"Principal":{"oneOf":[{"type":"object","required":["User"],"properties":{"User":{"type":"string"}}},{"type":"object","required":["Team"],"properties":{"Team":{"type":"string"}}}],"description":"Resolved holder of an allocation."},"ProfilePointData":{"type":"object","required":["metod_name","count","duration"],"properties":{"count":{"type":"integer","format":"int64","minimum":0},"duration":{"$ref":"#/components/schemas/ProfilePointDurationData"},"metod_name":{"type":"string"}}},"ProfilePointDataProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["metod_name","count","duration"],"properties":{"count":{"type":"integer","format":"int64","minimum":0},"duration":{"$ref":"#/components/schemas/ProfilePointDurationData"},"metod_name":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ProfilePointDurationData":{"type":"object","required":["avg_ms","max_ms","med_ms"],"properties":{"avg_ms":{"type":"integer","minimum":0},"max_ms":{"type":"integer","minimum":0},"med_ms":{"type":"integer","minimum":0}}},"ProfilePointDurationDataProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["avg_ms","max_ms","med_ms"],"properties":{"avg_ms":{"type":"integer","minimum":0},"max_ms":{"type":"integer","minimum":0},"med_ms":{"type":"integer","minimum":0}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ProfilePointInstanceData":{"type":"object","required":["method_name","duration_ms","category"],"properties":{"category":{"type":"string"},"duration_ms":{"type":"integer","minimum":0},"method_name":{"type":"string"}}},"ProfilePointInstanceDataProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["method_name","duration_ms","category"],"properties":{"category":{"type":"string"},"duration_ms":{"type":"integer","minimum":0},"method_name":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ProfilerDataResponse":{"type":"object","required":["profiler_memory_usage","started_at","duration_sec","profile_points","profile_instances"],"properties":{"duration_sec":{"type":"integer","format":"int64","minimum":0},"profile_instances":{"type":"array","items":{"$ref":"#/components/schemas/ProfilePointInstanceData"}},"profile_points":{"type":"array","items":{"$ref":"#/components/schemas/ProfilePointData"}},"profiler_memory_usage":{"type":"integer","minimum":0},"started_at":{"type":"string"}}},"ProfilerDataResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["profiler_memory_usage","started_at","duration_sec","profile_points","profile_instances"],"properties":{"duration_sec":{"type":"integer","format":"int64","minimum":0},"profile_instances":{"type":"array","items":{"$ref":"#/components/schemas/ProfilePointInstanceData"}},"profile_points":{"type":"array","items":{"$ref":"#/components/schemas/ProfilePointData"}},"profiler_memory_usage":{"type":"integer","minimum":0},"started_at":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PromoCodeRequest":{"type":"object","required":["promo_code"],"properties":{"promo_code":{"type":"string"},"team_id":{"type":["string","null"],"example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"PromoCodeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["promo_code"],"properties":{"promo_code":{"type":"string"},"team_id":{"type":["string","null"],"example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"Protocol":{"type":"string","description":"Network protocol on which a port can be exposed.","enum":["Tcp","Udp","Sctp"]},"ProviderAccessGrant":{"type":"object","description":"One access grant on a provider, as `POST /providers/access/list`\nreports it.","required":["principal","principal_name","role","granted_at"],"properties":{"granted_at":{"type":"string"},"granted_by":{"type":["string","null"],"description":"The user who granted or last changed the grant, when still known."},"principal":{"$ref":"#/components/schemas/ProviderAccessPrincipal"},"principal_name":{"type":"string","description":"The team's name, or the user's email."},"role":{"$ref":"#/components/schemas/ProviderAccessRole"}}},"ProviderAccessPrincipal":{"oneOf":[{"type":"object","required":["User"],"properties":{"User":{"type":"string"}}},{"type":"object","required":["Team"],"properties":{"Team":{"type":"string"}}}],"description":"Who holds a grant: one user, or a team whose every member holds it."},"ProviderAccessRole":{"type":"string","description":"What a grant lets its principal do on the provider. Each value names a\nseeded account-anchored role; `/capabilities/list` reports the exact\npermissions a grant conveys per provider.","enum":["Operator","Viewer"]},"ProviderAccessSelector":{"oneOf":[{"type":"object","description":"Select the provider by its unique name.","required":["ByName"],"properties":{"ByName":{"type":"string","description":"Select the provider by its unique name."}},"example":"TestProvider"}],"description":"The provider whose access grants a request reads or changes."},"ProviderNodeHardwareInfo":{"type":"object","required":["cpu","gpus","dram","disks"],"properties":{"cpu":{"$ref":"#/components/schemas/CpuInfo","description":"Node CPU information"},"disks":{"type":"array","items":{"$ref":"#/components/schemas/DiskInfo"},"description":"Disks available on the node"},"dram":{"type":"integer","format":"int64","description":"Total node DRAM","example":"1236950581248","minimum":0},"gpus":{"type":"array","items":{"$ref":"#/components/schemas/GpuInfo"},"description":"Number of gpus on the node"}}},"ProviderNodeInfo":{"type":"object","description":"Updated ProviderNodeInfo with drain information","required":["id","status","health_state","hardware","utilization","active_instance_count","cpu_allocation_mode"],"properties":{"active_instance_count":{"type":"integer","format":"int32","description":"Number of active (non-root) instances on this node","example":0,"minimum":0},"allocations":{"type":"array","items":{"$ref":"#/components/schemas/Quota"},"description":"Active resource quotas (allocations) carved out of this node — the\noperator view. Customers read their own via `/quotas/list`. Lets the\noperator node page render the capacity strip + table from one call."},"client_version":{"type":["string","null"]},"country_code":{"type":["string","null"],"description":"Country code of the node location","example":"US"},"cpu_allocation_mode":{"$ref":"#/components/schemas/NodeCpuAllocationMode","description":"Mode a new rental on this node would be allocated in, resolving the\nserver-wide pinning setting against the node's current executor mix."},"datacenter_name":{"type":["string","null"],"description":"Datacenter the node is placed in","example":"us-east-1"},"drain_info":{"oneOf":[{"$ref":"#/components/schemas/NodeDrainInfo","description":"Drain state information (present if node is draining or drained)"},{"type":"null"}]},"gpu_health":{"type":"array","items":{"$ref":"#/components/schemas/NodeGpuHealth"},"description":"Health of each GPU, ordered by index. A GPU that failed its PCI\ncheck or was disabled can't be rented, whether or not it is in use."},"hardware":{"$ref":"#/components/schemas/ProviderNodeHardwareInfo","description":"Hardware information of the node"},"health_state":{"$ref":"#/components/schemas/NodeHealthStatus"},"hostname":{"type":["string","null"]},"id":{"type":"string","description":"ID of the node to be used in rent API request"},"instance":{"oneOf":[{"$ref":"#/components/schemas/InstanceInfo","description":"Information about the instance like cost, etc."},{"type":"null"}]},"ip_address":{"type":["string","null"]},"list_on_marketplace":{"type":"boolean","description":"Whether the node is listed on the marketplace for new rentals"},"provider_name":{"type":["string","null"],"description":"Provider that owns the node's datacenter","example":"CloudRift"},"proxy_jump":{"type":["string","null"]},"proxy_port":{"type":["integer","null"],"format":"int32","minimum":0},"proxy_user":{"type":["string","null"]},"ssh_host":{"type":["string","null"],"description":"SSH connection details for reaching the node"},"ssh_port":{"type":["integer","null"],"format":"int32","minimum":0},"ssh_user":{"type":["string","null"]},"status":{"$ref":"#/components/schemas/NodeStatus","description":"Status of the node, like offline or active"},"storage_disk_size":{"type":["integer","null"],"format":"int64","description":"Size of the disk rentals are carved from — the preferred mount\npoint, else the default storage mount. Not necessarily the largest\nentry in `hardware.disks`. `None` when the node reports no usable\nstorage disk.","example":"8796093022208","minimum":0},"unallocated":{"oneOf":[{"$ref":"#/components/schemas/NodeUnallocatedCapacity","description":"Free capacity that no allocation holds: what a rental by an account\nwithout an allocation here can use, and what a new allocation for an\naccount not already renting here can be given. Equals the free\ncapacity in `utilization` on a node without allocations."},{"type":"null"}]},"utilization":{"$ref":"#/components/schemas/ProviderNodeUtilizationInfo"},"vm_ram_capacity":{"type":["integer","null"],"format":"int64","description":"Maximum RAM a VM rental can be given on this node. VM memory is\nbacked by 1 GiB hugepages whenever the host mounts a 1 GiB\nhugetlbfs, so `hardware.dram` overstates it. `None` when the node\nreports no hugepage reservation, in which case `hardware.dram`\napplies.","example":"429496729600","minimum":0}}},"ProviderNodeUtilizationInfo":{"type":"object","required":["cpu_cores_available","cpu_cores_available_mask","gpus_available","gpus_available_mask","dram_available"],"properties":{"cpu_cores_available":{"type":"integer","format":"int32","description":"Maximum vCPUs a new rental can request on this node right now.\nMode-aware: under Legacy this is the free logical CPUs; under\npinning it accounts for whole-core reservation, the emulator\noverhead core, and fragmentation, so the advertised number is one\nthe allocator will actually accept.","example":"96","minimum":0},"cpu_cores_available_mask":{"type":"string","description":"Free logical CPUs as a hex bitmask","example":"ffffffffffffffffffffffff"},"disk_available":{"type":["integer","null"],"format":"int64","description":"Disk available for renting, in bytes. `None` when the node reports no\nusable storage disk.","example":"8796093022208","minimum":0},"dram_available":{"type":"integer","format":"int64","description":"DRAM available for renting","example":"1236950581248","minimum":0},"gpus_available":{"type":"integer","format":"int32","description":"Number of GPUs available for renting","example":"8","minimum":0},"gpus_available_mask":{"type":"string","description":"Available GPUs as a hex number making a bitmask","example":"1ff"},"mig_gpu_mask":{"type":"string","description":"Bitmask of GPUs hosting MIG instances","example":"0"},"rentable_gpus":{"type":"integer","format":"int32","description":"Free GPUs that are also healthy — excludes PCI-invalid and disabled\nGPUs. Rentable capacity; `gpus_available` is the raw free count.","example":"8","minimum":0}}},"ProviderPayoutLine":{"type":"object","description":"What one resource or service earned in the period of a provider payout.","required":["earnings"],"properties":{"earnings":{"type":"integer","format":"int64","description":"The provider's share, in currency units."},"kind":{"oneOf":[{"$ref":"#/components/schemas/ResourceType","description":"Absent when the resource behind the earnings no longer exists."},{"type":"null"}]},"name":{"type":["string","null"],"description":"The instance name, like `rtx4090.4`, or the service name. Absent for\nvolumes and IP addresses.","example":"rtx4090.4"},"usage_cost":{"type":["integer","null"],"format":"int64","description":"What customers were charged, in currency units. Absent when the ledger\ndoesn't record it."},"usage_seconds":{"type":["number","null"],"format":"double","description":"Time billed, including a reservation's whole prepaid duration. Absent\nfor services."}}},"ProviderPayoutMethod":{"type":"string","enum":["Ach","InternationalWire"]},"ProviderPayoutRecipient":{"type":"object","description":"Where a provider's money goes.","required":["external_id","method"],"properties":{"external_id":{"type":"string","description":"The recipient's ID at Mercury."},"method":{"$ref":"#/components/schemas/ProviderPayoutMethod"}}},"ProviderPayoutSchedule":{"type":"string","description":"When a provider is paid. Cut-offs are at 00:00 UTC, so a period covers\nits last day in full.","enum":["MonthEnd","TwiceMonthly"]},"ProviderPayoutSettingsInfo":{"type":"object","required":["schedule","minimum_amount"],"properties":{"minimum_amount":{"type":"integer","format":"int64","description":"In currency units."},"recipient":{"oneOf":[{"$ref":"#/components/schemas/ProviderPayoutRecipient","description":"`null` when the provider has no destination. It isn't paid until it has one."},{"type":"null"}]},"schedule":{"$ref":"#/components/schemas/ProviderPayoutSchedule"}}},"ProviderPermissions":{"type":"object","description":"The permissions the caller holds on one provider: the full effective\nset under `Platform` scope, the `Provider` role's for the provider's\nroot user, and the granted role's for a user or team grant, unioned\nwhen several apply.","required":["provider","permissions"],"properties":{"permissions":{"type":"array","items":{"$ref":"#/components/schemas/Permission"},"description":"Sorted by name. A name this client does not know arrives as\n`Unknown`."},"provider":{"type":"string","description":"The provider's name, as in `CapabilitiesResponse::providers`."}}},"ProviderSelector":{"oneOf":[{"type":"string","description":"Select all providers","enum":["All"]},{"type":"object","description":"Select providers by name","required":["ByName"],"properties":{"ByName":{"type":"array","items":{"type":"string"},"description":"Select providers by name"}}}]},"ProxyConfig":{"type":"object","required":["name","tunnel_type","local_ip","local_port","remote_port"],"properties":{"local_ip":{"type":"integer","format":"int32"},"local_port":{"type":"integer","format":"int32"},"name":{"type":"string"},"remote_port":{"type":"integer","format":"int32"},"tunnel_type":{"type":"string"}}},"ProxyConfigProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","tunnel_type","local_ip","local_port","remote_port"],"properties":{"local_ip":{"type":"integer","format":"int32"},"local_port":{"type":"integer","format":"int32"},"name":{"type":"string"},"remote_port":{"type":"integer","format":"int32"},"tunnel_type":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"PublishPort":{"type":"object","description":"Structure used to expose a port on a container","required":["port","protocol"],"properties":{"port":{"type":"integer","format":"int32","minimum":0},"protocol":{"$ref":"#/components/schemas/Protocol"}}},"Quota":{"type":"object","description":"Operator-assigned dedicated capacity on a single node. Customer-facing\nname: \"Allocation\".","required":["id","name","account_id","principal","holder_name","node_id","budget","consumed","valid_from","active","billing_exempt","created_at","created_by","created_by_email"],"properties":{"account_id":{"type":"string"},"active":{"type":"boolean","description":"`false` after revoke; the row is kept for audit."},"billing_exempt":{"type":"boolean"},"budget":{"$ref":"#/components/schemas/QuotaResources"},"consumed":{"$ref":"#/components/schemas/QuotaResources","description":"Live consumption: summed requested shapes of the holder's\nresource-holding executors on the node. Server-computed so the\nwizard ceiling and the admission check share one source of truth."},"created_at":{"type":"string"},"created_by":{"type":"string","description":"Operator (admin or node-owning provider) who assigned the quota."},"created_by_email":{"type":"string"},"holder_name":{"type":"string","description":"Recipient display name (team name, or the user's email)."},"id":{"type":"string"},"name":{"type":"string","description":"Operator label, e.g. \"KMG-serv4-2026\""},"node_cpu_brand":{"type":["string","null"]},"node_gpu_brand":{"type":["string","null"]},"node_gpu_vram":{"type":["integer","null"],"format":"int64","minimum":0},"node_hostname":{"type":["string","null"],"description":"Node identity for display — the rental flow must show the renter\nwhich node the allocation pins to."},"node_id":{"type":"string"},"node_instance_type":{"type":["string","null"],"description":"Node hardware summary, so the rental wizard renders the hardware\nwith no `nodes/list` (operator-only) and no client-side join:\ncatalog instance-type name, GPU brand (e.g. \"H200\"), VRAM per GPU\n(bytes), and CPU brand. `None` fields for off-catalog / GPU-less nodes."},"node_ip_address":{"type":["string","null"]},"node_nvidia_kernel_module_support":{"oneOf":[{"$ref":"#/components/schemas/NvidiaKernelModuleSupport","description":"NVIDIA kernel-module flavor the node's GPUs can load, so the rental wizard can\nfilter VM images the same way it does for catalog instance types."},{"type":"null"}]},"principal":{"$ref":"#/components/schemas/Principal"},"valid_from":{"type":"string"},"valid_till":{"type":["string","null"],"description":"`None` = no expiry. Expiry stops new admissions only; running VMs\ncontinue."}}},"QuotaRecipient":{"oneOf":[{"type":"object","required":["User"],"properties":{"User":{"type":"string"}}},{"type":"object","required":["Team"],"properties":{"Team":{"type":"string"}}},{"type":"object","required":["TeamName"],"properties":{"TeamName":{"type":"string"}}}],"description":"Allocation recipient supplied on create."},"QuotaResources":{"type":"object","description":"One resource shape. Used for a quota's budget, its live consumption,\nand the create request. `cpu_count` is guest vCPUs, `gpu_count` whole\nGPUs, `dram`/`disk` bytes — same conventions as `ResourceSpec`.","required":["gpu_count","cpu_count","dram","disk"],"properties":{"cpu_count":{"type":"integer","format":"int32","example":"96","minimum":0},"disk":{"type":"integer","format":"int64","example":"10995116277760","minimum":0},"dram":{"type":"integer","format":"int64","example":"1099511627776","minimum":0},"gpu_count":{"type":"integer","format":"int32","example":"8","minimum":0}}},"QuotaSelector":{"oneOf":[{"type":"string","description":"Everything visible to the caller: own quotas for customers, all\nquotas for admins.","enum":["All"],"example":"All"},{"type":"object","description":"Quotas held by a team (members and admins only).","required":["ByTeamId"],"properties":{"ByTeamId":{"type":"string","description":"Quotas held by a team (members and admins only)."}},"example":{"ByTeamId":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}],"description":"Customer/member-facing selector. The operator's per-node allocation\nview lives on `/nodes/list` (`ProviderNodeInfo.allocations`), not here."},"Recipe":{"type":"object","required":["name","description","tags","details"],"properties":{"description":{"type":"string","description":"Description of the recipe","example":"Docker image with Jupyter, PyTorch and CUDA installed for easy machine learning."},"details":{"$ref":"#/components/schemas/RecipeDetails","description":"Recipe object with the recipe details"},"instructions_url":{"type":["string","null"],"description":"URL to the instructions for the recipe, if available","example":"https://storage.googleapis.com/cloudrift-resources/instructions/deepseek_r1_7b.md"},"logo_url":{"type":["string","null"],"description":"Logo of the recipe, if available, e.g. Ubuntu, PyTorch or Jupyter logo","example":"https://storage.googleapis.com/cloudrift-resources/os/logo/ubuntu.svg"},"name":{"type":"string","description":"Name of the recipe","example":"PyTorch Notebook"},"tags":{"type":"array","items":{"type":"string"},"description":"Tags for the recipe to help users find it and filter by them"}}},"RecipeDetails":{"oneOf":[{"type":"object","required":["Docker"],"properties":{"Docker":{"type":"object","required":["image","command","ports","env"],"properties":{"command":{"type":"array","items":{"type":"string"},"description":"Docker command to run the recipe","example":[]},"env":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"string"},{"type":"string"}]},"description":"Environment variables to set","example":[["JUPYTER_PORT","8117"]]},"image":{"type":"string","description":"Docker image corresponding to the recipe","example":"quay.io/jupyter/pytorch-notebook"},"ports":{"type":"array","items":{"type":"string"},"description":"Ports to expose in the format <host>:<container>:<tcp|udp|sctp>","example":["8117:8888"]}}}}},{"type":"object","required":["VirtualMachine"],"properties":{"VirtualMachine":{"type":"object","required":["image_url","cloudinit_url"],"properties":{"cloudinit_url":{"type":"string"},"compatibility":{"oneOf":[{"$ref":"#/components/schemas/VmImageCompatibility","description":"Whether the image fits what `ListRecipesRequest::compatibility` would rent. Only\nwith that selector; never a promise of capacity, rent validation decides last."},{"type":"null"}]},"image_metadata":{"oneOf":[{"$ref":"#/components/schemas/VmImageMetadata","description":"What the image object says about the GPU stack it ships, or why that is unknown.\nOnly with `ListRecipesRequest::with_image_metadata`."},{"type":"null"}]},"image_url":{"type":"string","description":"VM image to use for the recipe","example":"https://storage.googleapis.com/cloudrift-vm-disks/disks/ubuntu/24.04/noble-server-cloudimg-amd64.img"}}}}}]},"RecipeGroup":{"type":"object","required":["name","description","tags","recipes"],"properties":{"description":{"type":"string","description":"Description of the recipe group","example":"VM images with various Linux distributions."},"logo_url":{"type":["string","null"],"description":"Logo of the recipe group, if available, e.g. Ubuntu, PyTorch or Jupyter logo","example":"https://storage.googleapis.com/cloudrift-resources/os/logo/linux.svg"},"metadata":{"type":["string","null"],"description":"JSON string with metadata for the recipe group","example":"{\"color\": \"ED7014\"}"},"name":{"type":"string","description":"Name of the recipe group","example":"Linux"},"recipes":{"type":"array","items":{"$ref":"#/components/schemas/Recipe"},"description":"Recipes in the group"},"tags":{"type":"array","items":{"type":"string"},"description":"Tags for the recipe group to help users find it and filter by them"}}},"RecipeSelector":{"oneOf":[{"type":"object","required":["Name"],"properties":{"Name":{"type":"array","items":{"type":"string"}}}},{"type":"object","required":["Tag"],"properties":{"Tag":{"type":"array","items":{"type":"string"}}}},{"type":"object","required":["Group"],"properties":{"Group":{"type":"array","items":{"type":"string"}}}}]},"RegisterUserRequest":{"type":"object","required":["name","email","password"],"properties":{"captcha_token":{"type":["string","null"],"description":"Cloudflare Turnstile token from the signup form. Required when the\nserver has Turnstile configured and the email domain isn't trusted."},"email":{"type":"string","description":"New user email","example":"debug@usr.com"},"invite_code":{"type":["string","null"]},"name":{"type":"string","description":"New user name","example":"Test User"},"password":{"type":"string","description":"New user password","example":"debug-pwd"},"subscribe_newsletter":{"type":"boolean","description":"Whether to subscribe user to newsletter"}}},"RegisterUserRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name","email","password"],"properties":{"captcha_token":{"type":["string","null"],"description":"Cloudflare Turnstile token from the signup form. Required when the\nserver has Turnstile configured and the email domain isn't trusted."},"email":{"type":"string","description":"New user email","example":"debug@usr.com"},"invite_code":{"type":["string","null"]},"name":{"type":"string","description":"New user name","example":"Test User"},"password":{"type":"string","description":"New user password","example":"debug-pwd"},"subscribe_newsletter":{"type":"boolean","description":"Whether to subscribe user to newsletter"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RegistryAuth":{"oneOf":[{"type":"object","required":["Password"],"properties":{"Password":{"type":"object","required":["username","password"],"properties":{"email":{"type":["string","null"]},"password":{"type":"string"},"server_address":{"type":["string","null"]},"username":{"type":"string"}}}}},{"type":"object","required":["Token"],"properties":{"Token":{"type":"object","required":["identity_token"],"properties":{"identity_token":{"type":"string"}}}}}]},"RemoveCluster":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"RemoveClusterProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RemoveExecutorFromCluster":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"RemoveExecutorFromClusterProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RemoveInstanceTypeRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstanceTypeSelector"}}},"RemoveInstanceTypeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstanceTypeSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RemoveInstanceVariantRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstanceVariantSelector"}}},"RemoveInstanceVariantRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstanceVariantSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RemoveRecipeOrGroupRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/RecipeSelector"}}},"RemoveRecipeOrGroupRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/RecipeSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RemoveRecipeTagRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"RemoveRecipeTagRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["name"],"properties":{"name":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RemoveTeamMemberRequest":{"type":"object","description":"Request to remove a team member or cancel a pending invite.","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/TeamMemberSelector","description":"The member or invite to remove."}}},"RemoveTeamMemberRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to remove a team member or cancel a pending invite.","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/TeamMemberSelector","description":"The member or invite to remove."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RemoveUserFromCluster":{"type":"object","required":["user_email"],"properties":{"user_email":{"type":"string"}}},"RemoveUserFromClusterProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["user_email"],"properties":{"user_email":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RentInstanceRequest":{"type":"object","required":["selector","with_public_ip","config"],"properties":{"billing_exempt":{"type":"boolean","description":"Admin-only: if true, no billing or provider payout for this rental"},"cluster_name":{"type":["string","null"],"description":"Optional cluster name"},"config":{"$ref":"#/components/schemas/InstanceConfiguration","description":"VM, Docker image, etc."},"name":{"type":["string","null"],"description":"Optional Instance name"},"network":{"type":["string","null"],"description":"Optional Network name","example":"public"},"privileged":{"type":"boolean","description":"Rent with host access the node does not offer customers: a Docker container in\nprivileged mode (to run Docker inside it, for example), or bare metal on a node\nwithout the bare-metal service. VMs have no privileged mode. The selector must name\na node that is off the marketplace, and the caller must hold\n`RentPrivilegedInstance` on its provider: an Admin, or the provider's root user,\nacting as themselves (team API keys are refused)."},"recipe":{"type":["string","null"],"description":"Recipe name to use for the instance","example":"Ubuntu 24.04 Server"},"require_quota_coverage":{"type":"boolean","description":"Fail-closed assertion: this rental must be covered by an active\nresource quota on the node, otherwise it is rejected instead of\nbilled. Never grants coverage — coverage is always derived\nserver-side from (account, node)."},"reservation":{"oneOf":[{"$ref":"#/components/schemas/ReservationParameters","description":"Reservation request parameters for instance usage"},{"type":"null"}]},"reuse_environment_id":{"type":["string","null"],"description":"Reuse a saved environment's disk instead of installing a fresh OS. The\nreferenced environment (see `instances/saved-environments/list`) pins\nthe rental to its node and instance type. `None` for a fresh rental."},"selector":{"$ref":"#/components/schemas/NodeSelector","description":"Instance to rent, obtain by listing provider instance types"},"tags":{"type":"array","items":{"type":"string"},"description":"Free-form labels to attach to the rental (e.g. `[\"env:prod\",\n\"team:ml\"]`). Surfaced back on listings and usable as a list filter\n(`InstancesSelector::ByTags`). Not interpreted by scheduling."},"team_id":{"type":["string","null"],"description":"Optional team ID","example":"00000000-0000-0000-0000-000000000000"},"with_public_ip":{"type":"boolean","description":"Allocate public IP from the pool"}}},"RentInstanceRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector","with_public_ip","config"],"properties":{"billing_exempt":{"type":"boolean","description":"Admin-only: if true, no billing or provider payout for this rental"},"cluster_name":{"type":["string","null"],"description":"Optional cluster name"},"config":{"$ref":"#/components/schemas/InstanceConfiguration","description":"VM, Docker image, etc."},"name":{"type":["string","null"],"description":"Optional Instance name"},"network":{"type":["string","null"],"description":"Optional Network name","example":"public"},"privileged":{"type":"boolean","description":"Rent with host access the node does not offer customers: a Docker container in\nprivileged mode (to run Docker inside it, for example), or bare metal on a node\nwithout the bare-metal service. VMs have no privileged mode. The selector must name\na node that is off the marketplace, and the caller must hold\n`RentPrivilegedInstance` on its provider: an Admin, or the provider's root user,\nacting as themselves (team API keys are refused)."},"recipe":{"type":["string","null"],"description":"Recipe name to use for the instance","example":"Ubuntu 24.04 Server"},"require_quota_coverage":{"type":"boolean","description":"Fail-closed assertion: this rental must be covered by an active\nresource quota on the node, otherwise it is rejected instead of\nbilled. Never grants coverage — coverage is always derived\nserver-side from (account, node)."},"reservation":{"oneOf":[{"$ref":"#/components/schemas/ReservationParameters","description":"Reservation request parameters for instance usage"},{"type":"null"}]},"reuse_environment_id":{"type":["string","null"],"description":"Reuse a saved environment's disk instead of installing a fresh OS. The\nreferenced environment (see `instances/saved-environments/list`) pins\nthe rental to its node and instance type. `None` for a fresh rental."},"selector":{"$ref":"#/components/schemas/NodeSelector","description":"Instance to rent, obtain by listing provider instance types"},"tags":{"type":"array","items":{"type":"string"},"description":"Free-form labels to attach to the rental (e.g. `[\"env:prod\",\n\"team:ml\"]`). Surfaced back on listings and usable as a list filter\n(`InstancesSelector::ByTags`). Not interpreted by scheduling."},"team_id":{"type":["string","null"],"description":"Optional team ID","example":"00000000-0000-0000-0000-000000000000"},"with_public_ip":{"type":"boolean","description":"Allocate public IP from the pool"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RentInstanceResponse":{"type":"object","required":["instance_ids"],"properties":{"instance_ids":{"type":"array","items":{"type":"string"},"description":"ID of the instances that were rented"}}},"RentInstanceResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["instance_ids"],"properties":{"instance_ids":{"type":"array","items":{"type":"string"},"description":"ID of the instances that were rented"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RentalFailureInfo":{"type":"object","description":"Surfaced under `InstanceAndUsageInfo.failure` when a rental ended up in `Failed`.","required":["id","cause","user_message","occurred_at"],"properties":{"cause":{"$ref":"#/components/schemas/DeactivationCause"},"id":{"type":"string","description":"Stable identifier for this failure record. Surfaced in the UI for the\nReport-issue flow so users / support can reference a specific incident."},"occurred_at":{"type":"string","description":"When the failure was recorded."},"user_message":{"type":"string","description":"Safe-to-show message. For `PlatformError` this is a stable constant; for the other\ncauses it includes the relevant detail (image name, exit code, libvirt reason)."}}},"RequestedNumaConfig":{"type":"object","description":"Admin-only manual NUMA CPU pinning for a custom (off-catalog) rental.\nThe admin pins the host CPUs; the server completes the rest of the\nlayout (cell grouping, memory split, emulator core, GPU-to-cell\nmapping), validates it against the host hardware, and uses it instead\nof automatic NUMA derivation.","required":["cpu_ids"],"properties":{"cpu_ids":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"Host CPU ids to expose as guest vCPUs. The server groups them into\nguest cells by each CPU's host NUMA node (one cell per host node,\ncells ordered by node_id ascending).","example":[0,1,2,3,48,49,50,51]},"emulator_cpu_ids":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"description":"Optional. Host CPU ids for the QEMU emulator thread. Omit to let\nthe server pick it the same way the automatic path does: a carved\noverhead core when the VM needs more than one physical core,\notherwise the emulator overlaps the vCPUs (no extra core)."},"gpu_indices":{"type":["array","null"],"items":{"type":"integer","format":"int32","minimum":0},"description":"Optional. Host GPU hardware indices to pass through. Omit to let\nthe server auto-select free GPUs (NUMA-ranked). When supplied, must\nlist exactly `gpu` indices; the server passes through these GPUs and\nstill derives the GPU-to-cell mapping from each GPU's real NUMA\naffinity.","example":[2,3]},"memory_kb_per_node":{"type":["array","null"],"items":{"$ref":"#/components/schemas/NodeMemory"},"description":"Optional. Explicit per-host-node memory for a deliberately\nnon-proportional split. Omit for a vCPU-weighted, hugepage-aware\nsplit of `dram`. Keys must be exactly the host nodes that have\nvCPUs, and the values must sum to `dram`."}}},"Reservation":{"type":"object","required":["id","bound_resource","created_at","valid_till"],"properties":{"billing_exempt":{"type":"boolean","description":"Whether prepayment / extension debits are skipped for this reservation"},"bound_resource":{"type":"string"},"created_at":{"type":"string"},"id":{"type":"string"},"instance_type":{"oneOf":[{"$ref":"#/components/schemas/InstanceType"},{"type":"null"}]},"instance_variant":{"oneOf":[{"$ref":"#/components/schemas/InstanceVariant","description":"Present for catalog reservations; `None` for custom (off-catalog) ones."},{"type":"null"}]},"node_id":{"type":"string","description":"The node a custom reservation is pinned to, so a redeploy targets the\nsame paid-for hardware. `None` for catalog reservations."},"resources":{"oneOf":[{"$ref":"#/components/schemas/ReservationResources","description":"The raw reserved shape; present for custom reservations, `None` for catalog."},{"type":"null"}]},"valid_till":{"type":"string"}}},"ReservationDates":{"type":"object","required":["created_at","valid_till"],"properties":{"created_at":{"type":"string"},"valid_till":{"type":"string"}}},"ReservationParameters":{"oneOf":[{"type":"object","description":"Create a new reservation of the selected type","required":["New"],"properties":{"New":{"type":"object","description":"Create a new reservation of the selected type","required":["type_id"],"properties":{"billing_exempt":{"type":"boolean","description":"Admin-only: skip prepayment debit on the new reservation"},"type_id":{"type":"string","description":"ID of the reservation type (duration & discount tier)","example":"00000000-0000-0000-0000-000000000000"}}}}},{"type":"object","description":"Attach an existing unbound reservation by id","required":["Existing"],"properties":{"Existing":{"type":"string","description":"Attach an existing unbound reservation by id"}},"example":"00000000-0000-0000-0000-000000000000"}],"description":"Parameters for using reservations with instances.\n`billing_exempt` on `New` skips the prepayment debit on the new\nreservation; independent of the rental's billing_exempt flag."},"ReservationResources":{"type":"object","required":["cpu_count","dram"],"properties":{"cpu_count":{"type":"integer","format":"int32","example":"24","minimum":0},"disk":{"type":["integer","null"],"format":"int64","example":"8796093022208","minimum":0},"dram":{"type":"integer","format":"int64","example":"48000000000","minimum":0},"gpu_count":{"type":["integer","null"],"format":"int32","example":"2","minimum":0}}},"ReservationSelector":{"oneOf":[{"type":"string","description":"Select all reservations","enum":["All"],"example":"All"},{"type":"object","required":["ByTeamId"],"properties":{"ByTeamId":{"type":"string"}},"example":{"ByTeamId":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}]},"ReservationType":{"type":"object","required":["id","duration","price_factor"],"properties":{"duration":{"type":"object","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"nanos":0,"secs":1}},"id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"price_factor":{"type":"number","format":"double","example":0.8}}},"ResetInstancesRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to reset"}}},"ResetInstancesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to reset"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ResetInstancesResponse":{"type":"object","required":["reset_ids"],"properties":{"reset_ids":{"type":"array","items":{"type":"string"}}}},"ResetInstancesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["reset_ids"],"properties":{"reset_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ResourceSpec":{"type":"object","required":["vcpu","gpu","dram","disk","cpu_sharing_policy"],"properties":{"cpu_sharing_policy":{"$ref":"#/components/schemas/CpuSharingPolicy","description":"SMT policy for the rental's vCPUs. `Shared` is reserved for MIG\ncatalog variants and is rejected."},"disk":{"type":"integer","format":"int64","example":"8796093022208","minimum":0},"dram":{"type":"integer","format":"int64","example":"48000000000","minimum":0},"gpu":{"type":"integer","format":"int32","example":"1","minimum":0},"manual_numa_config":{"oneOf":[{"$ref":"#/components/schemas/RequestedNumaConfig","description":"Admin-only: manual NUMA CPU pinning. The server completes and\nvalidates the layout, then uses it instead of automatic derivation."},{"type":"null"}]},"vcpu":{"type":"integer","format":"int32","example":"16","minimum":0}}},"ResourceType":{"type":"string","enum":["Compute","Volume","IpAddress","Service"]},"ResponseStatus":{"type":"string","enum":["success","partial_success","error"]},"ResumeInstancesRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to resume from Paused state"}}},"ResumeInstancesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to resume from Paused state"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ResumeInstancesResponse":{"type":"object","required":["resumed_ids"],"properties":{"resumed_ids":{"type":"array","items":{"type":"string"}}}},"ResumeInstancesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["resumed_ids"],"properties":{"resumed_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ResumeNodeRequest":{"type":"object","description":"Request to resume nodes (bring them back online after being drained)","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"ResumeNodeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to resume nodes (bring them back online after being drained)","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ResumeNodeResponse":{"type":"object","required":["node_ids"],"properties":{"node_ids":{"type":"array","items":{"type":"string"}}}},"ResumeNodeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["node_ids"],"properties":{"node_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ReuseDisk":{"type":"object","description":"Boot from a disk preserved by a terminated VM instead of creating a fresh\noverlay. The overlay is a local file on one node, so the server must pin the\nrental to that node.","required":["source_vm_name"],"properties":{"source_vm_name":{"type":"string","description":"`dom_id` of the terminated VM; the host locates the overlay by this name."}}},"RevokeProviderAccessRequest":{"type":"object","description":"Revoke a principal's grant on a provider. Revoking a grant that does\nnot exist succeeds.","required":["selector","principal"],"properties":{"principal":{"$ref":"#/components/schemas/ProviderAccessPrincipal"},"selector":{"$ref":"#/components/schemas/ProviderAccessSelector"}}},"RevokeProviderAccessRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Revoke a principal's grant on a provider. Revoking a grant that does\nnot exist succeeds.","required":["selector","principal"],"properties":{"principal":{"$ref":"#/components/schemas/ProviderAccessPrincipal"},"selector":{"$ref":"#/components/schemas/ProviderAccessSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RevokeQuotaRequest":{"type":"object","required":["quota_id"],"properties":{"quota_id":{"type":"string"}}},"RevokeQuotaRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["quota_id"],"properties":{"quota_id":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"RevokeQuotaResponse":{"type":"object","required":["quota_id"],"properties":{"quota_id":{"type":"string"}}},"RevokeQuotaResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["quota_id"],"properties":{"quota_id":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SavedEnvironment":{"type":"object","description":"A VM disk left on a node by a terminated rental that the renter can\nre-attach to a new VM instead of installing a fresh OS.\n\nTemporary, not a durable backup: the disk is kept at least until\n`protected_until`, then erased whenever a new rental needs the space or\nthe node is drained, and it disappears from the listing once erased. The\ndisk is a local overlay on `node_id`, so a rental reusing it must be\npinned to that node and instance type (see `reuse_environment_id` on the\nrent request).","required":["id","name","node_id","os_label","disk_size_bytes","last_used_at","expires_at"],"properties":{"disk_size_bytes":{"type":"integer","format":"int64","description":"Virtual size of the preserved disk in bytes.","example":"107374182400","minimum":0},"expires_at":{"type":"string","description":"Deprecated: the disk is no longer erased at a fixed time. Equals\n`protected_until`, or 9999-12-31T23:59:59Z when that is `None`."},"id":{"type":"string","description":"Pass as `reuse_environment_id` on a rent request to boot from this disk."},"instance_type_name":{"type":["string","null"],"description":"Catalog instance type the environment is bound to. `None` for off-catalog\nnodes or when the node's type can't be resolved."},"last_used_at":{"type":"string","description":"When the original instance was terminated."},"name":{"type":"string","description":"Name of the original instance.","example":"bright-falcon"},"node_hostname":{"type":["string","null"],"description":"`None` if the node never reported one."},"node_id":{"type":"string","description":"Node the disk lives on; reuse must be pinned here."},"original_variant_name":{"type":["string","null"],"description":"Variant the environment was originally rented at, e.g. \"h100-80gb-1x\".\n`None` once that variant is removed from the catalog."},"os_label":{"type":"string","description":"OS label for display, e.g. \"Ubuntu 24.04 Server\"."},"protected_until":{"type":["string","null"],"description":"Until when the disk is kept for sure; afterwards it is erased only\nwhen its node needs the space. `None` when it is never erased."}}},"ScopeAnchor":{"type":"string","description":"Where a role's authority is anchored in the resource hierarchy.","enum":["Platform","Account"]},"SearchResultEntry":{"type":"object","description":"A single search result entry.","required":["id"],"properties":{"email":{"type":["string","null"],"example":"alex@example.com"},"id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"name":{"type":["string","null"],"example":"Alex Chen"}}},"SearchTeamsRequest":{"type":"object","required":["query"],"properties":{"limit":{"type":"integer","format":"int32","description":"Maximum number of results to return.","minimum":0},"query":{"type":"string","description":"Name substring to search for (case-insensitive).","example":"engineering"}}},"SearchTeamsRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["query"],"properties":{"limit":{"type":"integer","format":"int32","description":"Maximum number of results to return.","minimum":0},"query":{"type":"string","description":"Name substring to search for (case-insensitive).","example":"engineering"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SearchTeamsResponse":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/TeamSearchResultEntry"}}}},"SearchTeamsResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/TeamSearchResultEntry"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SearchUsersRequest":{"type":"object","required":["query"],"properties":{"limit":{"type":"integer","format":"int32","description":"Maximum number of results to return.","minimum":0},"query":{"type":"string","description":"Name or email substring to search for (case-insensitive).","example":"alex"}}},"SearchUsersRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["query"],"properties":{"limit":{"type":"integer","format":"int32","description":"Maximum number of results to return.","minimum":0},"query":{"type":"string","description":"Name or email substring to search for (case-insensitive).","example":"alex"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SearchUsersResponse":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResultEntry"}}}},"SearchUsersResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["results"],"properties":{"results":{"type":"array","items":{"$ref":"#/components/schemas/SearchResultEntry"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SelectorScope":{"oneOf":[{"type":"string","description":"Only the user's personal cluster","enum":["Personal"]},{"type":"object","description":"Only the specified team clusters","required":["Teams"],"properties":{"Teams":{"type":"array","items":{"type":"string"},"description":"Only the specified team clusters"}}},{"type":"object","description":"Personal cluster plus the specified team clusters","required":["PersonalAndTeams"],"properties":{"PersonalAndTeams":{"type":"array","items":{"type":"string"},"description":"Personal cluster plus the specified team clusters"}}},{"type":"string","description":"Personal cluster plus all teams the user is a member of","enum":["All"]}],"description":"Controls which clusters a selector searches."},"SendUsersMessageRequest":{"type":"object","required":["selector","subject","message"],"properties":{"message":{"type":"string","example":"Your account settings have been updated."},"selector":{"$ref":"#/components/schemas/UserSelector"},"subject":{"type":"string","example":"CloudRift account update"}}},"SendUsersMessageRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector","subject","message"],"properties":{"message":{"type":"string","example":"Your account settings have been updated."},"selector":{"$ref":"#/components/schemas/UserSelector"},"subject":{"type":"string","example":"CloudRift account update"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SendUsersMessageResponse":{"type":"object","required":["sent_user_ids"],"properties":{"sent_user_ids":{"type":"array","items":{"type":"string"}}}},"SendUsersMessageResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["sent_user_ids"],"properties":{"sent_user_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ServiceCharge":{"type":"object","required":["amount"],"properties":{"amount":{"type":"array","items":false,"prefixItems":[{"type":"integer","format":"int32"},{"type":"integer","format":"int32"}],"description":"Charge amount as a fraction of currency units (cents)","example":[1354,1000]},"request_id":{"type":["string","null"],"description":"Request ID for idempotency, i.e. to avoid double charges","example":null},"usage_metadata":{"type":["string","null"],"description":"Optional usage metadata, e.g. usage minutes or number of API calls","example":{"num_input_tokens":"10354","num_output_tokens":"6472"}}}},"ServiceChargeRequest":{"type":"object","required":["api_key","amount","service","provider"],"properties":{"amount":{"type":"array","items":false,"prefixItems":[{"type":"integer","format":"int32"},{"type":"integer","format":"int32"}],"description":"Charge amount as a fraction of currency units (cents)","example":[1354,1000]},"api_key":{"type":"string","description":"API key of the account to charge: a user's, or a team's. The request itself\nis authenticated by a platform Admin, so this only names the account.","example":"rift_..."},"provider":{"type":"string","description":"Name of the provider of the service","example":"TestProvider"},"request_id":{"type":["string","null"],"description":"Request ID for idempotency, i.e. to avoid double charges","example":null},"service":{"type":"string","description":"Name of the service to charge","example":"LLM-Inference-API"},"usage_metadata":{"type":["string","null"],"description":"Optional usage metadata, e.g. usage minutes or number of API calls","example":{"num_input_tokens":"10354","num_output_tokens":"6472"}}}},"ServiceChargeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["api_key","amount","service","provider"],"properties":{"amount":{"type":"array","items":false,"prefixItems":[{"type":"integer","format":"int32"},{"type":"integer","format":"int32"}],"description":"Charge amount as a fraction of currency units (cents)","example":[1354,1000]},"api_key":{"type":"string","description":"API key of the account to charge: a user's, or a team's. The request itself\nis authenticated by a platform Admin, so this only names the account.","example":"rift_..."},"provider":{"type":"string","description":"Name of the provider of the service","example":"TestProvider"},"request_id":{"type":["string","null"],"description":"Request ID for idempotency, i.e. to avoid double charges","example":null},"service":{"type":"string","description":"Name of the service to charge","example":"LLM-Inference-API"},"usage_metadata":{"type":["string","null"],"description":"Optional usage metadata, e.g. usage minutes or number of API calls","example":{"num_input_tokens":"10354","num_output_tokens":"6472"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"ServiceChargeResponse":{"type":"object","required":["request_id"],"properties":{"request_id":{"type":"string","description":"Either a provided request ID or a generated one"}}},"ServiceChargeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["request_id"],"properties":{"request_id":{"type":"string","description":"Either a provided request ID or a generated one"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SetNodeMarketplaceListingRequest":{"type":"object","description":"Toggle marketplace visibility on non-draining nodes. Draining/drained nodes are rejected.","required":["selector","list_on_marketplace"],"properties":{"list_on_marketplace":{"type":"boolean","description":"Whether the node appears on the marketplace for new rentals (true = visible, false = hidden)"},"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"SetNodeMarketplaceListingRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Toggle marketplace visibility on non-draining nodes. Draining/drained nodes are rejected.","required":["selector","list_on_marketplace"],"properties":{"list_on_marketplace":{"type":"boolean","description":"Whether the node appears on the marketplace for new rentals (true = visible, false = hidden)"},"selector":{"$ref":"#/components/schemas/NodeAdminSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SetNodeMarketplaceListingResponse":{"type":"object","required":["node_ids"],"properties":{"node_ids":{"type":"array","items":{"type":"string"}}}},"SetNodeMarketplaceListingResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["node_ids"],"properties":{"node_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SortDirection":{"type":"string","enum":["Asc","Desc"]},"SshKey":{"type":"object","required":["id","name","public_key"],"properties":{"id":{"type":"string","description":"SSH key ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"name":{"type":"string","description":"SSH key name","example":"my-key"},"public_key":{"type":"string","description":"SSH key public part","example":"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQD..."}}},"SshKeySelector":{"oneOf":[{"type":"object","required":["ByName"],"properties":{"ByName":{"type":"array","items":{"type":"string"}}},"example":["my-key"]},{"type":"string","enum":["All"],"example":"All"}]},"SshServerCommand":{"oneOf":[{"type":"object","required":["username","ssh_keys","type"],"properties":{"ssh_keys":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["AddSshKeys"]},"username":{"type":"string"}}},{"type":"object","required":["username","ssh_keys","type"],"properties":{"ssh_keys":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["RemoveSshKeys"]},"username":{"type":"string"}}},{"type":"object","required":["username","ssh_keys","type"],"properties":{"ssh_keys":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["SyncAuthorizedKeys"]},"username":{"type":"string"}}}]},"SshServerCommandOutput":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["AddSshKeys"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["RemoveSshKeys"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["SyncAuthorizedKeys"]}}}]},"SshServerCommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["AddSshKeys"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["RemoveSshKeys"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["SyncAuthorizedKeys"]}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SshServerCommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["username","ssh_keys","type"],"properties":{"ssh_keys":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["AddSshKeys"]},"username":{"type":"string"}}},{"type":"object","required":["username","ssh_keys","type"],"properties":{"ssh_keys":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["RemoveSshKeys"]},"username":{"type":"string"}}},{"type":"object","required":["username","ssh_keys","type"],"properties":{"ssh_keys":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["SyncAuthorizedKeys"]},"username":{"type":"string"}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"StartInstancesRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to start"}}},"StartInstancesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to start"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"StartInstancesResponse":{"type":"object","required":["started_ids"],"properties":{"started_ids":{"type":"array","items":{"type":"string"}}}},"StartInstancesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["started_ids"],"properties":{"started_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"StatusSelector":{"type":"object","description":"Selector for filtering instances by status, with optional scope control.","required":["statuses"],"properties":{"limit":{"type":["integer","null"],"format":"int32","description":"Maximum number of matching instances to return. Defaults server-side when omitted.","minimum":0},"scope":{"oneOf":[{"$ref":"#/components/schemas/SelectorScope"},{"type":"null"}]},"statuses":{"type":"array","items":{"$ref":"#/components/schemas/InstanceStatus"}}}},"StopInstancesRequest":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to stop (graceful shutdown)"}}},"StopInstancesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to stop (graceful shutdown)"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"StopInstancesResponse":{"type":"object","required":["stopped_ids"],"properties":{"stopped_ids":{"type":"array","items":{"type":"string"}}}},"StopInstancesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["stopped_ids"],"properties":{"stopped_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"StripeCustomerRequest":{"type":"object","required":["selector"],"properties":{"create":{"type":["boolean","null"],"description":"When the Account has no Stripe customer yet: `true`/omitted creates\none server-side; `false` only reads (response id is null if none)."},"selector":{"$ref":"#/components/schemas/AccountSelector"}}},"StripeCustomerRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"create":{"type":["boolean","null"],"description":"When the Account has no Stripe customer yet: `true`/omitted creates\none server-side; `false` only reads (response id is null if none)."},"selector":{"$ref":"#/components/schemas/AccountSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"StripeCustomerResponse":{"type":"object","properties":{"require_three_d_secure":{"type":["boolean","null"],"description":"Whether the checkout or card save this call starts must ask the\ncard's bank for 3D Secure: the account has no card payment yet and\nthe caller's email domain isn't trusted. Set only when `create` is\ntrue or omitted."},"stripe_customer_id":{"type":["string","null"],"description":"Null only when `create=false` and the Account has no customer yet.","example":"cus_1234abcdEFGH"}}},"StripeCustomerResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","properties":{"require_three_d_secure":{"type":["boolean","null"],"description":"Whether the checkout or card save this call starts must ask the\ncard's bank for 3D Secure: the account has no card payment yet and\nthe caller's email domain isn't trusted. Set only when `create` is\ntrue or omitted."},"stripe_customer_id":{"type":["string","null"],"description":"Null only when `create=false` and the Account has no customer yet.","example":"cus_1234abcdEFGH"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"StripeTransactionInfo":{"oneOf":[{"type":"object","required":["Payment"],"properties":{"Payment":{"type":"object","required":["payment_intent_id"],"properties":{"auto_top_up":{"type":"boolean","description":"True when initiated by the auto top-up cron (off-session charge)"},"payment_intent_id":{"type":"string","description":"ID of CloudRift payment intent"},"stripe_payment_intent_id":{"type":["string","null"],"description":"ID of the Stripe payment"}}}}},{"type":"object","required":["DisputeOpen"],"properties":{"DisputeOpen":{"type":"object","required":["stripe_dispute_id","stripe_dispute_amount","stripe_dispute_fee"],"properties":{"stripe_dispute_amount":{"type":"integer","format":"int64","description":"Amount disputed"},"stripe_dispute_fee":{"type":"integer","format":"int64","description":"Additional amount that payment processor charges for Dispute"},"stripe_dispute_id":{"type":"string","description":"Dispute ID"},"stripe_payment_intent_id":{"type":["string","null"],"description":"ID of the original Stripe payment that is being disputed"}}}}},{"type":"object","required":["DisputeClose"],"properties":{"DisputeClose":{"type":"object","required":["refunded","dispute_fee","stripe_dispute_id","stripe_dispute_status"],"properties":{"dispute_fee":{"type":"integer","format":"int64","description":"Dispute fee charged by the payment processor, not refunded"},"refunded":{"type":"integer","format":"int64","description":"Amount refunded"},"stripe_dispute_id":{"type":"string","description":"Dispute ID"},"stripe_dispute_status":{"type":"string","description":"Status of the dispute like won, lost, etc."},"stripe_payment_intent_id":{"type":["string","null"],"description":"ID of the original Stripe payment that is being disputed"}}}}}]},"SyncImageSpec":{"type":"object","description":"Per-image instruction for `SyncImages`. The server is authoritative about\nwhich images must stay (`required`, in use by a running VM on this node)\nversus which images may stay (catalog images, kept LRU as disk allows).","required":["url","required"],"properties":{"last_used_at":{"type":["string","null"],"description":"Last-usage timestamp (most recent VM that used it) or image creation\ndate, used for LRU ordering of optional images. `None` sorts as oldest."},"required":{"type":"boolean","description":"In use by a VM running on this node — must never be evicted."},"url":{"type":"string"}}},"SystemCommand":{"oneOf":[{"type":"object","required":["Info"],"properties":{"Info":{"$ref":"#/components/schemas/SystemInfoCommand"}}}],"description":"Command to execute on the node"},"SystemCommandOutput":{"oneOf":[{"type":"object","required":["Info"],"properties":{"Info":{"$ref":"#/components/schemas/SystemInfoCommandOutput"}}}],"description":"Result of the command execution"},"SystemCommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Info"],"properties":{"Info":{"$ref":"#/components/schemas/SystemInfoCommandOutput"}}}],"description":"Result of the command execution"},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SystemCommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Info"],"properties":{"Info":{"$ref":"#/components/schemas/SystemInfoCommand"}}}],"description":"Command to execute on the node"},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"SystemCpuInfo":{"type":"object","required":["vendor","brand","physical_core_count","logical_core_count"],"properties":{"brand":{"type":"string","description":"Full brand name of the CPU","example":"AMD Ryzen Threadripper 1950X 16-Core Processor"},"brand_short":{"type":["string","null"],"description":"Short and recognizable brand name of the CPU","example":"Threadripper 1950X"},"logical_core_count":{"type":"integer","format":"int32","description":"Number of logical cores","example":32,"minimum":0},"physical_core_count":{"type":"integer","format":"int32","description":"Number of physical cores","example":16,"minimum":0},"topology":{"oneOf":[{"$ref":"#/components/schemas/SystemCpuTopologyInfo","description":"NUMA and socket topology; None when unavailable (non-Linux or older client)"},{"type":"null"}]},"vendor":{"type":"string","description":"Vendor of the CPU","example":"AMD"}}},"SystemCpuTopologyInfo":{"type":"object","required":["numa_nodes","sockets","cores_per_socket","threads_per_core"],"properties":{"core_groups":{"type":"array","items":{"type":"array","items":{"type":"integer","format":"int32","minimum":0}},"description":"Physical core groups: each entry lists the logical CPU IDs that share one physical core.\nUsed to correctly identify sibling hyperthreads for vCPU pinning and overhead reservation."},"cores_per_socket":{"type":"integer","format":"int32","description":"Number of cores per socket","minimum":0},"numa_nodes":{"type":"array","items":{"$ref":"#/components/schemas/SystemNUMANodeInfo"},"description":"NUMA node topology"},"sockets":{"type":"integer","format":"int32","description":"Number of CPU sockets","minimum":0},"threads_per_core":{"type":"integer","format":"int32","description":"Number of logical threads per physical core (SMT/HT)","minimum":0}}},"SystemDiskInfo":{"type":"object","required":["kind","name","fs_type","mount_point","total","available"],"properties":{"available":{"type":"integer","format":"int64","description":"Free amount of disk space in bytes","example":"100_000_000_000","minimum":0},"fs_type":{"type":"string","description":"File system type like ext4, ntfs, etc.","example":"ext4"},"kind":{"$ref":"#/components/schemas/SystemDiskKind","description":"Kind of the disk"},"mount_point":{"type":"string","description":"Mount point of the disk","example":"/"},"name":{"type":"string","description":"Name of the disk","example":"/dev/sda"},"total":{"type":"integer","format":"int64","description":"Total amount of disk space in bytes","example":"500_000_000_000","minimum":0}}},"SystemDiskKind":{"oneOf":[{"type":"string","description":"HDD type.","enum":["HDD"]},{"type":"string","description":"SSD type.","enum":["SSD"]},{"type":"object","description":"Unknown type.","required":["Unknown"],"properties":{"Unknown":{"type":"integer","description":"Unknown type."}}}]},"SystemGpuInfo":{"type":"object","required":["vram"],"properties":{"brand":{"type":["string","null"],"description":"Full brand name of the GPU","example":"NVIDIA GeForce RTX 4090"},"brand_short":{"type":["string","null"],"description":"Short and recognizable brand name of the GPU","example":"RTX 4090"},"numa_node":{"type":["integer","null"],"format":"int32","description":"NUMA node nearest to this GPU's PCIe slot; None when unavailable","minimum":0},"pci_device_id":{"type":["integer","null"],"format":"int32","description":"PCI device ID, it can be used to locate GPU model if high-level information is not available","minimum":0},"pci_power_state":{"oneOf":[{"$ref":"#/components/schemas/SystemPciPowerState","description":"PCI power state of the GPU"},{"type":"null"}]},"pci_slot":{"oneOf":[{"$ref":"#/components/schemas/SystemPciSlot","description":"PCI slot address to identify the GPU"},{"type":"null"}]},"pci_valid":{"type":["boolean","null"],"description":"The node's GPU health verdict: the PCI config space reads back sane\nand, when the GPU is bound to the host NVIDIA driver, `nvidia-smi`\ncan query it. `false` takes the GPU out of rentals."},"pci_vendor_id":{"type":["integer","null"],"format":"int32","description":"PCI vendor ID, it can be used to locate GPU model if high-level information is not available","minimum":0},"vendor":{"type":["string","null"],"description":"Vendor of the GPU","example":"NVIDIA"},"vram":{"type":"integer","format":"int64","description":"Amount of memory in bytes","example":"24_000_000_000","minimum":0}}},"SystemInfoCommand":{"type":"string","enum":["Cpu","Mem","Gpu","Disk"]},"SystemInfoCommandOutput":{"oneOf":[{"type":"object","required":["Cpu"],"properties":{"Cpu":{"$ref":"#/components/schemas/SystemCpuInfo"}}},{"type":"object","required":["Mem"],"properties":{"Mem":{"$ref":"#/components/schemas/SystemMemoryInfo"}}},{"type":"object","required":["Gpu"],"properties":{"Gpu":{"type":"array","items":{"$ref":"#/components/schemas/SystemGpuInfo"}}}},{"type":"object","required":["Disk"],"properties":{"Disk":{"type":"array","items":{"$ref":"#/components/schemas/SystemDiskInfo"}}}}]},"SystemMemoryInfo":{"type":"object","required":["total","swap"],"properties":{"swap":{"type":"integer","format":"int64","description":"Total amount of swap in bytes","example":"64_000_000_000","minimum":0},"total":{"type":"integer","format":"int64","description":"Total amount of memory in bytes","example":"64_000_000_000","minimum":0}}},"SystemNUMANodeInfo":{"type":"object","required":["node_id","cpu_ids","memory_bytes"],"properties":{"cpu_ids":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"Logical CPU IDs that belong to this NUMA node"},"memory_bytes":{"type":"integer","format":"int64","description":"Total memory on this NUMA node in bytes","minimum":0},"node_id":{"type":"integer","format":"int32","description":"NUMA node identifier","minimum":0},"nr_hugepages_1g":{"type":"integer","format":"int64","description":"Static reservation of 1 GiB hugepages on this node (from\n/sys/devices/system/node/nodeN/hugepages/hugepages-1048576kB/nr_hugepages).\n0 means unknown or not configured.","minimum":0}}},"SystemPciPowerState":{"oneOf":[{"type":"string","description":"D0 - Fully On","enum":["D0"]},{"type":"string","description":"D1 - Low Power State","enum":["D1"]},{"type":"string","description":"D2 - Intermediate Power State","enum":["D2"]},{"type":"string","enum":["D3"]},{"type":"string","description":"D3hot - Device is Off but can be woken up","enum":["D3hot"]},{"type":"string","description":"D3cold - Device is Off and cannot be woken up","enum":["D3cold"]},{"type":"object","description":"Unknown power state","required":["Unknown"],"properties":{"Unknown":{"type":"string","description":"Unknown power state"}}}]},"SystemPciSlot":{"type":"object","required":["domain","bus","device","function"],"properties":{"bus":{"type":"integer","format":"int32","minimum":0},"device":{"type":"integer","format":"int32","minimum":0},"domain":{"type":"integer","format":"int32"},"function":{"type":"integer","format":"int32","minimum":0}}},"TagSelector":{"type":"object","description":"Selector for filtering instances by their free-form tags. An instance\nmatches when it carries **every** tag in `all` (AND) **and** at least\none tag in `any` (OR). An empty list is no constraint on that side; if\nboth lists are empty the selector matches nothing (a tag filter with no\ntags is treated as a mistake, not \"match everything\").","properties":{"all":{"type":"array","items":{"type":"string"},"description":"Instance must carry every one of these tags. Empty = no constraint."},"any":{"type":"array","items":{"type":"string"},"description":"Instance must carry at least one of these tags. Empty = no constraint."}}},"Team":{"type":"object","required":["id","name","account_id","created_at","updated_at","user_role"],"properties":{"account_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"created_at":{"type":"string"},"description":{"type":["string","null"],"example":"Team responsible for backend development"},"id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"name":{"type":"string","example":"Engineering Team"},"updated_at":{"type":"string"},"user_role":{"type":"string","example":"Owner"}}},"TeamAccountInfo":{"type":"object","description":"Financial/account information for a team (admin/provider).","required":["balance","credit_limit","is_unlimited","instance_count","total_spent"],"properties":{"balance":{"type":"integer","format":"int64","description":"Account balance in currency units (cents)."},"credit_limit":{"type":"integer","format":"int64","description":"Account credit limit in currency units (cents)."},"instance_count":{"type":"integer","format":"int32","description":"Number of active instances owned by this team.","minimum":0},"is_unlimited":{"type":"boolean","description":"Whether the credit limit is unlimited."},"three_d_secure_verified_at":{"type":["string","null"],"description":"When the account first paid with a card whose holder passed 3D Secure\nauthentication; absent while it never has."},"total_spent":{"type":"integer","format":"int64","description":"Total amount spent in currency units (cents)."}}},"TeamAssignment":{"oneOf":[{"type":"object","description":"Assign by team ID (null to make public)","required":["ById"],"properties":{"ById":{"type":["string","null"],"description":"Assign by team ID (null to make public)"}},"example":"00000000-0000-0000-0000-000000000000"},{"type":"object","description":"Assign by team name","required":["ByName"],"properties":{"ByName":{"type":"string","description":"Assign by team name"}},"example":"my-team"}],"description":"Selector for team assignment"},"TeamInfo":{"type":"object","description":"Unified team response returned from /teams/list.","required":["id","name","created_at"],"properties":{"account_id":{"type":["string","null"]},"account_info":{"oneOf":[{"$ref":"#/components/schemas/TeamAccountInfo","description":"Present when with_account_info=true (admin/provider)."},{"type":"null"}]},"created_at":{"type":"string"},"description":{"type":["string","null"]},"id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"members":{"type":["array","null"],"items":{"$ref":"#/components/schemas/TeamMember"},"description":"Present when with_members=true."},"name":{"type":"string","example":"Engineering Team"},"updated_at":{"type":["string","null"]},"user_role":{"oneOf":[{"$ref":"#/components/schemas/TeamRole","description":"Present when the caller is a member of this team (Mine selector)."},{"type":"null"}]}}},"TeamListSelector":{"oneOf":[{"type":"string","description":"Return teams the authenticated user belongs to (default).","enum":["Mine"]},{"type":"object","description":"Return teams by specific IDs (platform Admin or provider operator only).","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"},"description":"Return teams by specific IDs (platform Admin or provider operator only)."}},"example":["00000000-0000-0000-0000-000000000000"]},{"type":"object","description":"Return teams with active instances on the given provider's nodes (platform Admin or provider operator only).","required":["ByProvider"],"properties":{"ByProvider":{"type":"string","description":"Return teams with active instances on the given provider's nodes (platform Admin or provider operator only)."}},"example":{"ByProvider":"TestProvider"}},{"type":"object","description":"Filter to teams whose total spend is at least this value (cents).","required":["ByMinSpend"],"properties":{"ByMinSpend":{"type":"integer","format":"int64","description":"Filter to teams whose total spend is at least this value (cents)."}},"example":{"ByMinSpend":10000}},{"type":"string","description":"Filter to teams that currently have running executors (instances),\nincluding `Failed` rentals the renter has not dismissed yet.","enum":["ByActiveExecutors"]}],"description":"Selector for the unified teams/list endpoint."},"TeamMember":{"type":"object","required":["user_id","role","joined_at","name","email"],"properties":{"email":{"type":"string","example":"debug@usr.com"},"joined_at":{"type":"string"},"name":{"type":"string","example":"Test User"},"role":{"type":"string","example":"Owner"},"user_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}}},"TeamMemberInvite":{"type":"object","required":["team_id","team_name","email","role","invited_by_id","invited_at"],"properties":{"email":{"type":"string","example":"john.doe@example.com"},"invited_at":{"type":"string"},"invited_by_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"role":{"type":"string","example":"Member"},"team_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"team_name":{"type":"string","example":"Engineering Team"}}},"TeamMemberInviteResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["team_id","team_name","email","role","invited_by_id","invited_at"],"properties":{"email":{"type":"string","example":"john.doe@example.com"},"invited_at":{"type":"string"},"invited_by_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"role":{"type":"string","example":"Member"},"team_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"team_name":{"type":"string","example":"Engineering Team"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TeamMemberOrInvite":{"oneOf":[{"type":"object","required":["Member"],"properties":{"Member":{"$ref":"#/components/schemas/TeamMember"}}},{"type":"object","required":["Invite"],"properties":{"Invite":{"$ref":"#/components/schemas/TeamMemberInvite"}}}]},"TeamMemberOrInviteResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Member"],"properties":{"Member":{"$ref":"#/components/schemas/TeamMember"}}},{"type":"object","required":["Invite"],"properties":{"Invite":{"$ref":"#/components/schemas/TeamMemberInvite"}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TeamMemberResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["user_id","role","joined_at","name","email"],"properties":{"email":{"type":"string","example":"debug@usr.com"},"joined_at":{"type":"string"},"name":{"type":"string","example":"Test User"},"role":{"type":"string","example":"Owner"},"user_id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TeamMemberSelector":{"oneOf":[{"type":"object","description":"Select an existing team member by their user ID.","required":["ById"],"properties":{"ById":{"type":"string","description":"Select an existing team member by their user ID."}},"example":"00000000-0000-0000-0000-000000000000"},{"type":"object","description":"Select a pending team invite by email.","required":["ByEmail"],"properties":{"ByEmail":{"type":"string","description":"Select a pending team invite by email."}},"example":"john.doe@example.com"}],"description":"Selector for identifying a team member or pending invite."},"TeamResponse":{"type":"object","required":["team","members","invites"],"properties":{"invites":{"type":"array","items":{"$ref":"#/components/schemas/TeamMemberInvite"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/TeamMember"}},"team":{"$ref":"#/components/schemas/Team"}}},"TeamResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["team","members","invites"],"properties":{"invites":{"type":"array","items":{"$ref":"#/components/schemas/TeamMemberInvite"}},"members":{"type":"array","items":{"$ref":"#/components/schemas/TeamMember"}},"team":{"$ref":"#/components/schemas/Team"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TeamRole":{"type":"string","enum":["Owner","Admin","Member"]},"TeamSearchResultEntry":{"type":"object","required":["id","name"],"properties":{"id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"name":{"type":"string","example":"Engineering Team"}}},"TerminalEvent":{"oneOf":[{"type":"object","required":["Resize"],"properties":{"Resize":{"type":"object","required":["rows","cols"],"properties":{"cols":{"type":"integer","format":"int32","minimum":0},"rows":{"type":"integer","format":"int32","minimum":0}}}}}]},"TerminalEventProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["Resize"],"properties":{"Resize":{"type":"object","required":["rows","cols"],"properties":{"cols":{"type":"integer","format":"int32","minimum":0},"rows":{"type":"integer","format":"int32","minimum":0}}}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TerminateInstancesRequest":{"type":"object","description":"Unchanged from `v055::TerminateInstancesRequest`. Re-declared for the\nsame reason as [`ListInstancesRequest`] — the terminate response echoes\nback each instance in full, so it carries login info too.","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to terminate"}}},"TerminateInstancesRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Unchanged from `v055::TerminateInstancesRequest`. Re-declared for the\nsame reason as [`ListInstancesRequest`] — the terminate response echoes\nback each instance in full, so it carries login info too.","required":["selector"],"properties":{"selector":{"$ref":"#/components/schemas/InstancesSelector","description":"Instances to terminate"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TerminateInstancesResponse":{"type":"object","required":["terminated"],"properties":{"terminated":{"type":"array","items":{"$ref":"#/components/schemas/InstanceAndUsageInfo"},"description":"Information about the instances that were terminated, it might not contain all requested instances if some are not found or there was an error"}}},"TerminateInstancesResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["terminated"],"properties":{"terminated":{"type":"array","items":{"$ref":"#/components/schemas/InstanceAndUsageInfo"},"description":"Information about the instances that were terminated, it might not contain all requested instances if some are not found or there was an error"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TotpChallengeResponse":{"type":"object","required":["partial_token"],"properties":{"partial_token":{"type":"string","description":"Short-lived token (5 min) to be used with POST /auth/totp/complete"}}},"TotpChallengeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["partial_token"],"properties":{"partial_token":{"type":"string","description":"Short-lived token (5 min) to be used with POST /auth/totp/complete"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TotpCompleteRequest":{"type":"object","required":["partial_token","code"],"properties":{"code":{"type":"string"},"partial_token":{"type":"string","description":"Partial token received from POST /auth/login"}}},"TotpCompleteRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["partial_token","code"],"properties":{"code":{"type":"string"},"partial_token":{"type":"string","description":"Partial token received from POST /auth/login"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TotpConfirmRequest":{"type":"object","description":"Sent to POST /auth/totp/confirm — verifies the TOTP code and enables 2FA.","required":["code"],"properties":{"code":{"type":"string","description":"6-digit TOTP code from Google Authenticator"}}},"TotpConfirmRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Sent to POST /auth/totp/confirm — verifies the TOTP code and enables 2FA.","required":["code"],"properties":{"code":{"type":"string","description":"6-digit TOTP code from Google Authenticator"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TotpConfirmResponse":{"type":"object","description":"Returned by POST /auth/totp/confirm — indicates 2FA has been successfully enabled.","required":["totp_enabled"],"properties":{"totp_enabled":{"type":"boolean","description":"Whether TOTP 2FA is now enabled on the account"}}},"TotpConfirmResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Returned by POST /auth/totp/confirm — indicates 2FA has been successfully enabled.","required":["totp_enabled"],"properties":{"totp_enabled":{"type":"boolean","description":"Whether TOTP 2FA is now enabled on the account"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TotpDisableRequest":{"type":"object","description":"Sent to POST /auth/totp/disable — verifies the TOTP code and disables 2FA.","required":["code"],"properties":{"code":{"type":"string"}}},"TotpDisableRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Sent to POST /auth/totp/disable — verifies the TOTP code and disables 2FA.","required":["code"],"properties":{"code":{"type":"string"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TotpSetupResponse":{"type":"object","required":["totp_uri","secret"],"properties":{"secret":{"type":"string","description":"Base32-encoded TOTP secret for manual entry"},"totp_uri":{"type":"string","description":"otpauth:// URI — scan this with Google Authenticator"}}},"TotpSetupResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["totp_uri","secret"],"properties":{"secret":{"type":"string","description":"Base32-encoded TOTP secret for manual entry"},"totp_uri":{"type":"string","description":"otpauth:// URI — scan this with Google Authenticator"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"Transaction":{"type":"object","required":["amount","created_at","info"],"properties":{"amount":{"type":"integer","format":"int64","description":"Amount of money in cents, positive for debit and negative for credit"},"created_at":{"type":"string","description":"Date and time of the transaction"},"info":{"$ref":"#/components/schemas/TransactionInfo","description":"Extra information about the transaction"}}},"TransactionArray":{"type":"object","required":["transactions"],"properties":{"transactions":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}}}},"TransactionArrayProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["transactions"],"properties":{"transactions":{"type":"array","items":{"$ref":"#/components/schemas/Transaction"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TransactionInfo":{"oneOf":[{"type":"object","description":"User has deposited or withdrawn money to or from their account using Stripe","required":["Stripe"],"properties":{"Stripe":{"$ref":"#/components/schemas/StripeTransactionInfo","description":"User has deposited or withdrawn money to or from their account using Stripe"}}},{"type":"object","description":"Money has been spent on using a service for a certain amount of time","required":["Usage"],"properties":{"Usage":{"type":"object","description":"Money has been spent on using a service for a certain amount of time","required":["resource_id","resource_type","carryover","rounding"],"properties":{"carryover":{"type":"array","items":false,"prefixItems":[{"type":"integer"},{"type":"integer"}],"description":"Carryover from previous transaction included in the current transaction"},"reservation_data":{"oneOf":[{"$ref":"#/components/schemas/ReservationDates","description":"reservation dates"},{"type":"null"}]},"resource_id":{"type":"string","description":"ID of the resource providing the service"},"resource_name":{"type":["string","null"],"description":"Human-readable resource name (e.g. \"bright-falcon-042\" for instances, volume name for volumes)","example":"bright-falcon-042"},"resource_type":{"$ref":"#/components/schemas/ResourceType","description":"Type of resource"},"rounding":{"type":"array","items":false,"prefixItems":[{"type":"integer"},{"type":"integer"}],"description":"Additional charge due to rounding included in the transaction"},"usage_metadata":{"type":["string","null"],"description":"JSON object with the usage data"}}}}},{"type":"object","description":"Payout to the provider for service usage","required":["Payout"],"properties":{"Payout":{"type":"object","description":"Payout to the provider for service usage","required":["resource_id","carryover","rounding"],"properties":{"carryover":{"type":"array","items":false,"prefixItems":[{"type":"integer"},{"type":"integer"}],"description":"Carryover from previous transaction included in the current transaction"},"resource_id":{"type":"string","description":"ID of the resource providing the service"},"rounding":{"type":"array","items":false,"prefixItems":[{"type":"integer"},{"type":"integer"}],"description":"Additional charge due to rounding included in the transaction"},"usage_cost":{"type":["integer","null"],"format":"int64","description":"usage cost for which we're performing the payout"},"usage_metadata":{"type":["string","null"],"description":"JSON object with the usage data"}}}}},{"type":"object","description":"Charge to the user account by external service","required":["ServiceUsage"],"properties":{"ServiceUsage":{"type":"object","description":"Charge to the user account by external service","required":["service","carryover","rounding"],"properties":{"carryover":{"type":"array","items":false,"prefixItems":[{"type":"integer"},{"type":"integer"}],"description":"Carryover from previous transaction included in the current transaction"},"rounding":{"type":"array","items":false,"prefixItems":[{"type":"integer"},{"type":"integer"}],"description":"Additional charge due to rounding included in the transaction"},"service":{"type":"string","description":"Name of the service"},"usage_metadata":{"type":["string","null"],"description":"JSON object with the usage data"}}}}},{"type":"object","description":"Payout to the provider for usage of external service","required":["ServicePayout"],"properties":{"ServicePayout":{"type":"object","description":"Payout to the provider for usage of external service","required":["service","carryover","rounding"],"properties":{"carryover":{"type":"array","items":false,"prefixItems":[{"type":"integer"},{"type":"integer"}],"description":"Carryover from previous transaction included in the current transaction"},"rounding":{"type":"array","items":false,"prefixItems":[{"type":"integer"},{"type":"integer"}],"description":"Additional charge due to rounding included in the transaction"},"service":{"type":"string","description":"Name of the service"},"usage_cost":{"type":["integer","null"],"format":"int64","description":"usage cost for which we're performing the payout"},"usage_metadata":{"type":["string","null"],"description":"JSON object with the usage data"}}}}},{"type":"object","description":"Amount increase due to promo code","required":["PromoCode"],"properties":{"PromoCode":{"type":"object","description":"Amount increase due to promo code","required":["promo_code"],"properties":{"promo_code":{"type":"string","description":"The promo code that was used"}}}}},{"type":"object","description":"External transaction, e.g. from or to a bank account","required":["External"],"properties":{"External":{"type":"object","description":"External transaction, e.g. from or to a bank account","required":["description"],"properties":{"description":{"type":"string","description":"Description of the payout"}}}}},{"type":"object","description":"Payout of a provider's earnings to its bank account","required":["ProviderPayout"],"properties":{"ProviderPayout":{"type":"object","description":"Payout of a provider's earnings to its bank account","required":["period_start","period_end","lines","adjustment"],"properties":{"adjustment":{"type":"integer","format":"int64","description":"What the lines don't explain: earlier unpaid amounts, manual payments\nand the balance cap. The lines plus this equal the amount paid."},"lines":{"type":"array","items":{"$ref":"#/components/schemas/ProviderPayoutLine"},"description":"What the lines earned, by resource and service"},"period_end":{"type":"string","description":"The cut-off this payout settles"},"period_start":{"type":"string","description":"Where the statement starts: the last cut-off that didn't carry over"}}}}},{"type":"object","description":"A provider payout put back on the account, because its payment failed or was returned","required":["ProviderPayoutReversal"],"properties":{"ProviderPayoutReversal":{"type":"object","description":"A provider payout put back on the account, because its payment failed or was returned","required":["period_start","period_end"],"properties":{"period_end":{"type":"string","description":"The cut-off the reversed payout settled"},"period_start":{"type":"string","description":"Where the reversed payout's statement started"}}}}},{"type":"object","description":"Promotional transaction, e.g., signup bonus","required":["PromoTransaction"],"properties":{"PromoTransaction":{"type":"object","description":"Promotional transaction, e.g., signup bonus","required":["description"],"properties":{"description":{"type":"string","description":"Description of the promo"}}}}},{"type":"object","description":"Funds set aside for a charge that has not happened yet, listed only\nwhen the request sets `with_holds`. Not a posted transaction:\n`balance` is unchanged, and the entry leaves the list once the\nfunds are charged or released.","required":["Hold"],"properties":{"Hold":{"type":"object","description":"Funds set aside for a charge that has not happened yet, listed only\nwhen the request sets `with_holds`. Not a posted transaction:\n`balance` is unchanged, and the entry leaves the list once the\nfunds are charged or released.","required":["kind"],"properties":{"instance_id":{"type":["string","null"],"description":"The instance the funds are held for"},"instance_name":{"type":["string","null"]},"kind":{"$ref":"#/components/schemas/AccountHoldKind"}}}}}]},"TransactionListRequest":{"type":"object","required":["selector"],"properties":{"from":{"type":["string","null"],"description":"Start of time range (inclusive). Defaults to 30 days ago if omitted."},"selector":{"$ref":"#/components/schemas/AccountSelector"},"to":{"type":["string","null"],"description":"End of time range (inclusive). Defaults to now if omitted."},"with_holds":{"type":"boolean","description":"Also list the account's open holds created in the range, as `Hold`\nentries. They are not posted transactions, so a client that sums\nthe list must leave them out."}}},"TransactionListRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"from":{"type":["string","null"],"description":"Start of time range (inclusive). Defaults to 30 days ago if omitted."},"selector":{"$ref":"#/components/schemas/AccountSelector"},"to":{"type":["string","null"],"description":"End of time range (inclusive). Defaults to now if omitted."},"with_holds":{"type":"boolean","description":"Also list the account's open holds created in the range, as `Hold`\nentries. They are not posted transactions, so a client that sums\nthe list must leave them out."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"TransactionProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["amount","created_at","info"],"properties":{"amount":{"type":"integer","format":"int64","description":"Amount of money in cents, positive for debit and negative for credit"},"created_at":{"type":"string","description":"Date and time of the transaction"},"info":{"$ref":"#/components/schemas/TransactionInfo","description":"Extra information about the transaction"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateApiKeysRequest":{"type":"object","required":["selector"],"properties":{"active":{"type":["boolean","null"],"description":"Enable/disable API key"},"name":{"type":["string","null"],"description":"Change API key name"},"selector":{"$ref":"#/components/schemas/ApiKeySelector","description":"Which API key(s) to update"}}},"UpdateApiKeysRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"active":{"type":["boolean","null"],"description":"Enable/disable API key"},"name":{"type":["string","null"],"description":"Change API key name"},"selector":{"$ref":"#/components/schemas/ApiKeySelector","description":"Which API key(s) to update"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateApiKeysResponse":{"type":"object","required":["status","keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/KeyResult"},"description":"Information about the updated API keys with their operation status"},"status":{"$ref":"#/components/schemas/ResponseStatus","description":"Overall status of the operation"}}},"UpdateApiKeysResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["status","keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/KeyResult"},"description":"Information about the updated API keys with their operation status"},"status":{"$ref":"#/components/schemas/ResponseStatus","description":"Overall status of the operation"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateInstanceTypeRequest":{"type":"object","required":["selector","instance_type"],"properties":{"instance_type":{"$ref":"#/components/schemas/InstanceTypeInfo"},"selector":{"$ref":"#/components/schemas/InstanceTypeSelector"}}},"UpdateInstanceTypeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector","instance_type"],"properties":{"instance_type":{"$ref":"#/components/schemas/InstanceTypeInfo"},"selector":{"$ref":"#/components/schemas/InstanceTypeSelector"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateInstanceVariantRequest":{"type":"object","required":["selector","variant"],"properties":{"selector":{"$ref":"#/components/schemas/InstanceVariantSelector"},"variant":{"$ref":"#/components/schemas/InstanceVariantRawInfo"}}},"UpdateInstanceVariantRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector","variant"],"properties":{"selector":{"$ref":"#/components/schemas/InstanceVariantSelector"},"variant":{"$ref":"#/components/schemas/InstanceVariantRawInfo"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateNetworkRequest":{"type":"object","required":["selector"],"properties":{"egress_proxy_url":{"type":["string","null"],"description":"Omit to keep the current proxy, set a URL, or use null to clear it."},"no_proxy":{"type":["string","null"],"description":"Omit to preserve the current bypass list; use an empty string to clear it."},"selector":{"$ref":"#/components/schemas/UpdateNetworkSelector","description":"Network selector"},"team":{"oneOf":[{"$ref":"#/components/schemas/TeamAssignment","description":"Omit to keep the current team assignment."},{"type":"null"}]}}},"UpdateNetworkRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"egress_proxy_url":{"type":["string","null"],"description":"Omit to keep the current proxy, set a URL, or use null to clear it."},"no_proxy":{"type":["string","null"],"description":"Omit to preserve the current bypass list; use an empty string to clear it."},"selector":{"$ref":"#/components/schemas/UpdateNetworkSelector","description":"Network selector"},"team":{"oneOf":[{"$ref":"#/components/schemas/TeamAssignment","description":"Omit to keep the current team assignment."},{"type":"null"}]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateNetworkResponse":{"type":"object","required":["updated_ids"],"properties":{"updated_ids":{"type":"array","items":{"type":"string"},"description":"IDs of updated networks"}}},"UpdateNetworkResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["updated_ids"],"properties":{"updated_ids":{"type":"array","items":{"type":"string"},"description":"IDs of updated networks"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateNetworkSelector":{"oneOf":[{"type":"object","description":"Select network by datacenter and name","required":["ByDatacenterAndName"],"properties":{"ByDatacenterAndName":{"type":"object","description":"Select network by datacenter and name","required":["datacenter","network"],"properties":{"datacenter":{"type":"string"},"network":{"type":"string"}}}},"example":{"ByDatacenterAndName":{"datacenter":"us-east-nc-nr-1","network":"private-network-1"}}}],"description":"Selector for identifying a network to update"},"UpdateProviderNodeInstanceTypeRequest":{"type":"object","required":["node_id","instance_type_name"],"properties":{"instance_type_name":{"type":"string","description":"Instance type name","example":"generic-gpu.1"},"node_id":{"type":"string","description":"Node ID"}}},"UpdateProviderNodeInstanceTypeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["node_id","instance_type_name"],"properties":{"instance_type_name":{"type":"string","description":"Instance type name","example":"generic-gpu.1"},"node_id":{"type":"string","description":"Node ID"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateQuotaRequest":{"type":"object","description":"Edit a quota's mutable fields. `node` and recipient are immutable —\nreassigning either means revoking and creating a new allocation. Sends\nthe full mutable set (form-replace semantics).","required":["quota_id","name","valid_from","resources"],"properties":{"name":{"type":"string"},"quota_id":{"type":"string"},"resources":{"$ref":"#/components/schemas/QuotaResources"},"valid_from":{"type":"string"},"valid_till":{"type":["string","null"]}}},"UpdateQuotaRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Edit a quota's mutable fields. `node` and recipient are immutable —\nreassigning either means revoking and creating a new allocation. Sends\nthe full mutable set (form-replace semantics).","required":["quota_id","name","valid_from","resources"],"properties":{"name":{"type":"string"},"quota_id":{"type":"string"},"resources":{"$ref":"#/components/schemas/QuotaResources"},"valid_from":{"type":"string"},"valid_till":{"type":["string","null"]}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateQuotaResponse":{"type":"object","required":["quota"],"properties":{"quota":{"$ref":"#/components/schemas/Quota"}}},"UpdateQuotaResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["quota"],"properties":{"quota":{"$ref":"#/components/schemas/Quota"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateReservationRequest":{"type":"object","required":["executor_id","reservation_type_id"],"properties":{"executor_id":{"type":"string","description":"ID of the executor whose active reservation should be extended"},"reservation_type_id":{"type":"string","description":"ID of the reservation type determining how much time to add"},"team_id":{"type":["string","null"],"description":"Optional team ID"}}},"UpdateReservationRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["executor_id","reservation_type_id"],"properties":{"executor_id":{"type":"string","description":"ID of the executor whose active reservation should be extended"},"reservation_type_id":{"type":"string","description":"ID of the reservation type determining how much time to add"},"team_id":{"type":["string","null"],"description":"Optional team ID"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateReservationResponse":{"type":"object","required":["reservation_id"],"properties":{"reservation_id":{"type":"string","description":"ID of the updated active reservation"}}},"UpdateReservationResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["reservation_id"],"properties":{"reservation_id":{"type":"string","description":"ID of the updated active reservation"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateTeamMembershipRequest":{"type":"object","description":"Request to update the role of a team member or pending invite.","required":["selector","role"],"properties":{"role":{"$ref":"#/components/schemas/TeamRole","description":"The new role to assign."},"selector":{"$ref":"#/components/schemas/TeamMemberSelector","description":"The member or invite to update."}}},"UpdateTeamMembershipRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","description":"Request to update the role of a team member or pending invite.","required":["selector","role"],"properties":{"role":{"$ref":"#/components/schemas/TeamRole","description":"The new role to assign."},"selector":{"$ref":"#/components/schemas/TeamMemberSelector","description":"The member or invite to update."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateUsersCreditLimitRequest":{"type":"object","required":["selector"],"properties":{"credit_limit":{"type":["integer","null"],"format":"int64","description":"Credit limit in currency units (cents). Ignored when `unlimited` is true."},"selector":{"$ref":"#/components/schemas/AccountTargetSelector"},"unlimited":{"type":"boolean","description":"Use unlimited credit limit."}}},"UpdateUsersCreditLimitRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector"],"properties":{"credit_limit":{"type":["integer","null"],"format":"int64","description":"Credit limit in currency units (cents). Ignored when `unlimited` is true."},"selector":{"$ref":"#/components/schemas/AccountTargetSelector"},"unlimited":{"type":"boolean","description":"Use unlimited credit limit."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateUsersCreditLimitResponse":{"type":"object","required":["updated_ids"],"properties":{"updated_ids":{"type":"array","items":{"type":"string"}}}},"UpdateUsersCreditLimitResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["updated_ids"],"properties":{"updated_ids":{"type":"array","items":{"type":"string"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateVmRecipeImageRequest":{"type":"object","required":["selector","image_url"],"properties":{"image_url":{"type":"string","description":"New VM image URL for the recipe.","example":"https://storage.googleapis.com/cloudrift-vm-disks/disks/github/ubuntu-noble-server-gpu-580-129-20260809-120000.img"},"selector":{"$ref":"#/components/schemas/RecipeSelector","description":"Ownerless VM recipes to update, selected by name, tag, or group."}}},"UpdateVmRecipeImageRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["selector","image_url"],"properties":{"image_url":{"type":"string","description":"New VM image URL for the recipe.","example":"https://storage.googleapis.com/cloudrift-vm-disks/disks/github/ubuntu-noble-server-gpu-580-129-20260809-120000.img"},"selector":{"$ref":"#/components/schemas/RecipeSelector","description":"Ownerless VM recipes to update, selected by name, tag, or group."}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateVolumeRequest":{"type":"object","required":["volume_id","name"],"properties":{"name":{"type":"string","description":"New volume name","example":"my-renamed-volume"},"team_id":{"type":["string","null"],"description":"Team ID in case of team volumes","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"volume_id":{"type":"string","description":"Volume ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"UpdateVolumeRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["volume_id","name"],"properties":{"name":{"type":"string","description":"New volume name","example":"my-renamed-volume"},"team_id":{"type":["string","null"],"description":"Team ID in case of team volumes","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"volume_id":{"type":"string","description":"Volume ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UpdateVolumeResponse":{"type":"object","required":["volume"],"properties":{"volume":{"$ref":"#/components/schemas/VolumeInfo","description":"Updated volume information"}}},"UpdateVolumeResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["volume"],"properties":{"volume":{"$ref":"#/components/schemas/VolumeInfo","description":"Updated volume information"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UsageRequest":{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","description":"request start date and time"},"to":{"type":"string","description":"request end date and time"}}},"UsageRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["from","to"],"properties":{"from":{"type":"string","description":"request start date and time"},"to":{"type":"string","description":"request end date and time"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UsageSummary":{"type":"object","required":["total_usage","total_promo","total_dispute"],"properties":{"total_dispute":{"type":"integer","format":"int64","description":"total dispute amount in dollars, e.g., cents"},"total_promo":{"type":"integer","format":"int64","description":"total promo amount in dollars, e.g., cents"},"total_usage":{"type":"integer","format":"int64","description":"total usage amount in dollars, e.g., cents"}}},"UsageSummaryProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["total_usage","total_promo","total_dispute"],"properties":{"total_dispute":{"type":"integer","format":"int64","description":"total dispute amount in dollars, e.g., cents"},"total_promo":{"type":"integer","format":"int64","description":"total promo amount in dollars, e.g., cents"},"total_usage":{"type":"integer","format":"int64","description":"total usage amount in dollars, e.g., cents"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UserAccountInfo":{"type":"object","description":"Financial/account information for a user (admin/provider).","required":["balance","credit_limit","is_unlimited","instance_count","total_spent"],"properties":{"balance":{"type":"integer","format":"int64","description":"Account balance in currency units (cents)."},"credit_limit":{"type":"integer","format":"int64","description":"Account credit limit in currency units (cents)."},"instance_count":{"type":"integer","format":"int32","description":"Number of active instances owned by this user.","minimum":0},"is_unlimited":{"type":"boolean","description":"Whether the credit limit is unlimited."},"three_d_secure_verified_at":{"type":["string","null"],"description":"When the account first paid with a card whose holder passed 3D Secure\nauthentication; absent while it never has."},"total_spent":{"type":"integer","format":"int64","description":"Total amount spent in currency units (cents)."}}},"UserBreakdown":{"type":"object","required":["email","name","total_usage_amount","total_usage_time","promo_amount","dispute_amount"],"properties":{"dispute_amount":{"type":"number","format":"double","description":"total dispute amount for the user in dollars"},"email":{"type":"string","description":"user email"},"name":{"type":"string","description":"user name"},"promo_amount":{"type":"number","format":"double","description":"total promo amount for the user in dollars"},"total_usage_amount":{"type":"number","format":"double","description":"total usage amount for the user in dollars"},"total_usage_time":{"type":"object","description":"total usage time for the user as `Duration`","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"nanos":0,"secs":1}}}},"UserBreakdownProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["email","name","total_usage_amount","total_usage_time","promo_amount","dispute_amount"],"properties":{"dispute_amount":{"type":"number","format":"double","description":"total dispute amount for the user in dollars"},"email":{"type":"string","description":"user email"},"name":{"type":"string","description":"user name"},"promo_amount":{"type":"number","format":"double","description":"total promo amount for the user in dollars"},"total_usage_amount":{"type":"number","format":"double","description":"total usage amount for the user in dollars"},"total_usage_time":{"type":"object","description":"total usage time for the user as `Duration`","additionalProperties":{"type":"integer","format":"int32","minimum":0},"propertyNames":{"type":"string"},"example":{"nanos":0,"secs":1}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UserBreakdownRequest":{"type":"object","required":["machine_id","from","to"],"properties":{"from":{"type":"string","description":"request start date and time"},"machine_id":{"type":"string"},"to":{"type":"string","description":"request end date and time"}}},"UserBreakdownRequestProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["machine_id","from","to"],"properties":{"from":{"type":"string","description":"request start date and time"},"machine_id":{"type":"string"},"to":{"type":"string","description":"request end date and time"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UserBreakdownResponse":{"type":"object","required":["breakdown"],"properties":{"breakdown":{"type":"array","items":{"$ref":"#/components/schemas/UserBreakdown"}}}},"UserBreakdownResponseProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["breakdown"],"properties":{"breakdown":{"type":"array","items":{"$ref":"#/components/schemas/UserBreakdown"}}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"UserDeletionAnonymizedCounts":{"type":"object","required":["fraud_activities","team_memberships","team_api_keys_creator_nulled","usage_payout_tx_nulled","service_usage_payout_tx_nulled"],"properties":{"fraud_activities":{"type":"integer","format":"int64"},"service_usage_payout_tx_nulled":{"type":"integer","format":"int64"},"team_api_keys_creator_nulled":{"type":"integer","format":"int64"},"team_memberships":{"type":"integer","format":"int64"},"usage_payout_tx_nulled":{"type":"integer","format":"int64"}}},"UserDeletionHardCounts":{"type":"object","required":["api_keys","ssh_keys","volumes","recipes"],"properties":{"api_keys":{"type":"integer","format":"int64"},"recipes":{"type":"integer","format":"int64"},"ssh_keys":{"type":"integer","format":"int64"},"volumes":{"type":"integer","format":"int64"}}},"UserDeletionReport":{"type":"object","required":["user_id","requester_admin_id","reason","started_at","finished_at","hard_deleted","anonymized","ceph_cleanup_failures"],"properties":{"anonymized":{"$ref":"#/components/schemas/UserDeletionAnonymizedCounts"},"ceph_cleanup_failures":{"type":"array","items":{"type":"string"},"description":"Volumes whose Ceph RBD image delete failed; DB row was still removed."},"finished_at":{"type":"string"},"hard_deleted":{"$ref":"#/components/schemas/UserDeletionHardCounts"},"reason":{"type":"string"},"requester_admin_id":{"type":"string"},"retained_account_id":{"type":["string","null"]},"started_at":{"type":"string"},"user_id":{"type":"string"}}},"UserInfo":{"type":"object","description":"Unified user response returned from /users/list.","required":["id","email","registered_at"],"properties":{"account_info":{"oneOf":[{"$ref":"#/components/schemas/UserAccountInfo","description":"Present when with_account_info=true (admin/provider)."},{"type":"null"}]},"email":{"type":"string","example":"alex@example.com"},"id":{"type":"string","example":"00000000-0000-0000-0000-000000000000"},"last_login_at":{"type":["string","null"]},"name":{"type":["string","null"],"example":"Alex Chen"},"registered_at":{"type":"string"}}},"UserSelector":{"oneOf":[{"type":"object","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"}}},"example":["00000000-0000-0000-0000-000000000000"]},{"type":"object","description":"Filter to users active on the given provider's nodes.","required":["ByProvider"],"properties":{"ByProvider":{"type":"string","description":"Filter to users active on the given provider's nodes."}},"example":{"ByProvider":"TestProvider"}},{"type":"object","description":"Filter to users whose total spend is at least this value (cents).","required":["ByMinSpend"],"properties":{"ByMinSpend":{"type":"integer","format":"int64","description":"Filter to users whose total spend is at least this value (cents)."}},"example":{"ByMinSpend":10000}},{"type":"string","description":"Filter to users that currently have running executors (instances).","enum":["ByActiveExecutors"]}]},"VirtCommand":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/VirtMachineDesc"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Run"]}}}]},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Shutdown"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["vmid_or_name","ok_if_not_exists","erase_grace_period","type"],"properties":{"erase_grace_period":{"type":"string"},"ok_if_not_exists":{"type":"boolean"},"type":{"type":"string","enum":["Destroy"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Start"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Define"]}}},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Suspend"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Resume"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["List"]}}},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Reset"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["images","type"],"properties":{"images":{"type":"array","items":{"$ref":"#/components/schemas/SyncImageSpec"}},"type":{"type":"string","enum":["SyncImages"]}}}],"description":"Command to execute on the node"},"VirtCommandOutput":{"oneOf":[{"type":"object","required":["vmid","name","type"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["Run"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vm_list","type"],"properties":{"complete":{"type":"boolean","description":"Confirms this node includes shutoff domains. Older nodes receive\nthe same List request but omit them, so absence cannot prove deletion."},"type":{"type":"string","enum":["List"]},"vm_list":{"type":"array","items":{"$ref":"#/components/schemas/VirtMachineSummary"}}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Destroy"]},"vmid":{"type":["integer","null"],"format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Reset"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Shutdown"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Start"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Suspend"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Resume"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["existing_images","type"],"properties":{"evicted":{"type":"array","items":{"$ref":"#/components/schemas/EvictedImage"}},"existing_images":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["SyncImages"]}}}],"description":"Result of the command execution"},"VirtCommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["vmid","name","type"],"properties":{"name":{"type":"string"},"type":{"type":"string","enum":["Run"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vm_list","type"],"properties":{"complete":{"type":"boolean","description":"Confirms this node includes shutoff domains. Older nodes receive\nthe same List request but omit them, so absence cannot prove deletion."},"type":{"type":"string","enum":["List"]},"vm_list":{"type":"array","items":{"$ref":"#/components/schemas/VirtMachineSummary"}}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Destroy"]},"vmid":{"type":["integer","null"],"format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Reset"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Shutdown"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Start"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Suspend"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["vmid","type"],"properties":{"type":{"type":"string","enum":["Resume"]},"vmid":{"type":"integer","format":"int32","minimum":0}}},{"type":"object","required":["existing_images","type"],"properties":{"evicted":{"type":"array","items":{"$ref":"#/components/schemas/EvictedImage"}},"existing_images":{"type":"array","items":{"type":"string"}},"type":{"type":"string","enum":["SyncImages"]}}}],"description":"Result of the command execution"},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"VirtCommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/VirtMachineDesc"},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Run"]}}}]},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Shutdown"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["vmid_or_name","ok_if_not_exists","erase_grace_period","type"],"properties":{"erase_grace_period":{"type":"string"},"ok_if_not_exists":{"type":"boolean"},"type":{"type":"string","enum":["Destroy"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Start"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["Define"]}}},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Suspend"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Resume"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["List"]}}},{"type":"object","required":["vmid_or_name","type"],"properties":{"type":{"type":"string","enum":["Reset"]},"vmid_or_name":{"type":"string"}}},{"type":"object","required":["images","type"],"properties":{"images":{"type":"array","items":{"$ref":"#/components/schemas/SyncImageSpec"}},"type":{"type":"string","enum":["SyncImages"]}}}],"description":"Command to execute on the node"},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"VirtDomainConfig":{"type":"object","required":["cpus","gpus","memory_kb","disk_size_gb","network"],"properties":{"cpus":{"$ref":"#/components/schemas/DeviceSelector","description":"Number of cpu cores"},"disk_size_gb":{"type":"integer","format":"int32","description":"Disk size","minimum":0},"gpus":{"$ref":"#/components/schemas/DeviceSelector","description":"Number of gpus"},"memory_kb":{"type":"integer","format":"int64","description":"Memory limit","minimum":0},"mig_config":{"oneOf":[{"$ref":"#/components/schemas/VirtMigConfig"},{"type":"null"}]},"mig_profile":{"type":["string","null"],"description":"MIG profile for fractional GPU allocation (e.g., \"1g.5gb\", \"2g.10gb\")\nIf set, provider creates a MIG instance instead of passing through whole GPUs"},"network":{"$ref":"#/components/schemas/VirtNetworkConfig","description":"Network interface to expose"},"numa_config":{"oneOf":[{"$ref":"#/components/schemas/VmNUMAConfig","description":"NUMA placement config; None falls back to simple vCPU count (no pinning)"},{"type":"null"}]},"storage_dir":{"type":["string","null"],"description":"Directory to store VM data"},"use_1g_hugepages":{"type":"boolean","description":"Server-authoritative decision on whether to back this VM's memory\nwith 1 GiB hugepages.  When true, the host MUST verify a 1 GiB\nhugetlbfs mount exists and emit hugepage XML.  When false, the host\nMUST NOT emit hugepage backing even if its sysfs reports hugepages —\nthe server has determined the host's hugepage budget is unknown\nor zero (most often during rolling upgrades when the DB hasn't\ncaught up to the host's current state).  `#[serde(default)]` keeps\nolder payloads backwards-compatible: a missing field deserializes\nto `false`, which is the safe direction."}}},"VirtDomainState":{"type":"string","enum":["NoState","Running","Blocked","Paused","Shutdown","Shutoff","Crashed","PMSuspended"]},"VirtEvent":{"type":"object","required":["state","vmid"],"properties":{"observed_at":{"type":["string","null"],"description":"When the node observed this state. The server orders events and sync\nsnapshots by it; absent from older nodes."},"state":{"$ref":"#/components/schemas/VirtDomainState","description":"VM state"},"vm_name":{"type":["string","null"],"description":"VM name"},"vmid":{"type":"integer","format":"int32","description":"VM id","minimum":0}}},"VirtMachineDesc":{"type":"object","required":["disk_image_url","domain_config","cloudinit_config","name"],"properties":{"additional_user_disk_path":{"type":["string","null"],"description":"Additional qcow2 disks to attach"},"base_image_caching":{"$ref":"#/components/schemas/BaseImageCaching","description":"How the host manages this VM's base image. The server sets `Shared`\nwhen the requested `image_url` is one of its catalog/recipe images\n(trusted, stable, shared across VMs) and `Ephemeral` for any other,\narbitrary user-supplied image. When `Ephemeral` the host downloads\nthe image into the VM's own per-VM directory so it is removed on VM\ntermination, never entering the shared cache. The agent has no\ncatalog knowledge and just honors this value.\n\n`#[serde(default)]` falls back to the enum default `Shared`, so any\nunflagged/older payload preserves the historical shared-cache\nbehavior; the server sets `Ephemeral` explicitly for non-catalog\nimages."},"cloudinit_config":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"cloudinit config as string"},"disk_image_url":{"type":"string","description":"disk image to use"},"domain_config":{"$ref":"#/components/schemas/VirtDomainConfig","description":"hardware configuration"},"name":{"type":"string","description":"VM name"},"reuse_disk":{"oneOf":[{"$ref":"#/components/schemas/ReuseDisk","description":"When set, boot from a preserved disk instead of creating a fresh overlay\nfrom `disk_image_url`. `#[serde(default)]` keeps older desktops working."},{"type":"null"}]},"volumes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/VirtVolumeMount"},"description":"Ceph RBD volumes to attach to this VM (optional)"}}},"VirtMachineDescProto":{"type":"object","required":["version","data"],"properties":{"data":{"type":"object","required":["disk_image_url","domain_config","cloudinit_config","name"],"properties":{"additional_user_disk_path":{"type":["string","null"],"description":"Additional qcow2 disks to attach"},"base_image_caching":{"$ref":"#/components/schemas/BaseImageCaching","description":"How the host manages this VM's base image. The server sets `Shared`\nwhen the requested `image_url` is one of its catalog/recipe images\n(trusted, stable, shared across VMs) and `Ephemeral` for any other,\narbitrary user-supplied image. When `Ephemeral` the host downloads\nthe image into the VM's own per-VM directory so it is removed on VM\ntermination, never entering the shared cache. The agent has no\ncatalog knowledge and just honors this value.\n\n`#[serde(default)]` falls back to the enum default `Shared`, so any\nunflagged/older payload preserves the historical shared-cache\nbehavior; the server sets `Ephemeral` explicitly for non-catalog\nimages."},"cloudinit_config":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"cloudinit config as string"},"disk_image_url":{"type":"string","description":"disk image to use"},"domain_config":{"$ref":"#/components/schemas/VirtDomainConfig","description":"hardware configuration"},"name":{"type":"string","description":"VM name"},"reuse_disk":{"oneOf":[{"$ref":"#/components/schemas/ReuseDisk","description":"When set, boot from a preserved disk instead of creating a fresh overlay\nfrom `disk_image_url`. `#[serde(default)]` keeps older desktops working."},{"type":"null"}]},"volumes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/VirtVolumeMount"},"description":"Ceph RBD volumes to attach to this VM (optional)"}}},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"VirtMachineSummary":{"type":"object","required":["vmid","name","executor_id","state"],"properties":{"executor_id":{"type":"string"},"name":{"type":"string"},"observed_at":{"type":["string","null"],"description":"When the node observed `state`, taken before reading it. The server\norders it against lifecycle events."},"state":{"$ref":"#/components/schemas/VirtDomainState"},"vmid":{"type":"integer","format":"int32","minimum":0}}},"VirtMigConfig":{"type":"object","required":["use_mig_for_whole_gpu"],"properties":{"default_profile":{"type":["string","null"]},"use_mig_for_whole_gpu":{"type":"boolean","description":"Use MIG for all GPUs in the VM, even if mig_profile is not set.\nIt means that 7/7 MIG profile will be used when profile is not specified."}}},"VirtNetworkConfig":{"oneOf":[{"type":"string","description":"NAT","enum":["Nat"]},{"type":"object","description":"Bridged","required":["Macvtap"],"properties":{"Macvtap":{"type":"object","description":"Bridged","properties":{"gateway":{"type":["string","null"],"description":"Gateway IP address"},"iface":{"type":["string","null"],"description":"Interface name"},"static_ip":{"type":["string","null"],"description":"Static IP address to assign to the interface"},"subnet_mask":{"type":["integer","null"],"format":"int32","description":"Subnet mask as number of leading 1 bits, e.g. 24","minimum":0}}}}}]},"VirtVolumeMount":{"type":"object","description":"Volume mount configuration for VMs\nContains Ceph RBD details needed for libvirt disk attachment\nTODO(Phase 6): Add Ceph cluster connection details (monitors, auth)\nFor now, these will be retrieved from the datacenter's CephCluster config","required":["ceph_pool","ceph_image"],"properties":{"ceph_image":{"type":"string","description":"Ceph RBD image name"},"ceph_pool":{"type":"string","description":"Ceph pool name where the RBD image is stored"}}},"VmImageCompatibility":{"oneOf":[{"type":"string","enum":["Compatible"]},{"type":"object","required":["Incompatible"],"properties":{"Incompatible":{"$ref":"#/components/schemas/VmImageIncompatibility"}}},{"type":"object","required":["Unknown"],"properties":{"Unknown":{"$ref":"#/components/schemas/VmImageUnknownReason"}}}],"description":"The server's verdict for one image on one allocation. `Unknown` is neither of the other two."},"VmImageDeliveryMode":{"type":"string","description":"How a GPU reaches the guest.","enum":["pci_passthrough","vgpu"]},"VmImageGpuStack":{"oneOf":[{"type":"object","required":["vendor"],"properties":{"vendor":{"type":"string","enum":["none"]}}},{"type":"object","required":["driver_kind","kernel_module","driver_version","delivery_modes","vendor"],"properties":{"delivery_modes":{"type":"array","items":{"$ref":"#/components/schemas/VmImageDeliveryMode"}},"driver_kind":{"$ref":"#/components/schemas/NvidiaDriverKind"},"driver_version":{"type":"string","example":"580.95.05"},"kernel_module":{"$ref":"#/components/schemas/NvidiaKernelModule"},"vendor":{"type":"string","enum":["nvidia"]}}},{"type":"object","required":["rocm_version","delivery_modes","vendor"],"properties":{"delivery_modes":{"type":"array","items":{"$ref":"#/components/schemas/VmImageDeliveryMode"}},"rocm_version":{"type":"string","example":"7.2.0"},"vendor":{"type":"string","enum":["amd"]}}}],"description":"The GPU stack preinstalled in a VM image, as the image build observed it. `None` is an\ninspected \"no GPU stack\"; an image whose metadata is absent is unknown instead."},"VmImageIncompatibility":{"type":"string","enum":["Architecture","GpuVendor","DeliveryMode","KernelModule"]},"VmImageManifest":{"type":"object","description":"Schema v1 of the `cloudrift-image` metadata a managed VM image object carries.","required":["image_sha256","architecture","gpu"],"properties":{"architecture":{"type":"string","description":"Guest architecture, `x86_64` or `aarch64`","example":"x86_64"},"gpu":{"$ref":"#/components/schemas/VmImageGpuStack"},"image_sha256":{"type":"string","description":"SHA-256 of the image file, 64 lowercase hex characters"}}},"VmImageMetadata":{"oneOf":[{"type":"object","required":["Manifest"],"properties":{"Manifest":{"$ref":"#/components/schemas/VmImageManifest"}}},{"type":"object","required":["Error"],"properties":{"Error":{"$ref":"#/components/schemas/VmImageMetadataError"}}}]},"VmImageMetadataError":{"oneOf":[{"type":"string","description":"The object carries no `cloudrift-image` metadata","enum":["Missing"]},{"type":"object","description":"Unsupported schema version, malformed JSON, invalid field, or checksum mismatch","required":["Invalid"],"properties":{"Invalid":{"type":"string","description":"Unsupported schema version, malformed JSON, invalid field, or checksum mismatch"}}},{"type":"string","description":"The URL is outside the trusted catalog storage; it is never requested","enum":["Untrusted"]},{"type":"object","description":"The storage answered with an explicit non-success status (403, 404, a redirect)","required":["Http"],"properties":{"Http":{"type":"integer","format":"int32","description":"The storage answered with an explicit non-success status (403, 404, a redirect)","minimum":0}}},{"type":"object","description":"Transport failure, timeout or 5xx, or the server has not asked the storage yet","required":["Unavailable"],"properties":{"Unavailable":{"type":"string","description":"Transport failure, timeout or 5xx, or the server has not asked the storage yet"}}}],"description":"Why an image has no usable manifest. None of these mean \"no GPU stack\": the image is unknown."},"VmImageUnknownReason":{"oneOf":[{"type":"object","description":"No usable manifest for the image","required":["ImageMetadata"],"properties":{"ImageMetadata":{"$ref":"#/components/schemas/VmImageMetadataError","description":"No usable manifest for the image"}}},{"type":"string","description":"An assigned NVIDIA GPU the server does not classify, or a GPU without PCI ids","enum":["Hardware"]},{"type":"string","description":"No validated rule covers this stack yet (vGPU guest drivers, ROCm, other driver branches)","enum":["UnvalidatedRule"]}]},"VmNUMAConfig":{"type":"object","description":"Full NUMA placement configuration for a VM","required":["nodes","emulator_cpu_ids","sockets","cores_per_socket","threads_per_core"],"properties":{"cores_per_socket":{"type":"integer","format":"int32","description":"Number of cores per socket exposed to guest","minimum":0},"emulator_cpu_ids":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"Host CPU IDs reserved for the QEMU emulator thread and host OS overhead (one physical core)"},"gpu_to_cell":{"type":"array","items":{"type":"array","items":false,"prefixItems":[{"type":"integer","format":"int32","minimum":0},{"type":"integer","format":"int32","minimum":0}]},"description":"(passthrough_position, guest_cell_id) for each passthrough GPU whose\nhost NUMA node corresponds to one of the guest cells.  The first u32\nis the GPU's POSITION in the passthrough list (i.e. its index in the\nhost's `vgpus` Vec, which mirrors the order of `gpu_indices` requested\nby the server), not the hardware GPU index.  Position semantics let\nthe XML emitter look the cell up directly from its enumerate loop\nwithout plumbing hardware indices through `VmGpuDeviceConfig`.\n\nLets the host emit each GPU hostdev behind the pxb-pcie bus of the\nmatching guest cell so `nvidia-smi topo -m` and\n`/sys/bus/pci/.../numa_node` inside the guest report real per-GPU\nNUMA affinity.  Empty when the host has no per-GPU NUMA data or when\nno GPUs are passed through.  May be a strict subset of the\npassthrough positions (e.g. one GPU has `numa_node = None`); the\nhost falls back to the legacy flat layout when the mapping is\nincomplete.\n\n`#[serde(default)]` keeps wire compatibility with older desktops\nthat pre-date Plan B (rolling upgrades): they ignore the field on\nreceive, and a new desktop reading from an old server gets an\nempty Vec → falls back to the existing flat hostdev placement."},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/VmNUMANodeConfig"},"description":"Per-node vCPU assignments; sum of cpu_ids lengths == total vCPUs"},"sockets":{"type":"integer","format":"int32","description":"Number of CPU sockets exposed to guest","minimum":0},"threads_per_core":{"type":"integer","format":"int32","description":"Number of logical threads per core exposed to guest","minimum":0}}},"VmNUMANodeConfig":{"type":"object","description":"Per-NUMA-node vCPU and memory assignment for a VM","required":["node_id","cpu_ids","memory_kb"],"properties":{"cpu_ids":{"type":"array","items":{"type":"integer","format":"int32","minimum":0},"description":"Host CPU IDs assigned as vCPUs from this node"},"memory_kb":{"type":"integer","format":"int64","description":"Memory assigned to this guest NUMA node in KiB","minimum":0},"node_id":{"type":"integer","format":"int32","description":"NUMA node identifier on the host","minimum":0}}},"Volume":{"type":"object","required":["ceph_pool","ceph_image","mount_path"],"properties":{"ceph_image":{"type":"string","description":"Ceph RBD image name","example":"user_123e4567-e89b-12d3-a456-426614174000_456e7890-e89b-12d3-a456-426614174000"},"ceph_pool":{"type":"string","description":"Ceph pool name where the RBD image is stored","example":"rbd"},"device_path":{"type":["string","null"],"description":"Device path (e.g., /dev/rbd0) - returned by mount operation, required for unmount","example":"/dev/rbd0"},"mount_path":{"type":"string","description":"Mount path on the host","example":"/mnt/ceph-volumes/vol-123"}}},"VolumeCommand":{"oneOf":[{"type":"object","required":["volume","type"],"properties":{"type":{"type":"string","enum":["MountHostVolume"]},"volume":{"$ref":"#/components/schemas/Volume"}}},{"type":"object","required":["volume","type"],"properties":{"type":{"type":"string","enum":["UnmountHostVolume"]},"volume":{"$ref":"#/components/schemas/Volume"}}}]},"VolumeCommandOutput":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["MountHostVolume"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["UnmountHostVolume"]}}}]},"VolumeCommandOutputProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["MountHostVolume"]}}},{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["UnmountHostVolume"]}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"VolumeCommandProto":{"type":"object","required":["version","data"],"properties":{"data":{"oneOf":[{"type":"object","required":["volume","type"],"properties":{"type":{"type":"string","enum":["MountHostVolume"]},"volume":{"$ref":"#/components/schemas/Volume"}}},{"type":"object","required":["volume","type"],"properties":{"type":{"type":"string","enum":["UnmountHostVolume"]},"volume":{"$ref":"#/components/schemas/Volume"}}}]},"version":{"type":"string","description":"The version of the protocol like 2024-09-22, etc. Specify '~upcoming' to indicate future (unreleased) version or always use latest relesed version.","default":"~upcoming"}}},"VolumeInfo":{"type":"object","required":["id","name","size_gb","disk_usage","status","attached_executor_id","datacenter_name","datacenters","ceph_pool","ceph_image","created_at","updated_at","cost_per_month"],"properties":{"attached_executor_id":{"type":"string","description":"Executor ID if the volume is mounted to one","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"billing_exempt":{"type":"boolean","description":"Whether this volume is exempt from billing (admin-created)"},"ceph_image":{"type":"string","description":"Ceph image name","example":"volume_f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"ceph_pool":{"type":"string","description":"Ceph pool name","example":"rbd"},"cost_per_month":{"type":"integer","format":"int64","description":"Cost per month in currency units (before hourly conversion)","example":"3277"},"created_at":{"type":"string","description":"Creation timestamp","example":"2023-01-01T00:00:00Z"},"datacenter_name":{"type":"string","description":"Datacenter name where the volume is located (first datacenter)","example":"us-east-nc-nr-1"},"datacenters":{"type":"array","items":{"type":"string"},"description":"All datacenters where the volume is accessible","example":["us-east-nc-nr-1","us-east-nc-nr-2"]},"description":{"type":["string","null"],"description":"Optional description","example":"Data storage for ML training"},"disk_usage":{"type":"integer","format":"int64","description":"Volume disk usage in bytes","example":1073741824},"id":{"type":"string","description":"Volume ID","example":"f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"},"mount_path":{"type":["string","null"],"description":"Mount path in the instance","example":"/data"},"name":{"type":"string","description":"Volume name","example":"my-data-volume"},"size_gb":{"type":"integer","format":"int32","description":"Volume size in GB","example":100},"status":{"$ref":"#/components/schemas/VolumeStatus","description":"Volume status"},"updated_at":{"type":"string","description":"Last update timestamp","example":"2023-01-01T00:00:00Z"}}},"VolumeMount":{"type":"object","required":["volume"],"properties":{"mount_path":{"type":["string","null"],"description":"Mount path in the instance","example":"/data"},"volume":{"$ref":"#/components/schemas/VolumeSelector","description":"Volume selector"}}},"VolumeSelector":{"oneOf":[{"type":"object","description":"Select volumes by name","required":["ByName"],"properties":{"ByName":{"type":"array","items":{"type":"string"},"description":"Select volumes by name"}},"example":["my-data-volume"]},{"type":"object","description":"Select volumes by ID","required":["ById"],"properties":{"ById":{"type":"array","items":{"type":"string"},"description":"Select volumes by ID"}},"example":["f7b1d7c4-4b3b-4b3b-8b3b-4b3b4b3b4b3b"]},{"type":"string","description":"Select all volumes","enum":["All"],"example":"All"}]},"VolumeStatus":{"type":"string","enum":["Creating","Available","Attached","Error","Deleting"]},"VolumeTypeAvailability":{"type":"object","required":["name","cost_per_gb_per_month"],"properties":{"cost_per_gb_per_month":{"type":"integer","format":"int64","description":"Cost per GB per month in cents","example":3},"name":{"type":"string","description":"Volume type name","example":"standard"}}}},"securitySchemes":{"api-key":{"type":"apiKey","in":"header","name":"X-API-Key","description":"Provider API key to authenticate provider in the request"},"token":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"Bearer token to authenticate user in the request, obtain via /auth/login"}}},"tags":[{"name":"commands","description":"Command management endpoint"}]}