{"openapi":"3.1.0","info":{"title":"Agents API","version":"0.1.0"},"paths":{"/agents/health":{"get":{"tags":["health"],"summary":"Health Check","operationId":"health_check_agents_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agents/types":{"get":{"tags":["types"],"summary":"List Agent Types","description":"List public agent type presets and the plan-to-type mapping.","operationId":"list_agent_types_agents_types_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agents/keys":{"get":{"tags":["keys"],"summary":"List User Keys","description":"List Orchestra API keys for the authenticated user.","operationId":"list_user_keys_agents_keys_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["keys"],"summary":"Create User Key","description":"Create a new Orchestra API key for the authenticated user.","operationId":"create_user_key_agents_keys_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/keys/{key_ref}":{"get":{"tags":["keys"],"summary":"Get User Key","description":"Get one Orchestra API key for the authenticated user.","operationId":"get_user_key_agents_keys__key_ref__get","parameters":[{"name":"key_ref","in":"path","required":true,"schema":{"type":"string","title":"Key Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["keys"],"summary":"Update User Key","description":"Rename an Orchestra API key.","operationId":"update_user_key_agents_keys__key_ref__patch","parameters":[{"name":"key_ref","in":"path","required":true,"schema":{"type":"string","title":"Key Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["keys"],"summary":"Disable User Key","description":"Disable an Orchestra API key.","operationId":"disable_user_key_agents_keys__key_ref__delete","parameters":[{"name":"key_ref","in":"path","required":true,"schema":{"type":"string","title":"Key Ref"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/plans":{"get":{"tags":["plans"],"summary":"List Plans","description":"List all available plans (public).","operationId":"list_plans_agents_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agents/plans/current":{"get":{"tags":["plans"],"summary":"Get Current Plan","description":"Get the authenticated user's current plan.","operationId":"get_current_plan_agents_plans_current_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/entitlements":{"get":{"tags":["entitlements"],"summary":"Get Entitlements Summary","operationId":"get_entitlements_summary_agents_entitlements_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/entitlements/summary":{"get":{"tags":["entitlements"],"summary":"Get Entitlements Summary Alias","operationId":"get_entitlements_summary_alias_agents_entitlements_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/entitlements/instances":{"get":{"tags":["entitlements"],"summary":"List Entitlement Instances","operationId":"list_entitlement_instances_agents_entitlements_instances_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/subscriptions":{"get":{"tags":["subscriptions"],"summary":"List Subscriptions","description":"List the authenticated user's subscriptions, newest/most-relevant first.","operationId":"list_subscriptions_agents_subscriptions_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/subscriptions/summary":{"get":{"tags":["subscriptions"],"summary":"Get Subscription Summary","operationId":"get_subscription_summary_agents_subscriptions_summary_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/subscriptions/{subscription_id}/cancel":{"post":{"tags":["subscriptions"],"summary":"Cancel Subscription By Id","description":"Cancel a specific Stripe subscription at period end for the authenticated user.","operationId":"cancel_subscription_by_id_agents_subscriptions__subscription_id__cancel_post","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/subscriptions/{subscription_id}/update":{"post":{"tags":["subscriptions"],"summary":"Update Subscription By Id","operationId":"update_subscription_by_id_agents_subscriptions__subscription_id__update_post","parameters":[{"name":"subscription_id","in":"path","required":true,"schema":{"type":"string","title":"Subscription Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateSubscriptionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/billing/info":{"get":{"tags":["billing","billing"],"summary":"Get Billing Info","operationId":"get_billing_info_agents_billing_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agents/billing/profile":{"get":{"tags":["billing","billing"],"summary":"Get Billing Profile","operationId":"get_billing_profile_agents_billing_profile_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["billing","billing"],"summary":"Update Billing Profile","operationId":"update_billing_profile_agents_billing_profile_put","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingProfileUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/billing/payments":{"get":{"tags":["billing","billing"],"summary":"List User Payments","operationId":"list_user_payments_agents_billing_payments_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/billing/balance/{plan_id}":{"post":{"tags":["billing","billing"],"summary":"Purchase Entitlement From Balance","operationId":"purchase_entitlement_from_balance_agents_billing_balance__plan_id__post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BalanceEntitlementPurchaseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/billing/grants/redeem":{"post":{"tags":["billing","billing"],"summary":"Redeem Grant Code","operationId":"redeem_grant_code_agents_billing_grants_redeem_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemGrantRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/billing/payments/{payment_id}":{"get":{"tags":["billing","billing"],"summary":"Get User Payment","operationId":"get_user_payment_agents_billing_payments__payment_id__get","parameters":[{"name":"payment_id","in":"path","required":true,"schema":{"type":"string","title":"Payment Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/x402/{plan_id}":{"post":{"tags":["billing","billing","x402"],"summary":"Subscribe Via X402","description":"Activate a plan subscription paid via x402 USDC.\n\nJWT is optional. If present, subscription records are created for the user.\nIf not, a standalone API key is returned with a 30-day lifetime.","operationId":"subscribe_via_x402_agents_x402__plan_id__post","parameters":[{"name":"plan_id","in":"path","required":true,"schema":{"type":"string","title":"Plan Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/X402SubscribeRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/x402/checkout":{"post":{"tags":["billing","billing","x402"],"summary":"Subscribe Bundle Via X402","operationId":"subscribe_bundle_via_x402_agents_x402_checkout_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/X402SubscribeRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/budget":{"get":{"tags":["deployments"],"summary":"Get Resource Budget","description":"Get the user's current slot inventory and pooled inference contribution.","operationId":"get_resource_budget_agents_deployments_budget_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments":{"post":{"tags":["deployments"],"summary":"Create Agent","description":"Create a new agent. Optionally start it immediately (default: true).\n\nResource budget is only checked if start=true. Stopped agents don't\nconsume resources.","operationId":"create_agent_agents_deployments_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["deployments"],"summary":"List Agents","description":"List all agents owned by the authenticated user.","operationId":"list_agents_agents_deployments_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/start":{"post":{"tags":["deployments"],"summary":"Start Agent","description":"Start a stopped agent. Checks resource budget before launching.","operationId":"start_agent_agents_deployments__agent_id__start_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartAgentRequest","default":{"config":{},"env":{},"routes":{},"command":[],"entrypoint":[],"registry_auth":{},"dry_run":false}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/stop":{"post":{"tags":["deployments"],"summary":"Stop Agent","description":"Stop an agent. Frees its resources from the budget.","operationId":"stop_agent_agents_deployments__agent_id__stop_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}":{"get":{"tags":["deployments"],"summary":"Get Agent","description":"Get one agent by id.","operationId":"get_agent_agents_deployments__agent_id__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["deployments"],"summary":"Update Agent","description":"Update mutable fields for an agent.","operationId":"update_agent_agents_deployments__agent_id__patch","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["deployments"],"summary":"Delete Agent","description":"Delete an agent (Lagoon DELETE + backend soft-delete).","operationId":"delete_agent_agents_deployments__agent_id__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/keys":{"post":{"tags":["deployments"],"summary":"Create Scoped Agent Key","description":"Mint a new Orchestra API key scoped to one exact agent.","operationId":"create_scoped_agent_key_agents_deployments__agent_id__keys_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateScopedAgentKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/metrics":{"get":{"tags":["deployments"],"summary":"Get Agent Metrics","description":"Get live CPU/memory metrics for a running agent.","operationId":"get_agent_metrics_agents_deployments__agent_id__metrics_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/exec":{"post":{"tags":["deployments"],"summary":"Exec Agent Command","description":"Execute a one-shot command on an agent's reef pod.","operationId":"exec_agent_command_agents_deployments__agent_id__exec_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecAgentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentExecResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/token":{"get":{"tags":["deployments"],"summary":"Refresh Agent Token","description":"Request a fresh pod token from Lagoon.","operationId":"refresh_agent_token_agents_deployments__agent_id__token_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/logs/token":{"post":{"tags":["deployments"],"summary":"Create Agent Logs Token","description":"Mint a short-lived WS token for agent log streaming.","operationId":"create_agent_logs_token_agents_deployments__agent_id__logs_token_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentLogsTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/shell/token":{"post":{"tags":["deployments"],"summary":"Create Agent Shell Token","description":"Mint a short-lived WS token for interactive shell streaming.","operationId":"create_agent_shell_token_agents_deployments__agent_id__shell_token_post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AgentShellTokenRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentShellTokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/env":{"get":{"tags":["deployments"],"summary":"Get Agent Env","description":"Fetch the runtime environment for a running agent (from K8s secret).","operationId":"get_agent_env_agents_deployments__agent_id__env_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/logs":{"get":{"tags":["deployment-logs"],"summary":"Get Agent Logs","operationId":"get_agent_logs_agents_deployments__agent_id__logs_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/me":{"get":{"tags":["capabilities"],"summary":"Agents Me","operationId":"agents_me_agents_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentsMeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/voice/tts":{"post":{"tags":["capabilities"],"summary":"Agents Voice Tts","operationId":"agents_voice_tts_agents_voice_tts_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/voice/clone":{"post":{"tags":["capabilities"],"summary":"Agents Voice Clone","operationId":"agents_voice_clone_agents_voice_clone_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/voice/design":{"post":{"tags":["capabilities"],"summary":"Agents Voice Design","operationId":"agents_voice_design_agents_voice_design_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/text-to-image":{"post":{"tags":["capabilities"],"summary":"Agents Flow Text To Image","operationId":"agents_flow_text_to_image_agents_flow_text_to_image_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextPromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/text-to-image-hidream":{"post":{"tags":["capabilities"],"summary":"Agents Flow Text To Image Hidream","operationId":"agents_flow_text_to_image_hidream_agents_flow_text_to_image_hidream_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextPromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/text-to-video":{"post":{"tags":["capabilities"],"summary":"Agents Flow Text To Video","operationId":"agents_flow_text_to_video_agents_flow_text_to_video_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextPromptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/image-to-video":{"post":{"tags":["capabilities"],"summary":"Agents Flow Image To Video","operationId":"agents_flow_image_to_video_agents_flow_image_to_video_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageToVideoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/speaking-video":{"post":{"tags":["capabilities"],"summary":"Agents Flow Speaking Video","operationId":"agents_flow_speaking_video_agents_flow_speaking_video_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SpeakingVideoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/image-to-image":{"post":{"tags":["capabilities"],"summary":"Agents Flow Image To Image","operationId":"agents_flow_image_to_image_agents_flow_image_to_image_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageToImageRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/first-last-frame-video":{"post":{"tags":["capabilities"],"summary":"Agents Flow First Last Frame Video","operationId":"agents_flow_first_last_frame_video_agents_flow_first_last_frame_video_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FirstLastFrameVideoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/renders/{render_id}":{"get":{"tags":["capabilities"],"summary":"Agents Flow Get Render","operationId":"agents_flow_get_render_agents_flow_renders__render_id__get","parameters":[{"name":"render_id","in":"path","required":true,"schema":{"type":"string","title":"Render Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["capabilities"],"summary":"Agents Flow Cancel Render","operationId":"agents_flow_cancel_render_agents_flow_renders__render_id__delete","parameters":[{"name":"render_id","in":"path","required":true,"schema":{"type":"string","title":"Render Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/flow/renders/{render_id}/status":{"get":{"tags":["capabilities"],"summary":"Agents Flow Get Render Status","operationId":"agents_flow_get_render_status_agents_flow_renders__render_id__status_get","parameters":[{"name":"render_id","in":"path","required":true,"schema":{"type":"string","title":"Render Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/files/":{"get":{"tags":["files"],"summary":"List Root Files","operationId":"list_root_files_agents_deployments__agent_id__files__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/files":{"get":{"tags":["files"],"summary":"List Root Files","operationId":"list_root_files_agents_deployments__agent_id__files_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/files/archive":{"get":{"tags":["files"],"summary":"Archive Files","operationId":"archive_files_agents_deployments__agent_id__files_archive_get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"path","in":"query","required":false,"schema":{"type":"string","default":"","title":"Path"}},{"name":"recursive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Recursive"}},{"name":"timeout","in":"query","required":false,"schema":{"type":"integer","maximum":7200,"minimum":1,"default":1800,"title":"Timeout"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","pattern":"^pod$","default":"pod","title":"Source"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/deployments/{agent_id}/files/{path}":{"get":{"tags":["files"],"summary":"Get File Or Directory","operationId":"get_file_or_directory_agents_deployments__agent_id__files__path__get","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","pattern":"^(auto|s3|pod)$","default":"auto","title":"Source"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["files"],"summary":"Put File","operationId":"put_file_agents_deployments__agent_id__files__path__post","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}},{"name":"destination","in":"query","required":false,"schema":{"type":"string","pattern":"^(auto|pod|s3)$","default":"auto","title":"Destination"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["files"],"summary":"Delete File Or Directory","operationId":"delete_file_or_directory_agents_deployments__agent_id__files__path__delete","parameters":[{"name":"agent_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Agent Id"}},{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}},{"name":"recursive","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Recursive"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/clusters/register":{"post":{"tags":["clusters"],"summary":"Register Cluster","operationId":"register_cluster_agents_clusters_register_post","parameters":[{"name":"X-BACKEND-API-KEY","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Backend-Api-Key"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterRegisterResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/brave/res/v1/web/search":{"get":{"tags":["web-search"],"summary":"Brave Web Search","operationId":"brave_web_search_agents_brave_res_v1_web_search_get","parameters":[{"name":"X-Subscription-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Subscription-Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/brave/res/v1/llm/context":{"get":{"tags":["web-search"],"summary":"Brave Llm Context","operationId":"brave_llm_context_agents_brave_res_v1_llm_context_get","parameters":[{"name":"X-Subscription-Token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Subscription-Token"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/usage":{"get":{"tags":["usage"],"summary":"Get Usage Summary","description":"High-level usage summary for dashboard cards.","operationId":"get_usage_summary_agents_usage_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/usage/history":{"get":{"tags":["usage"],"summary":"Get Usage History","description":"Daily token usage breakdown for charts.","operationId":"get_usage_history_agents_usage_history_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":7,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/usage/keys":{"get":{"tags":["usage"],"summary":"Get Per Key Usage","description":"Per-key token usage breakdown.","operationId":"get_per_key_usage_agents_usage_keys_get","parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":30,"minimum":1,"default":7,"title":"Days"}},{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/models":{"get":{"tags":["models"],"summary":"List Models","description":"List available models with capabilities and context lengths.","operationId":"list_models_agents_models_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"type":"string","title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/agents/status.json":{"get":{"tags":["status"],"summary":"Public Status Json","operationId":"public_status_json_agents_status_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agents/status":{"get":{"tags":["status"],"summary":"Public Status","operationId":"public_status_agents_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/status.json":{"get":{"tags":["status"],"summary":"Public Status Json","operationId":"public_status_json_status_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/status":{"get":{"tags":["status"],"summary":"Public Status","operationId":"public_status_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/agents/.well-known/x402":{"get":{"summary":"Prefixed Wellknown X402","description":"x402 discovery endpoint — auto-generated from plans registry.","operationId":"prefixed_wellknown_x402_agents__well_known_x402_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AgentExecResponse":{"properties":{"exit_code":{"type":"integer","title":"Exit Code"},"stdout":{"type":"string","title":"Stdout"},"stderr":{"type":"string","title":"Stderr"},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"command":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Command"},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout"}},"type":"object","required":["exit_code","stdout","stderr"],"title":"AgentExecResponse"},"AgentLogsTokenResponse":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"jwt":{"type":"string","title":"Jwt"},"expires_at":{"type":"string","title":"Expires At"},"ws_url":{"type":"string","title":"Ws Url"}},"type":"object","required":["agent_id","jwt","expires_at","ws_url"],"title":"AgentLogsTokenResponse"},"AgentMeta":{"properties":{"ui":{"anyOf":[{"$ref":"#/components/schemas/AgentUiMeta"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"AgentMeta"},"AgentShellTokenRequest":{"properties":{"shell":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shell","description":"Preferred shell path for the interactive session"},"dry_run":{"type":"boolean","title":"Dry Run","description":"Validate shell websocket token generation without requiring a running pod","default":false}},"type":"object","title":"AgentShellTokenRequest"},"AgentShellTokenResponse":{"properties":{"agent_id":{"type":"string","title":"Agent Id"},"jwt":{"type":"string","title":"Jwt"},"expires_at":{"type":"string","title":"Expires At"},"ws_url":{"type":"string","title":"Ws Url"},"dry_run":{"type":"boolean","title":"Dry Run","default":false},"shell":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shell"}},"type":"object","required":["agent_id","jwt","expires_at","ws_url"],"title":"AgentShellTokenResponse"},"AgentUiAvatarMeta":{"properties":{"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"icon_index":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Icon Index"}},"additionalProperties":false,"type":"object","title":"AgentUiAvatarMeta"},"AgentUiMeta":{"properties":{"avatar":{"anyOf":[{"$ref":"#/components/schemas/AgentUiAvatarMeta"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"AgentUiMeta"},"AgentsMeResponse":{"properties":{"user_id":{"type":"string","title":"User Id"},"orchestra_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Orchestra User Id"},"team_id":{"type":"string","title":"Team Id"},"plan_id":{"type":"string","title":"Plan Id"},"auth_type":{"type":"string","title":"Auth Type"},"capabilities":{"items":{"type":"string"},"type":"array","title":"Capabilities"},"auth_capabilities":{"items":{"type":"string"},"type":"array","title":"Auth Capabilities"},"has_active_subscription":{"type":"boolean","title":"Has Active Subscription"},"key_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Id"},"key_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Key Name"}},"type":"object","required":["user_id","team_id","plan_id","auth_type","capabilities","auth_capabilities","has_active_subscription"],"title":"AgentsMeResponse"},"BalanceEntitlementPurchaseRequest":{"properties":{"duration":{"type":"integer","exclusiveMinimum":0.0,"title":"Duration","description":"Requested entitlement duration in seconds"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags"},"extend_existing":{"type":"boolean","title":"Extend Existing","default":false}},"type":"object","required":["duration"],"title":"BalanceEntitlementPurchaseRequest"},"BillingProfileUpdate":{"properties":{"billing_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Billing Name"},"billing_company":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Billing Company"},"billing_tax_id":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Billing Tax Id"},"billing_line1":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Billing Line1"},"billing_line2":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Billing Line2"},"billing_city":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Billing City"},"billing_state":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Billing State"},"billing_postal_code":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Billing Postal Code"},"billing_country":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Billing Country"}},"type":"object","title":"BillingProfileUpdate"},"ClusterRegisterRequest":{"properties":{"name":{"type":"string","title":"Name"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"cpu":{"type":"integer","title":"Cpu","default":0},"ram":{"type":"integer","title":"Ram","default":0},"lagoon_host":{"type":"string","title":"Lagoon Host","default":""},"ips":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Ips"},"lagoon_stack":{"type":"string","title":"Lagoon Stack","default":""}},"type":"object","required":["name","ips"],"title":"ClusterRegisterRequest"},"ClusterRegisterResponse":{"properties":{"cluster_id":{"type":"string","title":"Cluster Id"},"cluster_token":{"type":"string","title":"Cluster Token"},"ws_connect_url":{"type":"string","title":"Ws Connect Url"},"name":{"type":"string","title":"Name"},"hostname":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hostname"},"ip":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip"},"ips":{"items":{"type":"string"},"type":"array","title":"Ips"}},"type":"object","required":["cluster_id","cluster_token","ws_connect_url","name"],"title":"ClusterRegisterResponse"},"CreateAgentRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Optional friendly name; backend will generate one when omitted"},"size":{"type":"string","title":"Size","description":"Preset size: small, medium, or large","default":"medium"},"config":{"additionalProperties":true,"type":"object","title":"Config"},"meta":{"$ref":"#/components/schemas/AgentMeta"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env","description":"Environment variables injected into the pod"},"routes":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Routes"},"command":{"items":{"type":"string"},"type":"array","title":"Command"},"entrypoint":{"items":{"type":"string"},"type":"array","title":"Entrypoint"},"sync_root":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Root"},"sync_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Enabled"},"sync_uid":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sync Uid"},"sync_gid":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sync Gid"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"registry_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Url"},"registry_auth":{"additionalProperties":true,"type":"object","title":"Registry Auth"},"start":{"type":"boolean","title":"Start","description":"Start the agent immediately after creation","default":true},"dry_run":{"type":"boolean","title":"Dry Run","description":"Validate launch configuration without creating the agent or pod","default":false}},"additionalProperties":false,"type":"object","title":"CreateAgentRequest"},"CreateKeyRequest":{"properties":{"name":{"type":"string","title":"Name"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["name"],"title":"CreateKeyRequest"},"CreateScopedAgentKeyRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Optional display name for the scoped child key"}},"type":"object","title":"CreateScopedAgentKeyRequest"},"ExecAgentRequest":{"properties":{"command":{"type":"string","title":"Command","description":"Command to execute in the agent container"},"timeout":{"type":"integer","title":"Timeout","description":"Execution timeout in seconds","default":30},"dry_run":{"type":"boolean","title":"Dry Run","description":"Validate the exec request without requiring a running pod","default":false}},"type":"object","required":["command"],"title":"ExecAgentRequest"},"FirstLastFrameVideoRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"negative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative"},"start_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Start Image Url"},"end_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"End Image Url"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"notify_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notify Url"}},"type":"object","required":["prompt"],"title":"FirstLastFrameVideoRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ImageToImageRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"negative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative"},"image_urls":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Image Urls"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"notify_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notify Url"}},"type":"object","required":["prompt"],"title":"ImageToImageRequest"},"ImageToVideoRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"negative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"notify_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notify Url"}},"type":"object","required":["prompt"],"title":"ImageToVideoRequest"},"RedeemGrantRequest":{"properties":{"code":{"type":"string","maxLength":255,"minLength":1,"title":"Code"},"extend_existing":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Extend Existing"}},"type":"object","required":["code"],"title":"RedeemGrantRequest"},"SpeakingVideoRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"negative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"},"audio_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audio Url"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"},"length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Length"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"notify_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notify Url"}},"type":"object","required":["prompt"],"title":"SpeakingVideoRequest"},"StartAgentRequest":{"properties":{"config":{"additionalProperties":true,"type":"object","title":"Config"},"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env","description":"Environment variables injected into the pod"},"routes":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Routes"},"command":{"items":{"type":"string"},"type":"array","title":"Command"},"entrypoint":{"items":{"type":"string"},"type":"array","title":"Entrypoint"},"sync_root":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sync Root"},"sync_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Enabled"},"sync_uid":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sync Uid"},"sync_gid":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sync Gid"},"image":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image"},"registry_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Registry Url"},"registry_auth":{"additionalProperties":true,"type":"object","title":"Registry Auth"},"dry_run":{"type":"boolean","title":"Dry Run","description":"Validate launch configuration without starting the agent","default":false}},"additionalProperties":false,"type":"object","title":"StartAgentRequest"},"TextPromptRequest":{"properties":{"prompt":{"type":"string","title":"Prompt"},"negative":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Negative"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Width"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Height"},"notify_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notify Url"}},"type":"object","required":["prompt"],"title":"TextPromptRequest"},"UpdateAgentRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Name","description":"New unique agent name"},"size":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Size","description":"Preset size: small, medium, or large"},"launch_config":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Launch Config","description":"Launch settings to use the next time the agent starts"},"refresh_from_lagoon":{"type":"boolean","title":"Refresh From Lagoon","default":false},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"additionalProperties":false,"type":"object","title":"UpdateAgentRequest"},"UpdateKeyRequest":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"type":"object","title":"UpdateKeyRequest"},"UpdateSubscriptionRequest":{"properties":{"bundle":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Bundle"}},"type":"object","title":"UpdateSubscriptionRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"X402SubscribeRequest":{"properties":{"quantity":{"type":"integer","title":"Quantity","default":1},"bundle":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Bundle"}},"type":"object","title":"X402SubscribeRequest"}}}}