{
  "openapi": "3.1.0",
  "info": {
    "title": "DCDN Coordinator",
    "version": "1.1.0"
  },
  "paths": {
    "/api/v1/auth/register": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Register",
        "operationId": "register_api_v1_auth_register_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/login": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Login",
        "operationId": "login_api_v1_auth_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/google": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Google Auth",
        "description": "Verify Google ID token and login/register user.",
        "operationId": "google_auth_api_v1_auth_google_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GoogleAuthReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/change-email": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Change Email",
        "description": "Change email \u2014 requires active 2FA (TOTP or SMS).",
        "operationId": "change_email_api_v1_auth_change_email_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangeEmailReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/change-password": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Change Password",
        "description": "Change password \u2014 requires active 2FA for security.",
        "operationId": "change_password_api_v1_auth_change_password_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/totp/setup": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Totp Setup",
        "description": "Generate TOTP secret + QR code for authenticator setup.",
        "operationId": "totp_setup_api_v1_auth_totp_setup_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/totp/verify": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Totp Verify",
        "description": "Verify TOTP code and enable 2FA.",
        "operationId": "totp_verify_api_v1_auth_totp_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TotpVerifyReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/totp/disable": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Totp Disable",
        "description": "Disable TOTP \u2014 requires current code.",
        "operationId": "totp_disable_api_v1_auth_totp_disable_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TotpVerifyReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/sms/setup": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Sms Setup",
        "description": "Start SMS 2FA setup \u2014 send verification code to phone.",
        "operationId": "sms_setup_api_v1_auth_sms_setup_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsSetupReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/sms/verify": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Sms Verify",
        "description": "Verify SMS code and enable SMS 2FA.",
        "operationId": "sms_verify_api_v1_auth_sms_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsVerifyReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/sms/disable": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Sms Disable",
        "description": "Disable SMS 2FA \u2014 requires current SMS code.",
        "operationId": "sms_disable_api_v1_auth_sms_disable_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SmsVerifyReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/sms/resend": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Sms Resend",
        "description": "Resend SMS verification code.",
        "operationId": "sms_resend_api_v1_auth_sms_resend_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/me": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Me",
        "operationId": "me_api_v1_auth_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/verify-email": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Verify Email",
        "description": "Verify email address via token.",
        "operationId": "verify_email_api_v1_auth_verify_email_get",
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/forgot-password": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Forgot Password",
        "description": "Send password reset email.",
        "operationId": "forgot_password_api_v1_auth_forgot_password_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/reset-password": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Reset Password",
        "description": "Reset password with token. Requires 2FA if enabled.",
        "operationId": "reset_password_api_v1_auth_reset_password_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordReq2"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/cancel-subscription": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Cancel Subscription",
        "description": "Cancel Stripe subscription and downgrade to free.",
        "operationId": "cancel_subscription_api_v1_auth_cancel_subscription_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/delete-account": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Delete Account",
        "description": "Permanently delete account and all data. Requires password confirmation.",
        "operationId": "delete_account_api_v1_auth_delete_account_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteAccountReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/export-data": {
      "get": {
        "tags": [
          "auth"
        ],
        "summary": "Export Data",
        "description": "Export all user data (GDPR compliance).",
        "operationId": "export_data_api_v1_auth_export_data_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/affiliate/click/{code}": {
      "get": {
        "tags": [
          "affiliate"
        ],
        "summary": "Track Click",
        "description": "Track a referral link click and redirect to signup.",
        "operationId": "track_click_api_v1_affiliate_click__code__get",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Code"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/affiliate/join": {
      "post": {
        "tags": [
          "affiliate"
        ],
        "summary": "Join Affiliate",
        "description": "Become an affiliate \u2014 get a referral code.",
        "operationId": "join_affiliate_api_v1_affiliate_join_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/affiliate/dashboard": {
      "get": {
        "tags": [
          "affiliate"
        ],
        "summary": "Affiliate Dashboard",
        "description": "Get affiliate stats \u2014 referrals, earnings, payouts, analytics.",
        "operationId": "affiliate_dashboard_api_v1_affiliate_dashboard_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "commission_limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "default": 50,
              "title": "Commission Limit"
            }
          },
          {
            "name": "commission_offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Commission Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/affiliate/request-payout": {
      "post": {
        "tags": [
          "affiliate"
        ],
        "summary": "Request Payout",
        "description": "Request a payout of earned commissions.",
        "operationId": "request_payout_api_v1_affiliate_request_payout_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/affiliate/admin/settings": {
      "get": {
        "tags": [
          "affiliate"
        ],
        "summary": "Admin Get Settings",
        "operationId": "admin_get_settings_api_v1_affiliate_admin_settings_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "affiliate"
        ],
        "summary": "Admin Update Settings",
        "operationId": "admin_update_settings_api_v1_affiliate_admin_settings_patch",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSettingsReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/affiliate/admin/list": {
      "get": {
        "tags": [
          "affiliate"
        ],
        "summary": "Admin List Affiliates",
        "operationId": "admin_list_affiliates_api_v1_affiliate_admin_list_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/affiliate/admin/{affiliate_id}/commission": {
      "patch": {
        "tags": [
          "affiliate"
        ],
        "summary": "Admin Set Commission",
        "operationId": "admin_set_commission_api_v1_affiliate_admin__affiliate_id__commission_patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "affiliate_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Affiliate Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetCommissionReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/affiliate/admin/{affiliate_id}/status": {
      "patch": {
        "tags": [
          "affiliate"
        ],
        "summary": "Admin Set Status",
        "operationId": "admin_set_status_api_v1_affiliate_admin__affiliate_id__status_patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "affiliate_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Affiliate Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetStatusReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/affiliate/admin/payouts": {
      "get": {
        "tags": [
          "affiliate"
        ],
        "summary": "Admin List Payouts",
        "operationId": "admin_list_payouts_api_v1_affiliate_admin_payouts_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/affiliate/admin/payouts/{payout_id}": {
      "patch": {
        "tags": [
          "affiliate"
        ],
        "summary": "Admin Process Payout",
        "operationId": "admin_process_payout_api_v1_affiliate_admin_payouts__payout_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "payout_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Payout Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProcessPayoutReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/migrate/cf/zones": {
      "post": {
        "tags": [
          "migrate"
        ],
        "summary": "List Cf Zones",
        "description": "List all zones (domains) from the CDN provider account.",
        "operationId": "list_cf_zones_api_v1_migrate_cf_zones_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CfCredentials"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/migrate/cf/preview": {
      "post": {
        "tags": [
          "migrate"
        ],
        "summary": "Preview Migration",
        "description": "Preview what will be imported from a provider zone.",
        "operationId": "preview_migration_api_v1_migrate_cf_preview_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MigrateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/migrate/cf/import": {
      "post": {
        "tags": [
          "migrate"
        ],
        "summary": "Execute Migration",
        "description": "Import a provider zone into DCDN Cloud.",
        "operationId": "execute_migration_api_v1_migrate_cf_import_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MigrateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/censorship/features": {
      "get": {
        "tags": [
          "censorship-resistance"
        ],
        "summary": "Get Features",
        "description": "Public endpoint \u2014 describe censorship resistance features.",
        "operationId": "get_features_api_v1_censorship_features_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/censorship/enable": {
      "post": {
        "tags": [
          "censorship-resistance"
        ],
        "summary": "Enable Censorship Resistance",
        "description": "Enable censorship resistance features for a domain.",
        "operationId": "enable_censorship_resistance_api_v1_censorship_enable_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EnableCRReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/censorship/status/{domain_name}": {
      "get": {
        "tags": [
          "censorship-resistance"
        ],
        "summary": "Get Cr Status",
        "description": "Check censorship resistance status for a domain.",
        "operationId": "get_cr_status_api_v1_censorship_status__domain_name__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/geo-ab/tests": {
      "get": {
        "tags": [
          "geo-ab"
        ],
        "summary": "List Tests",
        "description": "List all geo A/B tests.",
        "operationId": "list_tests_api_v1_geo_ab_tests_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "geo-ab"
        ],
        "summary": "Create Test",
        "description": "Create a new geo A/B test.",
        "operationId": "create_test_api_v1_geo_ab_tests_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTestReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/geo-ab/tests/{test_id}": {
      "get": {
        "tags": [
          "geo-ab"
        ],
        "summary": "Get Test",
        "operationId": "get_test_api_v1_geo_ab_tests__test_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "test_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Test Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "geo-ab"
        ],
        "summary": "Delete Test",
        "operationId": "delete_test_api_v1_geo_ab_tests__test_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "test_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Test Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/geo-ab/tests/{test_id}/rules": {
      "post": {
        "tags": [
          "geo-ab"
        ],
        "summary": "Add Rule",
        "operationId": "add_rule_api_v1_geo_ab_tests__test_id__rules_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "test_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Test Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AddRuleReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/geo-ab/tests/{test_id}/toggle": {
      "patch": {
        "tags": [
          "geo-ab"
        ],
        "summary": "Toggle Test",
        "operationId": "toggle_test_api_v1_geo_ab_tests__test_id__toggle_patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "test_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Test Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ddos/overview": {
      "get": {
        "tags": [
          "ddos"
        ],
        "summary": "Ddos Overview",
        "description": "Get DDoS protection overview \u2014 current status, recent attacks, mitigation stats.",
        "operationId": "ddos_overview_api_v1_ddos_overview_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/ddos/attacks": {
      "get": {
        "tags": [
          "ddos"
        ],
        "summary": "List Attacks",
        "description": "List DDoS attacks/events.",
        "operationId": "list_attacks_api_v1_ddos_attacks_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "days",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 90,
              "minimum": 1,
              "default": 7,
              "title": "Days"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ddos/live": {
      "get": {
        "tags": [
          "ddos"
        ],
        "summary": "Live Stats",
        "description": "Get live traffic stats (simulated \u2014 in production from node telemetry).",
        "operationId": "live_stats_api_v1_ddos_live_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/ddos/under-attack": {
      "post": {
        "tags": [
          "ddos"
        ],
        "summary": "Toggle Under Attack",
        "description": "Toggle Under Attack Mode \u2014 forces JS challenge on all visitors.",
        "operationId": "toggle_under_attack_api_v1_ddos_under_attack_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UnderAttackReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/email/routes": {
      "get": {
        "tags": [
          "email"
        ],
        "summary": "List Routes",
        "description": "List all email forwarding routes.",
        "operationId": "list_routes_api_v1_email_routes_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "email"
        ],
        "summary": "Create Route",
        "description": "Create an email forwarding rule.",
        "operationId": "create_route_api_v1_email_routes_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateRouteReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/email/routes/{route_id}": {
      "patch": {
        "tags": [
          "email"
        ],
        "summary": "Update Route",
        "description": "Update an email route.",
        "operationId": "update_route_api_v1_email_routes__route_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Route Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateRouteReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "email"
        ],
        "summary": "Delete Route",
        "description": "Delete an email route.",
        "operationId": "delete_route_api_v1_email_routes__route_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "route_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Route Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/email/dns-check/{domain_name}": {
      "get": {
        "tags": [
          "email"
        ],
        "summary": "Check Email Dns",
        "description": "Check if MX records are properly configured for email forwarding.",
        "operationId": "check_email_dns_api_v1_email_dns_check__domain_name__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/edge/runtimes": {
      "get": {
        "tags": [
          "edge-functions"
        ],
        "summary": "List Runtimes",
        "description": "List available runtimes.",
        "operationId": "list_runtimes_api_v1_edge_runtimes_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/edge/functions": {
      "get": {
        "tags": [
          "edge-functions"
        ],
        "summary": "List Functions",
        "description": "List all edge functions.",
        "operationId": "list_functions_api_v1_edge_functions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Create Function",
        "description": "Create a new edge function.",
        "operationId": "create_function_api_v1_edge_functions_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateFunctionReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/edge/functions/{function_id}": {
      "get": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Get Function",
        "description": "Get function details + code.",
        "operationId": "get_function_api_v1_edge_functions__function_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Function Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Update Function",
        "description": "Update function code or settings.",
        "operationId": "update_function_api_v1_edge_functions__function_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Function Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFunctionReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Delete Function",
        "description": "Delete a function.",
        "operationId": "delete_function_api_v1_edge_functions__function_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Function Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/edge/invoke/{function_id}": {
      "put": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Invoke Function",
        "operationId": "invoke_function_api_v1_edge_invoke__function_id__put",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Function Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Invoke Function",
        "operationId": "invoke_function_api_v1_edge_invoke__function_id__put",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Function Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Invoke Function",
        "operationId": "invoke_function_api_v1_edge_invoke__function_id__put",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Function Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Invoke Function",
        "operationId": "invoke_function_api_v1_edge_invoke__function_id__put",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Function Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "edge-functions"
        ],
        "summary": "Invoke Function",
        "operationId": "invoke_function_api_v1_edge_invoke__function_id__put",
        "parameters": [
          {
            "name": "function_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Function Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/monitoring/monitors": {
      "get": {
        "tags": [
          "monitoring"
        ],
        "summary": "List Monitors",
        "description": "List all monitors for the current user.",
        "operationId": "list_monitors_api_v1_monitoring_monitors_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "monitoring"
        ],
        "summary": "Create Monitor",
        "description": "Create a new uptime monitor.",
        "operationId": "create_monitor_api_v1_monitoring_monitors_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMonitorReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/monitoring/monitors/{monitor_id}": {
      "get": {
        "tags": [
          "monitoring"
        ],
        "summary": "Get Monitor",
        "description": "Get monitor details with recent checks.",
        "operationId": "get_monitor_api_v1_monitoring_monitors__monitor_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Monitor Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "monitoring"
        ],
        "summary": "Update Monitor",
        "description": "Update monitor settings.",
        "operationId": "update_monitor_api_v1_monitoring_monitors__monitor_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Monitor Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMonitorReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "monitoring"
        ],
        "summary": "Delete Monitor",
        "description": "Delete a monitor and its checks.",
        "operationId": "delete_monitor_api_v1_monitoring_monitors__monitor_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Monitor Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/monitoring/monitors/{monitor_id}/check": {
      "post": {
        "tags": [
          "monitoring"
        ],
        "summary": "Manual Check",
        "description": "Run a manual check now.",
        "operationId": "manual_check_api_v1_monitoring_monitors__monitor_id__check_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Monitor Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/monitoring/status/{monitor_id}": {
      "get": {
        "tags": [
          "monitoring"
        ],
        "summary": "Public Status",
        "operationId": "public_status_api_v1_monitoring_status__monitor_id__get",
        "parameters": [
          {
            "name": "monitor_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Monitor Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/monitoring/regions": {
      "get": {
        "tags": [
          "monitoring"
        ],
        "summary": "List Regions",
        "description": "List available monitoring regions.",
        "operationId": "list_regions_api_v1_monitoring_regions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/cdn-cgi/image/": {
      "get": {
        "tags": [
          "image"
        ],
        "summary": "Optimize Image",
        "description": "On-the-fly image optimization.\n\nExample: /cdn-cgi/image/?url=https://example.com/photo.jpg&w=800&q=75&f=webp",
        "operationId": "optimize_image_api_v1_cdn_cgi_image__get",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Source image URL",
              "title": "Url"
            },
            "description": "Source image URL"
          },
          {
            "name": "w",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 4096,
              "minimum": 1,
              "description": "Width",
              "title": "W"
            },
            "description": "Width"
          },
          {
            "name": "h",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 4096,
              "minimum": 1,
              "description": "Height",
              "title": "H"
            },
            "description": "Height"
          },
          {
            "name": "f",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Format: auto, webp, avif, jpeg, png",
              "default": "auto",
              "title": "F"
            },
            "description": "Format: auto, webp, avif, jpeg, png"
          },
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "description": "Quality 1-100",
              "default": 80,
              "title": "Q"
            },
            "description": "Quality 1-100"
          },
          {
            "name": "fit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Fit mode: cover, contain, fill, inside",
              "default": "cover",
              "title": "Fit"
            },
            "description": "Fit mode: cover, contain, fill, inside"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/cdn-cgi/image/stats": {
      "get": {
        "tags": [
          "image"
        ],
        "summary": "Image Cache Stats",
        "description": "Get image cache statistics.",
        "operationId": "image_cache_stats_api_v1_cdn_cgi_image_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/cdn-cgi/image/cache": {
      "delete": {
        "tags": [
          "image"
        ],
        "summary": "Clear Image Cache",
        "description": "Clear the image cache.",
        "operationId": "clear_image_cache_api_v1_cdn_cgi_image_cache_delete",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/cdn-cgi/image/toggle/{domain_name}": {
      "post": {
        "tags": [
          "image"
        ],
        "summary": "Toggle Image Optimization",
        "description": "Toggle image optimization for a domain.",
        "operationId": "toggle_image_optimization_api_v1_cdn_cgi_image_toggle__domain_name__post",
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "enabled",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": true,
              "title": "Enabled"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains": {
      "get": {
        "tags": [
          "domains"
        ],
        "summary": "List Domains",
        "operationId": "list_domains_api_v1_domains_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "domains"
        ],
        "summary": "Create Domain",
        "operationId": "create_domain_api_v1_domains_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/domains/{domain_name}": {
      "get": {
        "tags": [
          "domains"
        ],
        "summary": "Get Domain",
        "operationId": "get_domain_api_v1_domains__domain_name__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "domains"
        ],
        "summary": "Update Domain",
        "operationId": "update_domain_api_v1_domains__domain_name__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DomainUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "domains"
        ],
        "summary": "Delete Domain",
        "operationId": "delete_domain_api_v1_domains__domain_name__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/purge": {
      "post": {
        "tags": [
          "domains"
        ],
        "summary": "Purge Cache",
        "operationId": "purge_cache_api_v1_domains__domain_name__purge_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/dns": {
      "get": {
        "tags": [
          "domains"
        ],
        "summary": "List Dns",
        "operationId": "list_dns_api_v1_domains__domain_name__dns_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "domains"
        ],
        "summary": "Add Dns",
        "operationId": "add_dns_api_v1_domains__domain_name__dns_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DnsRecordCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/dns/{record_id}": {
      "delete": {
        "tags": [
          "domains"
        ],
        "summary": "Delete Dns",
        "operationId": "delete_dns_api_v1_domains__domain_name__dns__record_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "record_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Record Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/firewall": {
      "get": {
        "tags": [
          "domains"
        ],
        "summary": "List Firewall",
        "operationId": "list_firewall_api_v1_domains__domain_name__firewall_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "domains"
        ],
        "summary": "Create Firewall",
        "operationId": "create_firewall_api_v1_domains__domain_name__firewall_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FirewallRuleCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/firewall/{rule_id}": {
      "delete": {
        "tags": [
          "domains"
        ],
        "summary": "Delete Firewall",
        "operationId": "delete_firewall_api_v1_domains__domain_name__firewall__rule_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Rule Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/ip-rules": {
      "get": {
        "tags": [
          "domains"
        ],
        "summary": "List Ip Rules",
        "operationId": "list_ip_rules_api_v1_domains__domain_name__ip_rules_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "domains"
        ],
        "summary": "Create Ip Rule",
        "operationId": "create_ip_rule_api_v1_domains__domain_name__ip_rules_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IpAccessRuleCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/ip-rules/{rule_id}": {
      "delete": {
        "tags": [
          "domains"
        ],
        "summary": "Delete Ip Rule",
        "operationId": "delete_ip_rule_api_v1_domains__domain_name__ip_rules__rule_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Rule Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/rate-limits": {
      "get": {
        "tags": [
          "domains"
        ],
        "summary": "List Rate Limits",
        "operationId": "list_rate_limits_api_v1_domains__domain_name__rate_limits_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "domains"
        ],
        "summary": "Create Rate Limit",
        "operationId": "create_rate_limit_api_v1_domains__domain_name__rate_limits_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RateLimitCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/rate-limits/{rule_id}": {
      "delete": {
        "tags": [
          "domains"
        ],
        "summary": "Delete Rate Limit",
        "operationId": "delete_rate_limit_api_v1_domains__domain_name__rate_limits__rule_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Rule Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/page-rules": {
      "get": {
        "tags": [
          "domains"
        ],
        "summary": "List Page Rules",
        "operationId": "list_page_rules_api_v1_domains__domain_name__page_rules_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "domains"
        ],
        "summary": "Create Page Rule",
        "operationId": "create_page_rule_api_v1_domains__domain_name__page_rules_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PageRuleCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/page-rules/{rule_id}": {
      "delete": {
        "tags": [
          "domains"
        ],
        "summary": "Delete Page Rule",
        "operationId": "delete_page_rule_api_v1_domains__domain_name__page_rules__rule_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "rule_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Rule Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/cache-rules": {
      "get": {
        "tags": [
          "domains"
        ],
        "summary": "List Cache Rules",
        "operationId": "list_cache_rules_api_v1_domains__domain_name__cache_rules_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "domains"
        ],
        "summary": "Create Cache Rule",
        "operationId": "create_cache_rule_api_v1_domains__domain_name__cache_rules_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CacheRuleCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/workers": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "List Workers",
        "operationId": "list_workers_api_v1_domains__domain_name__workers_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "extra"
        ],
        "summary": "Create Worker",
        "operationId": "create_worker_api_v1_domains__domain_name__workers_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkerCreate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/domains/{domain_name}/workers/{worker_id}": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "Get Worker",
        "operationId": "get_worker_api_v1_domains__domain_name__workers__worker_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "worker_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Worker Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "extra"
        ],
        "summary": "Update Worker",
        "operationId": "update_worker_api_v1_domains__domain_name__workers__worker_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "worker_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Worker Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WorkerUpdate"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "extra"
        ],
        "summary": "Delete Worker",
        "operationId": "delete_worker_api_v1_domains__domain_name__workers__worker_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain_name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain Name"
            }
          },
          {
            "name": "worker_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Worker Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/nodes": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "List Nodes",
        "operationId": "list_nodes_api_v1_nodes_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/nodes/register": {
      "post": {
        "tags": [
          "extra"
        ],
        "summary": "Register Node",
        "operationId": "register_node_api_v1_nodes_register_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NodeRegister"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/nodes/heartbeat": {
      "post": {
        "tags": [
          "extra"
        ],
        "summary": "Node Heartbeat",
        "operationId": "node_heartbeat_api_v1_nodes_heartbeat_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NodeHeartbeat"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/nodes/{node_id}/config": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "Get Node Config",
        "description": "Node pulls its current config (domains, firewall rules, IP rules, rate limits).",
        "operationId": "get_node_config_api_v1_nodes__node_id__config_get",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/channels": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "List Notif Channels",
        "operationId": "list_notif_channels_api_v1_notifications_channels_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "extra"
        ],
        "summary": "Create Notif Channel",
        "operationId": "create_notif_channel_api_v1_notifications_channels_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NotifChannelCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/notifications/channels/{channel_id}": {
      "delete": {
        "tags": [
          "extra"
        ],
        "summary": "Delete Notif Channel",
        "operationId": "delete_notif_channel_api_v1_notifications_channels__channel_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "channel_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Channel Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/notifications/policies": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "List Alert Policies",
        "operationId": "list_alert_policies_api_v1_notifications_policies_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "extra"
        ],
        "summary": "Update Alert Policy",
        "operationId": "update_alert_policy_api_v1_notifications_policies_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AlertPolicyUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/audit-log": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "List Audit Log",
        "operationId": "list_audit_log_api_v1_audit_log_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/api-tokens": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "List Api Tokens",
        "operationId": "list_api_tokens_api_v1_api_tokens_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "extra"
        ],
        "summary": "Create Api Token",
        "operationId": "create_api_token_api_v1_api_tokens_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ApiTokenCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/api-tokens/{token_id}": {
      "delete": {
        "tags": [
          "extra"
        ],
        "summary": "Revoke Api Token",
        "operationId": "revoke_api_token_api_v1_api_tokens__token_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "token_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/stats": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "Network Stats",
        "operationId": "network_stats_api_v1_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/health": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "Health",
        "operationId": "health_api_v1_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/public-stats": {
      "get": {
        "tags": [
          "extra"
        ],
        "summary": "Public Stats",
        "operationId": "public_stats_api_v1_public_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/governance/status": {
      "get": {
        "tags": [
          "governance"
        ],
        "summary": "Governance Status",
        "description": "Public: current governance status.",
        "operationId": "governance_status_api_v1_governance_status_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/governance/nodes": {
      "get": {
        "tags": [
          "governance"
        ],
        "summary": "Governance Nodes",
        "description": "Public: node governance info.",
        "operationId": "governance_nodes_api_v1_governance_nodes_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/governance/nominate": {
      "post": {
        "tags": [
          "governance"
        ],
        "summary": "Nominate Coordinator",
        "description": "Nominate a node as coordinator candidate. Only 365+ day node owners can nominate.",
        "operationId": "nominate_coordinator_api_v1_governance_nominate_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NominateReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/governance/coordinators": {
      "get": {
        "tags": [
          "governance"
        ],
        "summary": "List Coordinators",
        "description": "Public: list active coordinators.",
        "operationId": "list_coordinators_api_v1_governance_coordinators_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/governance/health": {
      "get": {
        "tags": [
          "governance"
        ],
        "summary": "Coordinator Health",
        "description": "Public: coordinator health status.",
        "operationId": "coordinator_health_api_v1_governance_health_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/governance/elections/start": {
      "post": {
        "tags": [
          "governance"
        ],
        "summary": "Start Election",
        "operationId": "start_election_api_v1_governance_elections_start_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NominateReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/governance/elections/vote": {
      "post": {
        "tags": [
          "governance"
        ],
        "summary": "Cast Vote",
        "operationId": "cast_vote_api_v1_governance_elections_vote_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoteReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/governance/elections/active": {
      "get": {
        "tags": [
          "governance"
        ],
        "summary": "Get Active Election",
        "operationId": "get_active_election_api_v1_governance_elections_active_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/governance/elections/finalize": {
      "post": {
        "tags": [
          "governance"
        ],
        "summary": "Finalize Election",
        "operationId": "finalize_election_api_v1_governance_elections_finalize_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/governance/elections/history": {
      "get": {
        "tags": [
          "governance"
        ],
        "summary": "Election History",
        "operationId": "election_history_api_v1_governance_elections_history_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/coordinator/heartbeat": {
      "post": {
        "tags": [
          "coordinator-sync"
        ],
        "summary": "Receive Heartbeat",
        "description": "Receive heartbeat from peer coordinator.",
        "operationId": "receive_heartbeat_api_v1_coordinator_heartbeat_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CoordHeartbeat"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/coordinator/wal/apply": {
      "post": {
        "tags": [
          "coordinator-sync"
        ],
        "summary": "Apply Wal",
        "description": "Receive and apply WAL entries from leader.",
        "operationId": "apply_wal_api_v1_coordinator_wal_apply_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WALBatch"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/coordinator/wal/since/{sequence}": {
      "get": {
        "tags": [
          "coordinator-sync"
        ],
        "summary": "Get Wal Since",
        "description": "Get WAL entries since a sequence number (for follower catch-up).",
        "operationId": "get_wal_since_api_v1_coordinator_wal_since__sequence__get",
        "parameters": [
          {
            "name": "sequence",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "title": "Sequence"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/coordinator/status": {
      "get": {
        "tags": [
          "coordinator-sync"
        ],
        "summary": "Coordinator Status",
        "description": "Public: coordinator sync status.",
        "operationId": "coordinator_status_api_v1_coordinator_status_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/coordinator/register": {
      "post": {
        "tags": [
          "coordinator-sync"
        ],
        "summary": "Register Coordinator",
        "description": "A new coordinator registers itself with the leader.",
        "operationId": "register_coordinator_api_v1_coordinator_register_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/node-dashboard/register": {
      "post": {
        "tags": [
          "node-dashboard"
        ],
        "summary": "Node Register",
        "description": "Register as a node operator \u2014 creates user + node in one step.",
        "operationId": "node_register_api_v1_node_dashboard_register_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NodeRegisterReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/node-dashboard/login": {
      "post": {
        "tags": [
          "node-dashboard"
        ],
        "summary": "Node Login",
        "description": "Login for node operators.",
        "operationId": "node_login_api_v1_node_dashboard_login_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NodeLoginReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/node-dashboard/my-nodes": {
      "get": {
        "tags": [
          "node-dashboard"
        ],
        "summary": "My Nodes",
        "description": "Get all nodes owned by current user.",
        "operationId": "my_nodes_api_v1_node_dashboard_my_nodes_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/node-dashboard/earnings": {
      "get": {
        "tags": [
          "node-dashboard"
        ],
        "summary": "My Earnings",
        "description": "Get detailed earnings breakdown for all user's nodes.",
        "operationId": "my_earnings_api_v1_node_dashboard_earnings_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/node-dashboard/stats/{node_id}": {
      "get": {
        "tags": [
          "node-dashboard"
        ],
        "summary": "Node Stats",
        "description": "Get detailed stats for a specific node.",
        "operationId": "node_stats_api_v1_node_dashboard_stats__node_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/node-dashboard/network": {
      "get": {
        "tags": [
          "node-dashboard"
        ],
        "summary": "Network Overview",
        "description": "Public network stats (no auth required).",
        "operationId": "network_overview_api_v1_node_dashboard_network_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/support/chat": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Ai Chat",
        "description": "AI support chat \u2014 answers questions about DCDN Cloud.",
        "operationId": "ai_chat_api_v1_support_chat_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/support/tickets": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Create Ticket",
        "description": "Create a support ticket.",
        "operationId": "create_ticket_api_v1_support_tickets_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketCreateReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "support"
        ],
        "summary": "List Tickets",
        "description": "List user's support tickets.",
        "operationId": "list_tickets_api_v1_support_tickets_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/tickets/{ticket_id}": {
      "get": {
        "tags": [
          "support"
        ],
        "summary": "Get Ticket",
        "description": "Get ticket details with all messages.",
        "operationId": "get_ticket_api_v1_support_tickets__ticket_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/tickets/{ticket_id}/reply": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Reply Ticket",
        "description": "Reply to a support ticket.",
        "operationId": "reply_ticket_api_v1_support_tickets__ticket_id__reply_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TicketReplyReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/tickets/{ticket_id}/close": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Close Ticket",
        "description": "Close a ticket.",
        "operationId": "close_ticket_api_v1_support_tickets__ticket_id__close_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/contact": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Contact Sales",
        "description": "Public contact form \u2014 creates a support ticket without auth.",
        "operationId": "contact_sales_api_v1_support_contact_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/support/public-chat": {
      "post": {
        "tags": [
          "support"
        ],
        "summary": "Public Ai Chat",
        "description": "Public AI chat for landing page \u2014 no auth required, limited.",
        "operationId": "public_ai_chat_api_v1_support_public_chat_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublicChatReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/analytics/overview": {
      "get": {
        "tags": [
          "analytics"
        ],
        "summary": "Analytics Overview",
        "description": "Get analytics overview for a domain.",
        "operationId": "analytics_overview_api_v1_analytics_overview_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "24h",
              "title": "Period"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/analytics/timeseries": {
      "get": {
        "tags": [
          "analytics"
        ],
        "summary": "Analytics Timeseries",
        "description": "Get time-series data for charts.",
        "operationId": "analytics_timeseries_api_v1_analytics_timeseries_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "24h",
              "title": "Period"
            }
          },
          {
            "name": "metric",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "requests",
              "title": "Metric"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/analytics/top-paths": {
      "get": {
        "tags": [
          "analytics"
        ],
        "summary": "Analytics Top Paths",
        "description": "Get top requested paths.",
        "operationId": "analytics_top_paths_api_v1_analytics_top_paths_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "7d",
              "title": "Period"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/analytics/countries": {
      "get": {
        "tags": [
          "analytics"
        ],
        "summary": "Analytics Countries",
        "description": "Get traffic by country.",
        "operationId": "analytics_countries_api_v1_analytics_countries_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain"
            }
          },
          {
            "name": "period",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "7d",
              "title": "Period"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/analytics/ingest": {
      "post": {
        "tags": [
          "analytics"
        ],
        "summary": "Analytics Ingest",
        "description": "Ingest analytics data from edge nodes (node auth required).",
        "operationId": "analytics_ingest_api_v1_analytics_ingest_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object",
                "title": "Data"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tokens/create": {
      "post": {
        "tags": [
          "api-tokens"
        ],
        "summary": "Create Token",
        "description": "Create a new API token. Returns the token ONCE \u2014 save it.",
        "operationId": "create_token_api_v1_tokens_create_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTokenReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/tokens/list": {
      "get": {
        "tags": [
          "api-tokens"
        ],
        "summary": "List Tokens",
        "description": "List all API tokens (without the actual token values).",
        "operationId": "list_tokens_api_v1_tokens_list_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/tokens/{token_id}": {
      "delete": {
        "tags": [
          "api-tokens"
        ],
        "summary": "Revoke Token",
        "description": "Revoke (delete) an API token.",
        "operationId": "revoke_token_api_v1_tokens__token_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "token_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Token Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/status/public/{page_slug}": {
      "get": {
        "tags": [
          "status-page"
        ],
        "summary": "Public Status Page",
        "description": "Public status page \u2014 anyone can view.",
        "operationId": "public_status_page_api_v1_status_public__page_slug__get",
        "parameters": [
          {
            "name": "page_slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Page Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/status/pages": {
      "get": {
        "tags": [
          "status-page"
        ],
        "summary": "List Status Pages",
        "operationId": "list_status_pages_api_v1_status_pages_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "status-page"
        ],
        "summary": "Create Status Page",
        "description": "Create a public status page.",
        "operationId": "create_status_page_api_v1_status_pages_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateStatusPage"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/status/webhooks": {
      "get": {
        "tags": [
          "status-page"
        ],
        "summary": "List Webhooks",
        "operationId": "list_webhooks_api_v1_status_webhooks_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "status-page"
        ],
        "summary": "Create Webhook",
        "description": "Register a webhook for event notifications.",
        "operationId": "create_webhook_api_v1_status_webhooks_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/WebhookReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/status/webhooks/{webhook_id}": {
      "delete": {
        "tags": [
          "status-page"
        ],
        "summary": "Delete Webhook",
        "operationId": "delete_webhook_api_v1_status_webhooks__webhook_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "webhook_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Webhook Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/status/bandwidth": {
      "get": {
        "tags": [
          "status-page"
        ],
        "summary": "Bandwidth Usage",
        "description": "Get bandwidth usage and plan limit for a domain.",
        "operationId": "bandwidth_usage_api_v1_status_bandwidth_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/team/members": {
      "get": {
        "tags": [
          "team"
        ],
        "summary": "List Members",
        "description": "List team members.",
        "operationId": "list_members_api_v1_team_members_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/team/invite": {
      "post": {
        "tags": [
          "team"
        ],
        "summary": "Invite Member",
        "description": "Invite a team member by email.",
        "operationId": "invite_member_api_v1_team_invite_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InviteReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/team/members/{member_id}": {
      "patch": {
        "tags": [
          "team"
        ],
        "summary": "Update Member",
        "description": "Change a team member's role.",
        "operationId": "update_member_api_v1_team_members__member_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "member_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Member Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMemberReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "team"
        ],
        "summary": "Remove Member",
        "description": "Remove a team member.",
        "operationId": "remove_member_api_v1_team_members__member_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "member_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Member Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/team/accept/{invite_token}": {
      "post": {
        "tags": [
          "team"
        ],
        "summary": "Accept Invite",
        "description": "Accept a team invite.",
        "operationId": "accept_invite_api_v1_team_accept__invite_token__post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "invite_token",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Invite Token"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/logs/recent": {
      "get": {
        "tags": [
          "logs"
        ],
        "summary": "Get Recent Logs",
        "description": "Get recent request logs from memory buffer.",
        "operationId": "get_recent_logs_api_v1_logs_recent_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Domain"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "default": 100,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/logs/ingest": {
      "post": {
        "tags": [
          "logs"
        ],
        "summary": "Ingest Logs",
        "description": "Ingest request logs from edge nodes.",
        "operationId": "ingest_logs_api_v1_logs_ingest_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "additionalProperties": true,
                "type": "object",
                "title": "Data"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents": {
      "get": {
        "tags": [
          "ai-agents"
        ],
        "summary": "List Agents",
        "description": "List all agents.",
        "operationId": "list_agents_api_v1_agents_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Create Agent",
        "description": "Create a new AI agent.",
        "operationId": "create_agent_api_v1_agents_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateAgentReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/agents/{agent_id}": {
      "get": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Get Agent",
        "description": "Get agent details.",
        "operationId": "get_agent_api_v1_agents__agent_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Update Agent",
        "description": "Update agent configuration.",
        "operationId": "update_agent_api_v1_agents__agent_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateAgentReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Delete Agent",
        "description": "Delete an agent and all its data.",
        "operationId": "delete_agent_api_v1_agents__agent_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{agent_id}/run": {
      "post": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Run Agent",
        "description": "Execute an agent (synchronous).",
        "operationId": "run_agent_api_v1_agents__agent_id__run_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunAgentReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{agent_id}/stream": {
      "post": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Stream Agent",
        "description": "Execute agent with SSE streaming response.",
        "operationId": "stream_agent_api_v1_agents__agent_id__stream_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunAgentReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{agent_id}/memory": {
      "get": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Get Memory",
        "description": "Get agent conversation memory.",
        "operationId": "get_memory_api_v1_agents__agent_id__memory_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Clear Memory",
        "description": "Clear agent memory.",
        "operationId": "clear_memory_api_v1_agents__agent_id__memory_delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/{agent_id}/logs": {
      "get": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Get Logs",
        "description": "Get agent execution logs.",
        "operationId": "get_logs_api_v1_agents__agent_id__logs_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 20,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/skills/available": {
      "get": {
        "tags": [
          "ai-agents"
        ],
        "summary": "List Available Skills",
        "description": "List available skills that can be added to agents.",
        "operationId": "list_available_skills_api_v1_agents_skills_available_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/agents/platform/stats": {
      "get": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Agent Platform Stats",
        "description": "Public platform stats.",
        "operationId": "agent_platform_stats_api_v1_agents_platform_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/agents/models/available": {
      "get": {
        "tags": [
          "ai-agents"
        ],
        "summary": "List Models",
        "description": "List available models with pricing tiers.",
        "operationId": "list_models_api_v1_agents_models_available_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/agents/usage": {
      "get": {
        "tags": [
          "ai-agents"
        ],
        "summary": "Get Usage",
        "description": "Get current month token usage and remaining balance.",
        "operationId": "get_usage_api_v1_agents_usage_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/invoices/{invoice_id}/pdf": {
      "get": {
        "tags": [
          "invoices"
        ],
        "summary": "Download Invoice Pdf",
        "description": "Download invoice as PDF.",
        "operationId": "download_invoice_pdf_api_v1_invoices__invoice_id__pdf_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "invoice_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Invoice Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/invoices": {
      "get": {
        "tags": [
          "invoices"
        ],
        "summary": "List Invoices",
        "description": "List all invoices with download links.",
        "operationId": "list_invoices_api_v1_invoices_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/credit/subscribe": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Subscribe With Credits",
        "description": "Subscribe to a plan using DCDN credits. 1 credit = $1 USD.",
        "operationId": "subscribe_with_credits_api_v1_billing_credit_subscribe_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreditPayReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/credit/vps": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Vps With Credits",
        "description": "Pay for VPS using DCDN credits.",
        "operationId": "vps_with_credits_api_v1_billing_credit_vps_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VpsCreditReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/credit/aio": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Aio With Credits",
        "description": "Pay for All-in-One bundle using DCDN credits.",
        "operationId": "aio_with_credits_api_v1_billing_credit_aio_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AioCreditReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/token/confirm": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Confirm Token Payment",
        "description": "Confirm an on-chain DCDN token payment. Verifies tx on-chain before activating.",
        "operationId": "confirm_token_payment_api_v1_billing_token_confirm_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenConfirmReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/plans": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get Plans",
        "description": "Get plans with real-time DCDN pricing.",
        "operationId": "get_plans_api_v1_billing_plans_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/price": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get Price",
        "description": "Get current DCDN token price.",
        "operationId": "get_price_api_v1_billing_price_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/stripe/checkout": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Create Stripe Checkout",
        "operationId": "create_stripe_checkout_api_v1_billing_stripe_checkout_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StripeCheckoutReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/stripe/vps-checkout": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Create Vps Stripe Checkout",
        "description": "Create a Stripe checkout session for a VPS instance subscription.",
        "operationId": "create_vps_stripe_checkout_api_v1_billing_stripe_vps_checkout_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VpsCheckoutReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/stripe/aio-checkout": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Create Aio Checkout",
        "description": "Create Stripe checkout for All-in-One bundle.",
        "operationId": "create_aio_checkout_api_v1_billing_stripe_aio_checkout_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AioCheckoutReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/stripe/webhook": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Stripe Webhook",
        "description": "Handle Stripe webhook \u2014 upgrade plan + auto-convert USD to DCDN.",
        "operationId": "stripe_webhook_api_v1_billing_stripe_webhook_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/crypto/pay": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Crypto Payment",
        "description": "Direct DCDN token payment \u2014 10% discount, no conversion needed.",
        "operationId": "crypto_payment_api_v1_billing_crypto_pay_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CryptoPayReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/crypto/info": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Crypto Info",
        "operationId": "crypto_info_api_v1_billing_crypto_info_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/conversions": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get Conversions",
        "description": "Get auto-conversion history for the user.",
        "operationId": "get_conversions_api_v1_billing_conversions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/conversions/queue": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get Conversion Queue",
        "description": "Admin: view pending conversion queue.",
        "operationId": "get_conversion_queue_api_v1_billing_conversions_queue_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get Billing",
        "operationId": "get_billing_api_v1_billing_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/upgrade": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Upgrade Plan",
        "description": "Plan changes must go through Stripe or verified crypto payment. This endpoint is admin-only.",
        "operationId": "upgrade_plan_api_v1_billing_upgrade_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpgradeReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/billing/captcha": {
      "get": {
        "tags": [
          "billing"
        ],
        "summary": "Get Captcha",
        "description": "Get a new captcha challenge.",
        "operationId": "get_captcha_api_v1_billing_captcha_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/billing/contact-sales": {
      "post": {
        "tags": [
          "billing"
        ],
        "summary": "Contact Sales",
        "description": "Public endpoint \u2014 no auth required. Sends enterprise inquiry email.",
        "operationId": "contact_sales_api_v1_billing_contact_sales_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactSalesReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/stats": {
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Stats",
        "description": "Global platform statistics.",
        "operationId": "admin_stats_api_v1_admin_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/admin/users": {
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Users",
        "operationId": "admin_users_api_v1_admin_users_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/users/{user_id}": {
      "patch": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Update User",
        "operationId": "admin_update_user_api_v1_admin_users__user_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          },
          {
            "name": "plan",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Plan"
            }
          },
          {
            "name": "is_admin",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Is Admin"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/domains": {
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Domains",
        "operationId": "admin_domains_api_v1_admin_domains_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/nodes": {
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Nodes",
        "operationId": "admin_nodes_api_v1_admin_nodes_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/admin/tickets": {
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Tickets",
        "operationId": "admin_tickets_api_v1_admin_tickets_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/tickets/{ticket_id}": {
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Ticket Detail",
        "operationId": "admin_ticket_detail_api_v1_admin_tickets__ticket_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/tickets/{ticket_id}/reply": {
      "post": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Reply Ticket",
        "operationId": "admin_reply_ticket_api_v1_admin_tickets__ticket_id__reply_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          },
          {
            "name": "message",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Message"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/tickets/{ticket_id}/resolve": {
      "post": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Resolve Ticket",
        "operationId": "admin_resolve_ticket_api_v1_admin_tickets__ticket_id__resolve_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "ticket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Ticket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/billing": {
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Billing",
        "operationId": "admin_billing_api_v1_admin_billing_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/audit": {
      "get": {
        "tags": [
          "admin"
        ],
        "summary": "Admin Audit",
        "operationId": "admin_audit_api_v1_admin_audit_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 100,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/plans": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "List Plans",
        "operationId": "list_plans_api_v1_compute_plans_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/images": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "List Images",
        "operationId": "list_images_api_v1_compute_images_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/templates": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "List Templates",
        "description": "List available one-click app deployment templates.",
        "operationId": "list_templates_api_v1_compute_templates_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/regions": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "List Regions",
        "operationId": "list_regions_api_v1_compute_regions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/instances": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "List Instances",
        "operationId": "list_instances_api_v1_compute_instances_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Create Instance",
        "operationId": "create_instance_api_v1_compute_instances_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInstanceReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/compute/instances/{instance_id}": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "Get Instance",
        "operationId": "get_instance_api_v1_compute_instances__instance_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Instance Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "compute"
        ],
        "summary": "Destroy Instance",
        "operationId": "destroy_instance_api_v1_compute_instances__instance_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Instance Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/instances/{instance_id}/start": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Start Instance",
        "operationId": "start_instance_api_v1_compute_instances__instance_id__start_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Instance Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/instances/{instance_id}/stop": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Stop Instance",
        "operationId": "stop_instance_api_v1_compute_instances__instance_id__stop_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Instance Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/instances/{instance_id}/restart": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Restart Instance",
        "operationId": "restart_instance_api_v1_compute_instances__instance_id__restart_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Instance Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/instances/{instance_id}/reset-password": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Reset Password",
        "operationId": "reset_password_api_v1_compute_instances__instance_id__reset_password_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Instance Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/instances/{instance_id}/ssh-key": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Add Ssh Key",
        "description": "Add an SSH public key to an instance.",
        "operationId": "add_ssh_key_api_v1_compute_instances__instance_id__ssh_key_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "instance_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Instance Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/earnings/node/{node_id}": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "Get Node Earnings",
        "description": "Get earnings for a specific node (public for node operators).",
        "operationId": "get_node_earnings_api_v1_compute_earnings_node__node_id__get",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/earnings/summary": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "Get Earnings Summary",
        "description": "Get earnings summary for all nodes owned by the user.",
        "operationId": "get_earnings_summary_api_v1_compute_earnings_summary_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/compute/earnings/accrue": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Accrue Monthly Earnings",
        "description": "Monthly job: calculate and record earnings for all active instances.\nShould be called by cron at end of month.",
        "operationId": "accrue_monthly_earnings_api_v1_compute_earnings_accrue_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/earnings/payout": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Request Payout",
        "description": "Node operator requests payout of pending earnings.",
        "operationId": "request_payout_api_v1_compute_earnings_payout_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PayoutRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/compute/earnings/distribute-tokens": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Distribute Vps Tokens",
        "description": "Monthly cron: mint DCDN tokens for VPS revenue.\nCalled after Stripe payments are confirmed for the period.\n\nDistribution:\n- 60% \u2192 Node operator wallet (DCDN token mint)\n- 30% \u2192 RSP contract (revenue share to all token holders)\n- 10% \u2192 Treasury wallet",
        "operationId": "distribute_vps_tokens_api_v1_compute_earnings_distribute_tokens_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/earnings/token-info": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "Get Token Distribution Info",
        "description": "Public info about VPS revenue \u2192 token distribution.",
        "operationId": "get_token_distribution_info_api_v1_compute_earnings_token_info_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/agent/heartbeat": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Agent Heartbeat",
        "description": "Agent reports capacity + gets pending tasks. Includes challenge-response verification.",
        "operationId": "agent_heartbeat_api_v1_compute_agent_heartbeat_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentHeartbeat"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/agent/tasks": {
      "get": {
        "tags": [
          "compute"
        ],
        "summary": "Agent Tasks",
        "description": "Compute agent polls for pending tasks. Auth via X-Agent-Key, node_id via query param.",
        "operationId": "agent_tasks_api_v1_compute_agent_tasks_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/agent/report": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Agent Report",
        "description": "Agent reports task completion.",
        "operationId": "agent_report_api_v1_compute_agent_report_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentReport"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/compute/agent/shutdown": {
      "post": {
        "tags": [
          "compute"
        ],
        "summary": "Agent Shutdown",
        "description": "Agent notifies coordinator of graceful shutdown. Sets status to 'offline' (not alert-worthy).",
        "operationId": "agent_shutdown_api_v1_compute_agent_shutdown_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentShutdown"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/databases/plans": {
      "get": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "List Plans",
        "operationId": "list_plans_api_v1_databases_plans_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/databases/regions": {
      "get": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "List Regions",
        "operationId": "list_regions_api_v1_databases_regions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/databases": {
      "get": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "List Databases",
        "operationId": "list_databases_api_v1_databases_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "Create Database",
        "operationId": "create_database_api_v1_databases_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDB"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/databases/{db_id}": {
      "get": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "Get Database",
        "operationId": "get_database_api_v1_databases__db_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "db_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Db Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "Destroy Database",
        "operationId": "destroy_database_api_v1_databases__db_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "db_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Db Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/databases/{db_id}/reset-password": {
      "post": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "Reset Db Password",
        "operationId": "reset_db_password_api_v1_databases__db_id__reset_password_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "db_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Db Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/databases/{db_id}/start": {
      "post": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "Start Database",
        "operationId": "start_database_api_v1_databases__db_id__start_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "db_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Db Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/databases/{db_id}/stop": {
      "post": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "Stop Database",
        "operationId": "stop_database_api_v1_databases__db_id__stop_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "db_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Db Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/databases/agent/db-tasks": {
      "get": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "Agent Db Tasks",
        "description": "Compute agent polls for pending database tasks.",
        "operationId": "agent_db_tasks_api_v1_databases_agent_db_tasks_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/databases/agent/report": {
      "post": {
        "tags": [
          "Managed Databases"
        ],
        "summary": "Agent Db Report",
        "description": "Compute agent reports database task result.",
        "operationId": "agent_db_report_api_v1_databases_agent_report_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DBAgentReport"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/storage/plans": {
      "get": {
        "tags": [
          "Object Storage"
        ],
        "summary": "List Plans",
        "operationId": "list_plans_api_v1_storage_plans_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/storage/regions": {
      "get": {
        "tags": [
          "Object Storage"
        ],
        "summary": "List Regions",
        "operationId": "list_regions_api_v1_storage_regions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/storage": {
      "get": {
        "tags": [
          "Object Storage"
        ],
        "summary": "List Buckets",
        "operationId": "list_buckets_api_v1_storage_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Object Storage"
        ],
        "summary": "Create Bucket",
        "operationId": "create_bucket_api_v1_storage_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateBucket"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/storage/{bucket_id}": {
      "get": {
        "tags": [
          "Object Storage"
        ],
        "summary": "Get Bucket",
        "operationId": "get_bucket_api_v1_storage__bucket_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "bucket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Bucket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Object Storage"
        ],
        "summary": "Update Bucket",
        "operationId": "update_bucket_api_v1_storage__bucket_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "bucket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Bucket Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateBucket"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Object Storage"
        ],
        "summary": "Delete Bucket",
        "operationId": "delete_bucket_api_v1_storage__bucket_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "bucket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Bucket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/storage/{bucket_id}/credentials": {
      "get": {
        "tags": [
          "Object Storage"
        ],
        "summary": "Get Bucket Credentials",
        "operationId": "get_bucket_credentials_api_v1_storage__bucket_id__credentials_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "bucket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Bucket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/storage/{bucket_id}/rotate-keys": {
      "post": {
        "tags": [
          "Object Storage"
        ],
        "summary": "Rotate Keys",
        "operationId": "rotate_keys_api_v1_storage__bucket_id__rotate_keys_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "bucket_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Bucket Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/functions/plans": {
      "get": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "List Plans",
        "operationId": "list_plans_api_v1_functions_plans_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/functions/regions": {
      "get": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "List Regions",
        "operationId": "list_regions_api_v1_functions_regions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/functions": {
      "get": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "List Functions",
        "operationId": "list_functions_api_v1_functions_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "Deploy Function",
        "operationId": "deploy_function_api_v1_functions_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeployFunction"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/functions/{fn_id}": {
      "get": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "Get Function",
        "operationId": "get_function_api_v1_functions__fn_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "fn_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fn Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "Update Function",
        "operationId": "update_function_api_v1_functions__fn_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "fn_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fn Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateFunction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "Delete Function",
        "operationId": "delete_function_api_v1_functions__fn_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "fn_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fn Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/functions/{fn_id}/invoke": {
      "post": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "Invoke Function",
        "description": "Public invoke endpoint \u2014 no auth required (function is the auth boundary).",
        "operationId": "invoke_function_api_v1_functions__fn_id__invoke_post",
        "parameters": [
          {
            "name": "fn_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fn Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/functions/{fn_id}/logs": {
      "get": {
        "tags": [
          "Edge Functions"
        ],
        "summary": "Get Function Logs",
        "operationId": "get_function_logs_api_v1_functions__fn_id__logs_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "fn_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Fn Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkey/register-options": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "Register Options",
        "description": "Generate WebAuthn registration options.",
        "operationId": "register_options_api_v1_auth_passkey_register_options_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/passkey/register-verify": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "Register Verify",
        "description": "Verify registration and store the credential.",
        "operationId": "register_verify_api_v1_auth_passkey_register_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterVerifyReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/passkey/login-options": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "Login Options",
        "description": "Generate authentication options (for login).",
        "operationId": "login_options_api_v1_auth_passkey_login_options_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuthStartReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkey/login-verify": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "Login Verify",
        "description": "Verify passkey authentication and return JWT.",
        "operationId": "login_verify_api_v1_auth_passkey_login_verify_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginVerifyReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/auth/passkey/list": {
      "get": {
        "tags": [
          "passkey"
        ],
        "summary": "List Passkeys",
        "operationId": "list_passkeys_api_v1_auth_passkey_list_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/auth/passkey/delete": {
      "post": {
        "tags": [
          "passkey"
        ],
        "summary": "Delete Passkey",
        "operationId": "delete_passkey_api_v1_auth_passkey_delete_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeletePasskeyReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/credits/balance": {
      "get": {
        "tags": [
          "credits"
        ],
        "summary": "Get Balance",
        "description": "Get current credit balance.",
        "operationId": "get_balance_api_v1_credits_balance_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/credits/history": {
      "get": {
        "tags": [
          "credits"
        ],
        "summary": "Get History",
        "description": "Get credit transaction history.",
        "operationId": "get_history_api_v1_credits_history_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/credits/grants": {
      "get": {
        "tags": [
          "credits"
        ],
        "summary": "Get Grants",
        "description": "Get active credit grants with remaining amounts.",
        "operationId": "get_grants_api_v1_credits_grants_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/credits/grant": {
      "post": {
        "tags": [
          "credits"
        ],
        "summary": "Grant Credits",
        "description": "Admin: Grant credits to a user.",
        "operationId": "grant_credits_api_v1_credits_grant_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GrantCreditsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/credits/grant/bulk": {
      "post": {
        "tags": [
          "credits"
        ],
        "summary": "Bulk Grant Credits",
        "description": "Admin: Grant credits to multiple users at once (campaign).",
        "operationId": "bulk_grant_credits_api_v1_credits_grant_bulk_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BulkGrantRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/credits/revoke": {
      "post": {
        "tags": [
          "credits"
        ],
        "summary": "Revoke Credits",
        "description": "Admin: Revoke credits from a user.",
        "operationId": "revoke_credits_api_v1_credits_revoke_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeCreditsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/credits/admin/overview": {
      "get": {
        "tags": [
          "credits"
        ],
        "summary": "Credits Overview",
        "description": "Admin: Get overall credit system stats.",
        "operationId": "credits_overview_api_v1_credits_admin_overview_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/credits/admin/user/{user_id}": {
      "get": {
        "tags": [
          "credits"
        ],
        "summary": "Admin User Credits",
        "description": "Admin: View a specific user's credit details.",
        "operationId": "admin_user_credits_api_v1_credits_admin_user__user_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "User Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/credits/buy": {
      "post": {
        "tags": [
          "credits"
        ],
        "summary": "Buy Credits",
        "description": "Purchase DCDN credits via Stripe. 1 credit = $1 USD.",
        "operationId": "buy_credits_api_v1_credits_buy_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreditBuyReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/credits/transactions": {
      "get": {
        "tags": [
          "credits"
        ],
        "summary": "Get Transactions",
        "description": "Credit transaction history.",
        "operationId": "get_transactions_api_v1_credits_transactions_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/ssh-keys": {
      "get": {
        "tags": [
          "ssh-keys"
        ],
        "summary": "List Keys",
        "description": "List all SSH keys for the current user.",
        "operationId": "list_keys_api_v1_ssh_keys_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "ssh-keys"
        ],
        "summary": "Create Key",
        "description": "Add a new SSH public key.",
        "operationId": "create_key_api_v1_ssh_keys_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SshKeyCreateReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/ssh-keys/{key_id}": {
      "get": {
        "tags": [
          "ssh-keys"
        ],
        "summary": "Get Key",
        "description": "Get a specific SSH key (including public key).",
        "operationId": "get_key_api_v1_ssh_keys__key_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Key Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "ssh-keys"
        ],
        "summary": "Update Key",
        "description": "Rename an SSH key.",
        "operationId": "update_key_api_v1_ssh_keys__key_id__put",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Key Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SshKeyUpdateReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "ssh-keys"
        ],
        "summary": "Delete Key",
        "description": "Delete an SSH key.",
        "operationId": "delete_key_api_v1_ssh_keys__key_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "key_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Key Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/clusters": {
      "get": {
        "tags": [
          "gpu-clusters"
        ],
        "summary": "List Clusters",
        "description": "List user's GPU clusters.",
        "operationId": "list_clusters_api_v1_gpu_clusters_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "gpu-clusters"
        ],
        "summary": "Create Cluster",
        "description": "Create a new GPU cluster.",
        "operationId": "create_cluster_api_v1_gpu_clusters_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClusterCreateReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/clusters/{cluster_id}/scale": {
      "post": {
        "tags": [
          "gpu-clusters"
        ],
        "summary": "Scale Cluster",
        "description": "Scale cluster up or down by delta GPUs.",
        "operationId": "scale_cluster_api_v1_gpu_clusters__cluster_id__scale_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "cluster_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Cluster Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ClusterScaleReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/clusters/{cluster_id}/pause": {
      "post": {
        "tags": [
          "gpu-clusters"
        ],
        "summary": "Pause Cluster",
        "description": "Pause a running cluster.",
        "operationId": "pause_cluster_api_v1_gpu_clusters__cluster_id__pause_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "cluster_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Cluster Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/clusters/{cluster_id}": {
      "delete": {
        "tags": [
          "gpu-clusters"
        ],
        "summary": "Destroy Cluster",
        "description": "Destroy a cluster and release all nodes.",
        "operationId": "destroy_cluster_api_v1_gpu_clusters__cluster_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "cluster_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Cluster Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/x402/info": {
      "get": {
        "tags": [
          "x402-payments"
        ],
        "summary": "X402 Info",
        "description": "x402 protocol info for DCDN Cloud.",
        "operationId": "x402_info_api_v1_x402_info_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/x402/pricing": {
      "get": {
        "tags": [
          "x402-payments"
        ],
        "summary": "X402 Pricing",
        "description": "Detailed pricing for x402 pay-per-use APIs.",
        "operationId": "x402_pricing_api_v1_x402_pricing_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/x402/inference": {
      "post": {
        "tags": [
          "x402-payments"
        ],
        "summary": "X402 Inference",
        "description": "Run inference \u2014 paid via x402 (USDC on Base). No auth needed.",
        "operationId": "x402_inference_api_v1_x402_inference_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/x402/browser": {
      "post": {
        "tags": [
          "x402-payments"
        ],
        "summary": "X402 Browser",
        "description": "Browser API call \u2014 paid via x402.",
        "operationId": "x402_browser_api_v1_x402_browser_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/x402/models": {
      "get": {
        "tags": [
          "x402-payments"
        ],
        "summary": "X402 List Models",
        "description": "List available models (free \u2014 no payment required).",
        "operationId": "x402_list_models_api_v1_x402_models_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/x402/nodes": {
      "get": {
        "tags": [
          "x402-payments"
        ],
        "summary": "X402 List Nodes",
        "description": "List available GPU nodes (free \u2014 no payment required).",
        "operationId": "x402_list_nodes_api_v1_x402_nodes_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/x402/stats": {
      "get": {
        "tags": [
          "x402-payments"
        ],
        "summary": "X402 Stats",
        "description": "x402 payment statistics.",
        "operationId": "x402_stats_api_v1_x402_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/models": {
      "get": {
        "tags": [
          "openai-compat"
        ],
        "summary": "List Models",
        "description": "List available models (OpenAI-compatible format).",
        "operationId": "list_models_v1_models_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/v1/chat/completions": {
      "post": {
        "tags": [
          "openai-compat"
        ],
        "summary": "Chat Completions",
        "description": "OpenAI-compatible chat completions endpoint.",
        "operationId": "chat_completions_v1_chat_completions_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/promo/create": {
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Create Promo Code",
        "description": "Admin: Create a new promo code.",
        "operationId": "create_promo_code_api_v1_promo_create_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePromoCodeReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/promo/list": {
      "get": {
        "tags": [
          "promo"
        ],
        "summary": "List Promo Codes",
        "description": "Admin: List all promo codes.",
        "operationId": "list_promo_codes_api_v1_promo_list_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/promo/{promo_id}/toggle": {
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Toggle Promo Code",
        "description": "Admin: Enable/disable a promo code.",
        "operationId": "toggle_promo_code_api_v1_promo__promo_id__toggle_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "promo_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Promo Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/promo/redeem": {
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Redeem Promo Code",
        "description": "User: Redeem a promo code for DCDN credits.",
        "operationId": "redeem_promo_code_api_v1_promo_redeem_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RedeemPromoReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/reseller/create": {
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Create Reseller",
        "description": "Admin: Create a reseller account.",
        "operationId": "create_reseller_api_v1_reseller_create_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateResellerReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/reseller/{reseller_id}/tier": {
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Update Reseller Tier",
        "description": "Admin: Change a reseller's tier.",
        "operationId": "update_reseller_tier_api_v1_reseller__reseller_id__tier_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "reseller_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Reseller Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateResellerTierReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reseller/list": {
      "get": {
        "tags": [
          "promo"
        ],
        "summary": "List Resellers",
        "description": "Admin: List all resellers.",
        "operationId": "list_resellers_api_v1_reseller_list_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/reseller/tier/update": {
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Update Tier Limits",
        "description": "Admin: Update tier limits (credit_per_user, monthly pool, etc.).",
        "operationId": "update_tier_limits_api_v1_reseller_tier_update_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "tier_name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Tier Name"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTierLimitsReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reseller/me": {
      "get": {
        "tags": [
          "promo"
        ],
        "summary": "Reseller Dashboard",
        "description": "Reseller: View own dashboard with analytics.",
        "operationId": "reseller_dashboard_api_v1_reseller_me_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/reseller/promo/create": {
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Reseller Create Promo",
        "description": "Reseller: Create a promo code limited by their tier.",
        "operationId": "reseller_create_promo_api_v1_reseller_promo_create_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResellerCreatePromoReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/reseller/promo/{promo_id}/toggle": {
      "post": {
        "tags": [
          "promo"
        ],
        "summary": "Reseller Toggle Promo",
        "description": "Reseller: Enable/disable own promo code.",
        "operationId": "reseller_toggle_promo_api_v1_reseller_promo__promo_id__toggle_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "promo_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Promo Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/reseller/promo/{promo_id}": {
      "delete": {
        "tags": [
          "promo"
        ],
        "summary": "Reseller Delete Promo",
        "description": "Reseller: Delete (archive) own promo code.",
        "operationId": "reseller_delete_promo_api_v1_reseller_promo__promo_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "promo_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Promo Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/nodes/overview": {
      "get": {
        "tags": [
          "admin-nodes"
        ],
        "summary": "Nodes Overview",
        "description": "Paginated overview of all nodes with reputation, status, and capacity.",
        "operationId": "nodes_overview_api_v1_admin_nodes_overview_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "default": 1,
              "title": "Page"
            }
          },
          {
            "name": "per_page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "minimum": 1,
              "default": 50,
              "title": "Per Page"
            }
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Search by node_id, IP, or region",
              "default": "",
              "title": "Search"
            },
            "description": "Search by node_id, IP, or region"
          },
          {
            "name": "sort_by",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Sort field",
              "default": "reputation_score",
              "title": "Sort By"
            },
            "description": "Sort field"
          },
          {
            "name": "sort_dir",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "asc or desc",
              "default": "asc",
              "title": "Sort Dir"
            },
            "description": "asc or desc"
          },
          {
            "name": "status_filter",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Filter by status: online,offline,banned,suspended",
              "default": "",
              "title": "Status Filter"
            },
            "description": "Filter by status: online,offline,banned,suspended"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/nodes/{node_id}/reputation": {
      "get": {
        "tags": [
          "admin-nodes"
        ],
        "summary": "Node Reputation History",
        "description": "Get reputation event history for a node.",
        "operationId": "node_reputation_history_api_v1_admin_nodes__node_id__reputation_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/nodes/{node_id}/ban": {
      "post": {
        "tags": [
          "admin-nodes"
        ],
        "summary": "Ban Node",
        "description": "Ban a node \u2014 immediately stops all workloads and prevents new ones.",
        "operationId": "ban_node_api_v1_admin_nodes__node_id__ban_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BanNodeReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/nodes/{node_id}/unban": {
      "post": {
        "tags": [
          "admin-nodes"
        ],
        "summary": "Unban Node",
        "description": "Unban a node \u2014 restore to online with reset reputation.",
        "operationId": "unban_node_api_v1_admin_nodes__node_id__unban_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/nodes/{node_id}/suspend": {
      "post": {
        "tags": [
          "admin-nodes"
        ],
        "summary": "Suspend Node",
        "description": "Temporarily suspend a node \u2014 no new workloads, existing continue.",
        "operationId": "suspend_node_api_v1_admin_nodes__node_id__suspend_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 8760,
              "minimum": 1,
              "default": 24,
              "title": "Hours"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/admin/nodes/alerts": {
      "get": {
        "tags": [
          "admin-nodes"
        ],
        "summary": "Node Alerts",
        "description": "Get active alerts \u2014 nodes that need attention.",
        "operationId": "node_alerts_api_v1_admin_nodes_alerts_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/admin/nodes/verify-report": {
      "post": {
        "tags": [
          "admin-nodes"
        ],
        "summary": "Verify Report",
        "description": "Internal: Remote verifier reports issues. Authenticated by agent key.",
        "operationId": "verify_report_api_v1_admin_nodes_verify_report_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyReportReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/publish": {
      "post": {
        "tags": [
          "agent-marketplace"
        ],
        "summary": "Publish Agent",
        "description": "Publish an agent to the marketplace.",
        "operationId": "publish_agent_api_v1_marketplace_publish_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PublishAgentReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/marketplace/listing/{listing_id}": {
      "patch": {
        "tags": [
          "agent-marketplace"
        ],
        "summary": "Update Listing",
        "description": "Update a marketplace listing.",
        "operationId": "update_listing_api_v1_marketplace_listing__listing_id__patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Listing Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateListingReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "agent-marketplace"
        ],
        "summary": "Remove Listing",
        "description": "Remove agent from marketplace.",
        "operationId": "remove_listing_api_v1_marketplace_listing__listing_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "listing_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Listing Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/search": {
      "get": {
        "tags": [
          "agent-marketplace"
        ],
        "summary": "Search Agents",
        "description": "Search marketplace agents. Public \u2014 no auth required.",
        "operationId": "search_agents_api_v1_marketplace_search_get",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Q"
            }
          },
          {
            "name": "capability",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Capability"
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Token"
            }
          },
          {
            "name": "max_price",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Max Price"
            }
          },
          {
            "name": "sort",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^(popular|newest|cheapest|rating)$",
              "default": "popular",
              "title": "Sort"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "default": 20,
              "title": "Limit"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "title": "Offset"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/agent/{slug}": {
      "get": {
        "tags": [
          "agent-marketplace"
        ],
        "summary": "Get Listing",
        "description": "Get agent listing detail. Public.",
        "operationId": "get_listing_api_v1_marketplace_agent__slug__get",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/call/{slug}": {
      "post": {
        "tags": [
          "agent-marketplace"
        ],
        "summary": "Call Marketplace Agent",
        "description": "Call a marketplace agent. Accepts API key auth or agent-to-agent auth.",
        "operationId": "call_marketplace_agent_api_v1_marketplace_call__slug__post",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Slug"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CallAgentReq"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/marketplace/rate": {
      "post": {
        "tags": [
          "agent-marketplace"
        ],
        "summary": "Rate Agent",
        "description": "Rate a marketplace agent after a transaction.",
        "operationId": "rate_agent_api_v1_marketplace_rate_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RateAgentReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/marketplace/stats": {
      "get": {
        "tags": [
          "agent-marketplace"
        ],
        "summary": "Marketplace Stats",
        "description": "Public marketplace statistics.",
        "operationId": "marketplace_stats_api_v1_marketplace_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/wallet/create": {
      "post": {
        "tags": [
          "agent-wallet"
        ],
        "summary": "Create Wallet",
        "description": "Create a multi-chain wallet for an agent.",
        "operationId": "create_wallet_api_v1_wallet_create_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateWalletReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/wallet/{agent_id}": {
      "get": {
        "tags": [
          "agent-wallet"
        ],
        "summary": "Get Wallet",
        "description": "Get agent wallet balances.",
        "operationId": "get_wallet_api_v1_wallet__agent_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/wallet/deposit/confirm": {
      "post": {
        "tags": [
          "agent-wallet"
        ],
        "summary": "Confirm Deposit",
        "description": "Confirm an on-chain deposit to agent wallet.",
        "operationId": "confirm_deposit_api_v1_wallet_deposit_confirm_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DepositConfirmReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/wallet/transfer": {
      "post": {
        "tags": [
          "agent-wallet"
        ],
        "summary": "Transfer Between Agents",
        "description": "Transfer tokens from one agent to another (off-chain, instant).",
        "operationId": "transfer_between_agents_api_v1_wallet_transfer_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransferReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/wallet/escrow/release": {
      "post": {
        "tags": [
          "agent-wallet"
        ],
        "summary": "Release Escrow",
        "description": "Release or refund an escrowed payment.",
        "operationId": "release_escrow_api_v1_wallet_escrow_release_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReleaseEscrowReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/wallet/{agent_id}/transactions": {
      "get": {
        "tags": [
          "agent-wallet"
        ],
        "summary": "Get Transactions",
        "description": "Get agent wallet transaction history.",
        "operationId": "get_transactions_api_v1_wallet__agent_id__transactions_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "agent_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Agent Id"
            }
          },
          {
            "name": "token",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Token"
            }
          },
          {
            "name": "tx_type",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tx Type"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 200,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/wallet/platform/stats": {
      "get": {
        "tags": [
          "agent-wallet"
        ],
        "summary": "Wallet Platform Stats",
        "description": "Public wallet platform statistics.",
        "operationId": "wallet_platform_stats_api_v1_wallet_platform_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/deploy/templates": {
      "get": {
        "tags": [
          "agent-deploy"
        ],
        "summary": "List Agent Templates",
        "description": "List available agent deployment templates.",
        "operationId": "list_agent_templates_api_v1_deploy_templates_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/deploy/templates/{template_id}/preview": {
      "get": {
        "tags": [
          "agent-deploy"
        ],
        "summary": "Preview Template",
        "description": "Preview template files before deploying.",
        "operationId": "preview_template_api_v1_deploy_templates__template_id__preview_get",
        "parameters": [
          {
            "name": "template_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Template Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/deploy/template": {
      "post": {
        "tags": [
          "agent-deploy"
        ],
        "summary": "Deploy From Template",
        "description": "Deploy an agent from a template \u2014 one click.",
        "operationId": "deploy_from_template_api_v1_deploy_template_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeployFromTemplateReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/deploy/git": {
      "post": {
        "tags": [
          "agent-deploy"
        ],
        "summary": "Deploy From Git",
        "description": "Deploy an agent from a GitHub repository.",
        "operationId": "deploy_from_git_api_v1_deploy_git_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeployFromGitReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/deploy/status/{deployment_id}": {
      "get": {
        "tags": [
          "agent-deploy"
        ],
        "summary": "Deployment Status",
        "description": "Check deployment status.",
        "operationId": "deployment_status_api_v1_deploy_status__deployment_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "deployment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Deployment Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/deploy/list": {
      "get": {
        "tags": [
          "agent-deploy"
        ],
        "summary": "List Deployments",
        "description": "List all deployments.",
        "operationId": "list_deployments_api_v1_deploy_list_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/deploy/{deployment_id}": {
      "delete": {
        "tags": [
          "agent-deploy"
        ],
        "summary": "Destroy Deployment",
        "description": "Destroy a deployment.",
        "operationId": "destroy_deployment_api_v1_deploy__deployment_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "deployment_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Deployment Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/deploy/stats": {
      "get": {
        "tags": [
          "agent-deploy"
        ],
        "summary": "Deploy Stats",
        "description": "Public deployment statistics.",
        "operationId": "deploy_stats_api_v1_deploy_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/register": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Register Gpu Node",
        "operationId": "register_gpu_node_api_v1_gpu_register_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GpuRegisterReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/heartbeat": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Gpu Heartbeat",
        "operationId": "gpu_heartbeat_api_v1_gpu_heartbeat_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GpuHeartbeatReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/nodes": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "List Gpu Nodes",
        "operationId": "list_gpu_nodes_api_v1_gpu_nodes_get",
        "parameters": [
          {
            "name": "region",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Region"
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "name": "tier",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tier"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/nodes/{node_id}": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Get Gpu Node",
        "operationId": "get_gpu_node_api_v1_gpu_nodes__node_id__get",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/models": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "List Gpu Models",
        "operationId": "list_gpu_models_api_v1_gpu_models_get",
        "parameters": [
          {
            "name": "tier",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Tier"
            }
          },
          {
            "name": "category",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Category"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/models/{model_id}/providers": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Get Model Providers",
        "operationId": "get_model_providers_api_v1_gpu_models__model_id__providers_get",
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Model Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/stats": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Gpu Stats",
        "operationId": "gpu_stats_api_v1_gpu_stats_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/nodes/{node_id}/monitoring": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Get Node Monitoring",
        "description": "Get monitoring history for a node. hours=1/6/24/168.",
        "operationId": "get_node_monitoring_api_v1_gpu_nodes__node_id__monitoring_get",
        "parameters": [
          {
            "name": "node_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Node Id"
            }
          },
          {
            "name": "hours",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1,
              "title": "Hours"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/admin/seed-model": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Seed Gpu Model",
        "description": "Admin-only: add model to registry.",
        "operationId": "seed_gpu_model_api_v1_gpu_admin_seed_model_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GpuModelSeedReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/inference": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Gpu Inference",
        "operationId": "gpu_inference_api_v1_gpu_inference_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InferenceReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/models/{model_id}": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Get Gpu Model",
        "description": "Get full model details including download URL.",
        "operationId": "get_gpu_model_api_v1_gpu_models__model_id__get",
        "parameters": [
          {
            "name": "model_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Model Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/nodes/model-action": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Node Model Action",
        "description": "Node requests model download info or unloads a model.",
        "operationId": "node_model_action_api_v1_gpu_nodes_model_action_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NodeModelActionReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/inference/v2": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Gpu Inference V2",
        "description": "Inference with smart routing and auto-failover.",
        "operationId": "gpu_inference_v2_api_v1_gpu_inference_v2_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InferenceReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/inference/billed": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Gpu Inference Billed",
        "description": "Inference with full billing \u2014 deducts from caller wallet, credits provider.",
        "operationId": "gpu_inference_billed_api_v1_gpu_inference_billed_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InferenceReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/agent/complete": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Agent Gpu Complete",
        "description": "Simplified GPU inference for deployed agents. Auto-selects cheapest model if 'auto'.",
        "operationId": "agent_gpu_complete_api_v1_gpu_agent_complete_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentGpuCallReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/agent/models": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Agent Available Models",
        "description": "List models currently available for agents (loaded on at least one online node).",
        "operationId": "agent_available_models_api_v1_gpu_agent_models_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/inference/stream": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Gpu Inference Stream",
        "description": "Streaming inference \u2014 returns SSE stream.",
        "operationId": "gpu_inference_stream_api_v1_gpu_inference_stream_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InferenceReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/inference/batch": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Gpu Inference Batch",
        "description": "Process multiple inference requests. Max 10 per batch.",
        "operationId": "gpu_inference_batch_api_v1_gpu_inference_batch_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BatchInferenceReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/training/create": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Create Training Job",
        "description": "Create a fine-tuning job. Assigns to best available GPU node.",
        "operationId": "create_training_job_api_v1_gpu_training_create_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTrainingJobReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/training/jobs": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "List Training Jobs",
        "description": "List all training jobs.",
        "operationId": "list_training_jobs_api_v1_gpu_training_jobs_get",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/training/jobs/{job_id}": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Get Training Job",
        "description": "Get training job details + logs.",
        "operationId": "get_training_job_api_v1_gpu_training_jobs__job_id__get",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Job Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Cancel Training Job",
        "description": "Cancel a pending/running training job.",
        "operationId": "cancel_training_job_api_v1_gpu_training_jobs__job_id__delete",
        "parameters": [
          {
            "name": "job_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Job Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/training/log": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Submit Training Log",
        "description": "GPU node submits training progress log.",
        "operationId": "submit_training_log_api_v1_gpu_training_log_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingLogReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/training/update": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Update Training Job",
        "description": "GPU node updates training job status (running/completed/failed).",
        "operationId": "update_training_job_api_v1_gpu_training_update_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTrainingJobReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/rent": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Rent Gpu Node",
        "description": "Start renting a GPU node. Charges hourly from user's credit balance.",
        "operationId": "rent_gpu_node_api_v1_gpu_rent_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RentGpuReq"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/api/v1/gpu/rentals": {
      "get": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "List Rentals",
        "description": "List user's GPU rentals.",
        "operationId": "list_rentals_api_v1_gpu_rentals_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/rentals/{rental_id}": {
      "delete": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Stop Rental",
        "description": "Stop an active GPU rental. Final partial-hour billing applied.",
        "operationId": "stop_rental_api_v1_gpu_rentals__rental_id__delete",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "rental_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Rental Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/gpu/rentals/bill-tick": {
      "post": {
        "tags": [
          "gpu-marketplace"
        ],
        "summary": "Rental Billing Tick",
        "operationId": "rental_billing_tick_api_v1_gpu_rentals_bill_tick_post",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/": {
      "get": {
        "summary": "Root",
        "operationId": "root__get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          }
        }
      }
    },
    "/api/v1/browser/{path}": {
      "post": {
        "summary": "Browser Proxy",
        "operationId": "browser_proxy_api_v1_browser__path__post",
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Path"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "get": {
        "summary": "Browser Proxy",
        "operationId": "browser_proxy_api_v1_browser__path__post",
        "parameters": [
          {
            "name": "path",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Path"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {}
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AddRuleReq": {
        "properties": {
          "countries": {
            "type": "string",
            "title": "Countries"
          },
          "origin": {
            "type": "string",
            "title": "Origin"
          },
          "weight": {
            "type": "integer",
            "title": "Weight",
            "default": 100
          },
          "variant_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Variant Name"
          }
        },
        "type": "object",
        "required": [
          "countries",
          "origin"
        ],
        "title": "AddRuleReq"
      },
      "AgentGpuCallReq": {
        "properties": {
          "prompt": {
            "type": "string",
            "title": "Prompt"
          },
          "model": {
            "type": "string",
            "title": "Model",
            "default": "auto"
          },
          "system_prompt": {
            "type": "string",
            "title": "System Prompt",
            "default": ""
          },
          "max_tokens": {
            "type": "integer",
            "title": "Max Tokens",
            "default": 512
          },
          "temperature": {
            "type": "number",
            "title": "Temperature",
            "default": 0.7
          },
          "payment_token": {
            "type": "string",
            "title": "Payment Token",
            "default": "USDC"
          }
        },
        "type": "object",
        "required": [
          "prompt"
        ],
        "title": "AgentGpuCallReq",
        "description": "Agent calls GPU model \u2014 simplified interface for deployed agents."
      },
      "AgentHeartbeat": {
        "properties": {
          "node_id": {
            "type": "string",
            "title": "Node Id"
          },
          "available_vcpus": {
            "type": "integer",
            "title": "Available Vcpus",
            "default": 0
          },
          "available_ram_mb": {
            "type": "integer",
            "title": "Available Ram Mb",
            "default": 0
          },
          "available_disk_gb": {
            "type": "integer",
            "title": "Available Disk Gb",
            "default": 0
          },
          "running_instances": {
            "type": "integer",
            "title": "Running Instances",
            "default": 0
          },
          "challenge_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Challenge Response"
          },
          "challenge_nonce": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Challenge Nonce"
          },
          "audit_response": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Audit Response"
          },
          "attestation": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Attestation"
          }
        },
        "type": "object",
        "required": [
          "node_id"
        ],
        "title": "AgentHeartbeat"
      },
      "AgentReport": {
        "properties": {
          "instance_id": {
            "type": "string",
            "title": "Instance Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "container_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Container Id"
          },
          "image_digest": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Digest"
          },
          "ssh_port": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ssh Port"
          }
        },
        "type": "object",
        "required": [
          "instance_id",
          "status"
        ],
        "title": "AgentReport"
      },
      "AgentShutdown": {
        "properties": {
          "node_id": {
            "type": "string",
            "title": "Node Id"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "default": "shutting_down"
          }
        },
        "type": "object",
        "required": [
          "node_id"
        ],
        "title": "AgentShutdown"
      },
      "AioCheckoutReq": {
        "properties": {
          "bundle": {
            "type": "string",
            "title": "Bundle"
          }
        },
        "type": "object",
        "required": [
          "bundle"
        ],
        "title": "AioCheckoutReq"
      },
      "AioCreditReq": {
        "properties": {
          "bundle": {
            "type": "string",
            "title": "Bundle"
          }
        },
        "type": "object",
        "required": [
          "bundle"
        ],
        "title": "AioCreditReq"
      },
      "AlertPolicyUpdate": {
        "properties": {
          "alert_type": {
            "type": "string",
            "title": "Alert Type"
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "alert_type",
          "enabled"
        ],
        "title": "AlertPolicyUpdate"
      },
      "ApiTokenCreate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scopes",
            "default": []
          },
          "ip_filter": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip Filter"
          },
          "expires_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires Days"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ApiTokenCreate"
      },
      "AuthStartReq": {
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          }
        },
        "type": "object",
        "title": "AuthStartReq"
      },
      "BanNodeReq": {
        "properties": {
          "reason": {
            "type": "string",
            "title": "Reason"
          },
          "duration_hours": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duration Hours"
          }
        },
        "type": "object",
        "required": [
          "reason"
        ],
        "title": "BanNodeReq"
      },
      "BatchInferenceReq": {
        "properties": {
          "requests": {
            "items": {},
            "type": "array",
            "title": "Requests"
          },
          "payment_token": {
            "type": "string",
            "title": "Payment Token",
            "default": "USDC"
          }
        },
        "type": "object",
        "required": [
          "requests"
        ],
        "title": "BatchInferenceReq",
        "description": "Multiple inference requests in one call."
      },
      "BulkGrantRequest": {
        "properties": {
          "user_ids": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "User Ids"
          },
          "amount": {
            "type": "number",
            "maximum": 10000.0,
            "exclusiveMinimum": 0.0,
            "title": "Amount"
          },
          "campaign": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Campaign"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "expires_in_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 365.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Days"
          }
        },
        "type": "object",
        "required": [
          "user_ids",
          "amount"
        ],
        "title": "BulkGrantRequest"
      },
      "CacheRuleCreate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "match_pattern": {
            "type": "string",
            "title": "Match Pattern"
          },
          "action": {
            "type": "string",
            "title": "Action",
            "default": "cache"
          },
          "ttl": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ttl"
          }
        },
        "type": "object",
        "required": [
          "name",
          "match_pattern"
        ],
        "title": "CacheRuleCreate"
      },
      "CallAgentReq": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message"
          },
          "params": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Params"
          },
          "payment_token": {
            "type": "string",
            "title": "Payment Token",
            "default": "USDC"
          },
          "max_payment_usd": {
            "type": "number",
            "title": "Max Payment Usd",
            "default": 1.0
          },
          "callback_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Callback Url"
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "CallAgentReq"
      },
      "CfCredentials": {
        "properties": {
          "api_token": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Token"
          },
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          }
        },
        "type": "object",
        "title": "CfCredentials"
      },
      "ChangeEmailReq": {
        "properties": {
          "new_email": {
            "type": "string",
            "title": "New Email"
          },
          "totp_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Totp Code"
          },
          "sms_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sms Code"
          }
        },
        "type": "object",
        "required": [
          "new_email"
        ],
        "title": "ChangeEmailReq"
      },
      "ChangePasswordReq": {
        "properties": {
          "current_password": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Current Password"
          },
          "new_password": {
            "type": "string",
            "title": "New Password"
          },
          "totp_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Totp Code"
          }
        },
        "type": "object",
        "required": [
          "new_password"
        ],
        "title": "ChangePasswordReq"
      },
      "ChatReq": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message"
          },
          "conversation": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Conversation"
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "ChatReq"
      },
      "ClusterCreateReq": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "cluster_type": {
            "type": "string",
            "title": "Cluster Type",
            "default": "general"
          },
          "gpu_type": {
            "type": "string",
            "title": "Gpu Type",
            "default": "any"
          },
          "min_gpus": {
            "type": "integer",
            "maximum": 32.0,
            "minimum": 2.0,
            "title": "Min Gpus",
            "default": 2
          },
          "max_gpus": {
            "type": "integer",
            "maximum": 64.0,
            "minimum": 2.0,
            "title": "Max Gpus",
            "default": 4
          },
          "region": {
            "type": "string",
            "title": "Region",
            "default": "any"
          },
          "autoscale": {
            "type": "boolean",
            "title": "Autoscale",
            "default": true
          },
          "autoscale_config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Autoscale Config",
            "default": {}
          },
          "networking_config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Networking Config",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ClusterCreateReq"
      },
      "ClusterScaleReq": {
        "properties": {
          "delta": {
            "type": "integer",
            "maximum": 10.0,
            "minimum": -10.0,
            "title": "Delta"
          }
        },
        "type": "object",
        "required": [
          "delta"
        ],
        "title": "ClusterScaleReq"
      },
      "ContactReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "company": {
            "type": "string",
            "title": "Company",
            "default": ""
          },
          "needs": {
            "type": "string",
            "title": "Needs",
            "default": ""
          },
          "message": {
            "type": "string",
            "title": "Message",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "name",
          "email"
        ],
        "title": "ContactReq"
      },
      "ContactSalesReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "company": {
            "type": "string",
            "title": "Company",
            "default": ""
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "captcha_answer": {
            "type": "integer",
            "title": "Captcha Answer"
          },
          "captcha_token": {
            "type": "string",
            "title": "Captcha Token"
          },
          "website": {
            "type": "string",
            "title": "Website",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "name",
          "email",
          "message",
          "captcha_answer",
          "captcha_token"
        ],
        "title": "ContactSalesReq"
      },
      "CoordHeartbeat": {
        "properties": {
          "coordinator_id": {
            "type": "string",
            "title": "Coordinator Id"
          },
          "region": {
            "type": "string",
            "title": "Region"
          },
          "role": {
            "type": "string",
            "title": "Role"
          },
          "wal_sequence": {
            "type": "integer",
            "title": "Wal Sequence"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "is_genesis": {
            "type": "boolean",
            "title": "Is Genesis",
            "default": false
          },
          "timestamp": {
            "type": "string",
            "title": "Timestamp"
          }
        },
        "type": "object",
        "required": [
          "coordinator_id",
          "region",
          "role",
          "wal_sequence",
          "status",
          "timestamp"
        ],
        "title": "CoordHeartbeat"
      },
      "CreateAgentReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "default": ""
          },
          "model": {
            "type": "string",
            "title": "Model",
            "default": "openai/gpt-4"
          },
          "system_prompt": {
            "type": "string",
            "title": "System Prompt",
            "default": "You are a helpful assistant."
          },
          "max_tokens": {
            "type": "integer",
            "title": "Max Tokens",
            "default": 4096
          },
          "temperature": {
            "type": "number",
            "title": "Temperature",
            "default": 0.7
          },
          "skills": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Skills",
            "default": []
          },
          "config": {
            "additionalProperties": true,
            "type": "object",
            "title": "Config",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "CreateAgentReq"
      },
      "CreateBucket": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "plan": {
            "type": "string",
            "title": "Plan",
            "default": "basic"
          },
          "region": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "public_read": {
            "type": "boolean",
            "title": "Public Read",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "CreateBucket"
      },
      "CreateDB": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "plan": {
            "type": "string",
            "title": "Plan",
            "default": "mini"
          },
          "version": {
            "type": "string",
            "title": "Version",
            "default": "16"
          },
          "region": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "db_name": {
            "type": "string",
            "title": "Db Name",
            "default": "userdb"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "CreateDB"
      },
      "CreateFunctionReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "runtime": {
            "type": "string",
            "title": "Runtime",
            "default": "nodejs"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "route_pattern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Route Pattern"
          },
          "domain_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Domain Id"
          },
          "env_vars": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Env Vars"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "CreateFunctionReq"
      },
      "CreateInstanceReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "plan": {
            "type": "string",
            "title": "Plan"
          },
          "image": {
            "type": "string",
            "title": "Image",
            "default": "ubuntu-22.04"
          },
          "region": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "redundant": {
            "type": "boolean",
            "title": "Redundant",
            "default": false
          },
          "cpu_type": {
            "type": "string",
            "title": "Cpu Type",
            "default": "shared"
          },
          "ssh_keys": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ssh Keys"
          }
        },
        "type": "object",
        "required": [
          "name",
          "plan"
        ],
        "title": "CreateInstanceReq"
      },
      "CreateMonitorReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "check_type": {
            "type": "string",
            "title": "Check Type",
            "default": "https"
          },
          "interval_seconds": {
            "type": "integer",
            "title": "Interval Seconds",
            "default": 60
          },
          "timeout_seconds": {
            "type": "integer",
            "title": "Timeout Seconds",
            "default": 10
          },
          "expected_status": {
            "type": "integer",
            "title": "Expected Status",
            "default": 200
          },
          "alert_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alert Email"
          },
          "alert_webhook": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alert Webhook"
          }
        },
        "type": "object",
        "required": [
          "name",
          "url"
        ],
        "title": "CreateMonitorReq"
      },
      "CreatePromoCodeReq": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 32,
            "minLength": 3,
            "title": "Code"
          },
          "credit_amount": {
            "type": "number",
            "maximum": 10000.0,
            "exclusiveMinimum": 0.0,
            "title": "Credit Amount"
          },
          "campaign": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Campaign"
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Uses"
          },
          "per_user_limit": {
            "type": "integer",
            "maximum": 10.0,
            "minimum": 1.0,
            "title": "Per User Limit",
            "default": 1
          },
          "expires_in_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 365.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Days"
          },
          "credit_expires_in_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 365.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Credit Expires In Days"
          }
        },
        "type": "object",
        "required": [
          "code",
          "credit_amount"
        ],
        "title": "CreatePromoCodeReq"
      },
      "CreateResellerReq": {
        "properties": {
          "user_id": {
            "type": "string",
            "title": "User Id"
          },
          "tier": {
            "type": "string",
            "title": "Tier",
            "default": "base"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          }
        },
        "type": "object",
        "required": [
          "user_id"
        ],
        "title": "CreateResellerReq"
      },
      "CreateRouteReq": {
        "properties": {
          "domain_name": {
            "type": "string",
            "title": "Domain Name"
          },
          "source_address": {
            "type": "string",
            "title": "Source Address"
          },
          "destination": {
            "type": "string",
            "title": "Destination"
          }
        },
        "type": "object",
        "required": [
          "domain_name",
          "source_address",
          "destination"
        ],
        "title": "CreateRouteReq"
      },
      "CreateStatusPage": {
        "properties": {
          "title": {
            "type": "string",
            "title": "Title"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description",
            "default": ""
          },
          "monitor_ids": {
            "items": {},
            "type": "array",
            "title": "Monitor Ids",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "title",
          "slug"
        ],
        "title": "CreateStatusPage"
      },
      "CreateTestReq": {
        "properties": {
          "domain_name": {
            "type": "string",
            "title": "Domain Name"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "default_origin": {
            "type": "string",
            "title": "Default Origin"
          },
          "rules": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Rules",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "domain_name",
          "name",
          "default_origin"
        ],
        "title": "CreateTestReq"
      },
      "CreateTokenReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "scopes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Scopes",
            "default": [
              "domains:read",
              "analytics:read"
            ]
          },
          "ip_filter": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip Filter"
          },
          "expires_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires Days"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "CreateTokenReq"
      },
      "CreateTrainingJobReq": {
        "properties": {
          "base_model": {
            "type": "string",
            "title": "Base Model"
          },
          "job_name": {
            "type": "string",
            "title": "Job Name"
          },
          "dataset_url": {
            "type": "string",
            "title": "Dataset Url"
          },
          "epochs": {
            "type": "integer",
            "title": "Epochs",
            "default": 3
          },
          "batch_size": {
            "type": "integer",
            "title": "Batch Size",
            "default": 4
          },
          "learning_rate": {
            "type": "number",
            "title": "Learning Rate",
            "default": 0.0002
          },
          "output_model_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output Model Id"
          },
          "region": {
            "type": "string",
            "title": "Region",
            "default": "auto"
          },
          "payment_token": {
            "type": "string",
            "title": "Payment Token",
            "default": "USDC"
          }
        },
        "type": "object",
        "required": [
          "base_model",
          "job_name",
          "dataset_url"
        ],
        "title": "CreateTrainingJobReq"
      },
      "CreateWalletReq": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id"
          }
        },
        "type": "object",
        "required": [
          "agent_id"
        ],
        "title": "CreateWalletReq"
      },
      "CreditBuyReq": {
        "properties": {
          "amount_usd": {
            "type": "number",
            "maximum": 10000.0,
            "minimum": 5.0,
            "title": "Amount Usd"
          },
          "payment_method": {
            "type": "string",
            "title": "Payment Method",
            "default": "stripe"
          }
        },
        "type": "object",
        "required": [
          "amount_usd"
        ],
        "title": "CreditBuyReq"
      },
      "CreditPayReq": {
        "properties": {
          "plan": {
            "type": "string",
            "title": "Plan"
          }
        },
        "type": "object",
        "required": [
          "plan"
        ],
        "title": "CreditPayReq"
      },
      "CryptoPayReq": {
        "properties": {
          "plan": {
            "type": "string",
            "title": "Plan"
          },
          "tx_hash": {
            "type": "string",
            "title": "Tx Hash"
          }
        },
        "type": "object",
        "required": [
          "plan",
          "tx_hash"
        ],
        "title": "CryptoPayReq"
      },
      "DBAgentReport": {
        "properties": {
          "db_id": {
            "type": "string",
            "title": "Db Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "type": {
            "type": "string",
            "title": "Type",
            "default": "database"
          },
          "container_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Container Id"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          }
        },
        "type": "object",
        "required": [
          "db_id",
          "status"
        ],
        "title": "DBAgentReport"
      },
      "DeleteAccountReq": {
        "properties": {
          "password": {
            "type": "string",
            "title": "Password"
          },
          "confirm": {
            "type": "string",
            "title": "Confirm",
            "default": "DELETE"
          },
          "totp_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Totp Code"
          }
        },
        "type": "object",
        "required": [
          "password"
        ],
        "title": "DeleteAccountReq"
      },
      "DeletePasskeyReq": {
        "properties": {
          "credential_id": {
            "type": "string",
            "title": "Credential Id"
          }
        },
        "type": "object",
        "required": [
          "credential_id"
        ],
        "title": "DeletePasskeyReq"
      },
      "DeployFromGitReq": {
        "properties": {
          "repo_url": {
            "type": "string",
            "title": "Repo Url"
          },
          "branch": {
            "type": "string",
            "title": "Branch",
            "default": "main"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "default": ""
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Capabilities",
            "default": [
              "general"
            ]
          },
          "pricing_per_request": {
            "type": "number",
            "title": "Pricing Per Request",
            "default": 0.01
          },
          "region": {
            "type": "string",
            "title": "Region",
            "default": "auto"
          },
          "env_vars": {
            "additionalProperties": true,
            "type": "object",
            "title": "Env Vars",
            "default": {}
          },
          "auto_publish": {
            "type": "boolean",
            "title": "Auto Publish",
            "default": true
          },
          "dockerfile_path": {
            "type": "string",
            "title": "Dockerfile Path",
            "default": "Dockerfile"
          }
        },
        "type": "object",
        "required": [
          "repo_url",
          "name",
          "slug"
        ],
        "title": "DeployFromGitReq"
      },
      "DeployFromTemplateReq": {
        "properties": {
          "template": {
            "type": "string",
            "title": "Template"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "default": ""
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Capabilities",
            "default": [
              "general"
            ]
          },
          "pricing_per_request": {
            "type": "number",
            "title": "Pricing Per Request",
            "default": 0.01
          },
          "region": {
            "type": "string",
            "title": "Region",
            "default": "auto"
          },
          "env_vars": {
            "additionalProperties": true,
            "type": "object",
            "title": "Env Vars",
            "default": {}
          },
          "auto_publish": {
            "type": "boolean",
            "title": "Auto Publish",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "template",
          "name",
          "slug"
        ],
        "title": "DeployFromTemplateReq"
      },
      "DeployFunction": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "runtime": {
            "type": "string",
            "title": "Runtime",
            "default": "nodejs"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "entry_point": {
            "type": "string",
            "title": "Entry Point",
            "default": "handler"
          },
          "route_pattern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Route Pattern"
          },
          "env_vars": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Env Vars"
          },
          "region": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Region"
          },
          "plan": {
            "type": "string",
            "title": "Plan",
            "default": "free"
          }
        },
        "type": "object",
        "required": [
          "name",
          "code"
        ],
        "title": "DeployFunction"
      },
      "DepositConfirmReq": {
        "properties": {
          "wallet_id": {
            "type": "string",
            "title": "Wallet Id"
          },
          "token": {
            "type": "string",
            "title": "Token"
          },
          "chain": {
            "type": "string",
            "title": "Chain"
          },
          "tx_hash": {
            "type": "string",
            "title": "Tx Hash"
          },
          "amount": {
            "type": "number",
            "title": "Amount"
          }
        },
        "type": "object",
        "required": [
          "wallet_id",
          "token",
          "chain",
          "tx_hash",
          "amount"
        ],
        "title": "DepositConfirmReq"
      },
      "DnsRecordCreate": {
        "properties": {
          "record_type": {
            "type": "string",
            "title": "Record Type"
          },
          "name": {
            "type": "string",
            "title": "Name"
          },
          "content": {
            "type": "string",
            "title": "Content"
          },
          "ttl": {
            "type": "integer",
            "title": "Ttl",
            "default": 300
          },
          "priority": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Priority"
          },
          "proxied": {
            "type": "boolean",
            "title": "Proxied",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "record_type",
          "name",
          "content"
        ],
        "title": "DnsRecordCreate"
      },
      "DomainCreate": {
        "properties": {
          "domain": {
            "type": "string",
            "title": "Domain"
          },
          "origin_ip": {
            "type": "string",
            "title": "Origin Ip"
          },
          "origin_port": {
            "type": "integer",
            "title": "Origin Port",
            "default": 443
          },
          "ssl_mode": {
            "type": "string",
            "title": "Ssl Mode",
            "default": "full_strict"
          }
        },
        "type": "object",
        "required": [
          "domain",
          "origin_ip"
        ],
        "title": "DomainCreate"
      },
      "DomainUpdate": {
        "properties": {
          "ssl_mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ssl Mode"
          },
          "hsts_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hsts Enabled"
          },
          "hsts_subdomains": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hsts Subdomains"
          },
          "hsts_nosniff": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hsts Nosniff"
          },
          "min_tls": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Tls"
          },
          "https_rewrite": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Https Rewrite"
          },
          "cache_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cache Level"
          },
          "browser_ttl": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Browser Ttl"
          },
          "edge_ttl": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Edge Ttl"
          },
          "dev_mode": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Dev Mode"
          },
          "minify_js": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minify Js"
          },
          "minify_css": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minify Css"
          },
          "minify_html": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Minify Html"
          },
          "brotli": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Brotli"
          },
          "early_hints": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Early Hints"
          },
          "webp": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Webp"
          },
          "image_polish": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Image Polish"
          },
          "rocket_loader": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rocket Loader"
          },
          "http2": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Http2"
          },
          "http3": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Http3"
          },
          "websocket": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Websocket"
          },
          "grpc": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Grpc"
          },
          "zero_rtt": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Zero Rtt"
          },
          "ip_geolocation": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip Geolocation"
          },
          "max_upload_mb": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Upload Mb"
          },
          "waf_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waf Enabled"
          },
          "waf_paranoia": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waf Paranoia"
          },
          "waf_owasp": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waf Owasp"
          },
          "waf_managed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waf Managed"
          },
          "waf_leak_check": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Waf Leak Check"
          },
          "under_attack": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Under Attack"
          },
          "security_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Security Level"
          },
          "challenge_ttl": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Challenge Ttl"
          },
          "bot_fight": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bot Fight"
          },
          "super_bot_fight": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Super Bot Fight"
          },
          "bot_score_1_10": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bot Score 1 10"
          },
          "bot_score_11_30": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bot Score 11 30"
          },
          "bot_score_31_99": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bot Score 31 99"
          },
          "email_obfuscation": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email Obfuscation"
          },
          "hotlink_protection": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hotlink Protection"
          },
          "hotlink_referers": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Hotlink Referers"
          },
          "sse_enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sse Enabled"
          },
          "disable_right_click": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disable Right Click"
          },
          "disable_text_select": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disable Text Select"
          },
          "disable_view_source": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disable View Source"
          },
          "http_ddos": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Http Ddos"
          },
          "l34_ddos": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "L34 Ddos"
          },
          "tcp_protection": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tcp Protection"
          },
          "always_online": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Always Online"
          },
          "browser_integrity": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Browser Integrity"
          },
          "privacy_pass": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Privacy Pass"
          }
        },
        "type": "object",
        "title": "DomainUpdate",
        "description": "Any domain field can be updated."
      },
      "EnableCRReq": {
        "properties": {
          "domain_name": {
            "type": "string",
            "title": "Domain Name"
          },
          "multi_node_redundancy": {
            "type": "boolean",
            "title": "Multi Node Redundancy",
            "default": true
          },
          "dns_fallback": {
            "type": "boolean",
            "title": "Dns Fallback",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "domain_name"
        ],
        "title": "EnableCRReq"
      },
      "FirewallRuleCreate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "expression": {
            "type": "string",
            "title": "Expression"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "priority": {
            "type": "integer",
            "title": "Priority",
            "default": 0
          },
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "name",
          "expression",
          "action"
        ],
        "title": "FirewallRuleCreate"
      },
      "ForgotPasswordReq": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "ForgotPasswordReq"
      },
      "GoogleAuthReq": {
        "properties": {
          "credential": {
            "type": "string",
            "title": "Credential"
          }
        },
        "type": "object",
        "required": [
          "credential"
        ],
        "title": "GoogleAuthReq"
      },
      "GpuHeartbeatReq": {
        "properties": {
          "node_key": {
            "type": "string",
            "title": "Node Key"
          },
          "status": {
            "type": "string",
            "title": "Status",
            "default": "online"
          },
          "gpu_utilization": {
            "type": "number",
            "title": "Gpu Utilization",
            "default": 0
          },
          "vram_used_gb": {
            "type": "number",
            "title": "Vram Used Gb",
            "default": 0
          },
          "cpu_utilization": {
            "type": "number",
            "title": "Cpu Utilization",
            "default": 0
          },
          "ram_used_gb": {
            "type": "number",
            "title": "Ram Used Gb",
            "default": 0
          },
          "ram_total_gb": {
            "type": "number",
            "title": "Ram Total Gb",
            "default": 0
          },
          "net_up_mbps": {
            "type": "number",
            "title": "Net Up Mbps",
            "default": 0
          },
          "net_down_mbps": {
            "type": "number",
            "title": "Net Down Mbps",
            "default": 0
          },
          "loaded_models": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Loaded Models",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "node_key"
        ],
        "title": "GpuHeartbeatReq"
      },
      "GpuModelSeedReq": {
        "properties": {
          "model_id": {
            "type": "string",
            "title": "Model Id"
          },
          "display_name": {
            "type": "string",
            "title": "Display Name"
          },
          "family": {
            "type": "string",
            "title": "Family",
            "default": ""
          },
          "param_size": {
            "type": "string",
            "title": "Param Size",
            "default": ""
          },
          "quantization": {
            "type": "string",
            "title": "Quantization",
            "default": ""
          },
          "format": {
            "type": "string",
            "title": "Format",
            "default": "gguf"
          },
          "vram_required_gb": {
            "type": "number",
            "title": "Vram Required Gb",
            "default": 0
          },
          "disk_size_gb": {
            "type": "number",
            "title": "Disk Size Gb",
            "default": 0
          },
          "tier": {
            "type": "string",
            "title": "Tier",
            "default": "tier1"
          },
          "category": {
            "type": "string",
            "title": "Category",
            "default": "general"
          },
          "context_length": {
            "type": "integer",
            "title": "Context Length",
            "default": 4096
          },
          "download_url": {
            "type": "string",
            "title": "Download Url",
            "default": ""
          },
          "sha256": {
            "type": "string",
            "title": "Sha256",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "model_id",
          "display_name"
        ],
        "title": "GpuModelSeedReq"
      },
      "GpuRegisterReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "region": {
            "type": "string",
            "title": "Region",
            "default": "auto"
          },
          "gpu_model": {
            "type": "string",
            "title": "Gpu Model",
            "default": ""
          },
          "gpu_vram_gb": {
            "type": "number",
            "title": "Gpu Vram Gb",
            "default": 0
          },
          "gpu_compute_cap": {
            "type": "string",
            "title": "Gpu Compute Cap",
            "default": ""
          },
          "gpu_driver": {
            "type": "string",
            "title": "Gpu Driver",
            "default": ""
          },
          "cuda_version": {
            "type": "string",
            "title": "Cuda Version",
            "default": ""
          },
          "cpu_cores": {
            "type": "integer",
            "title": "Cpu Cores",
            "default": 0
          },
          "ram_gb": {
            "type": "number",
            "title": "Ram Gb",
            "default": 0
          },
          "disk_gb": {
            "type": "number",
            "title": "Disk Gb",
            "default": 0
          },
          "price_inference_1k": {
            "type": "number",
            "title": "Price Inference 1K",
            "default": 0.003
          },
          "price_gpu_hour": {
            "type": "number",
            "title": "Price Gpu Hour",
            "default": 0.5
          },
          "port": {
            "type": "integer",
            "title": "Port",
            "default": 8200
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "GpuRegisterReq"
      },
      "GrantCreditsRequest": {
        "properties": {
          "user_id": {
            "type": "string",
            "title": "User Id"
          },
          "amount": {
            "type": "number",
            "maximum": 10000.0,
            "exclusiveMinimum": 0.0,
            "title": "Amount",
            "description": "Credit amount (1 credit = 1 USD)"
          },
          "campaign": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Campaign"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "expires_in_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 365.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Days"
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "amount"
        ],
        "title": "GrantCreditsRequest"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "InferenceReq": {
        "properties": {
          "model": {
            "type": "string",
            "title": "Model"
          },
          "messages": {
            "items": {},
            "type": "array",
            "title": "Messages"
          },
          "max_tokens": {
            "type": "integer",
            "title": "Max Tokens",
            "default": 1024
          },
          "temperature": {
            "type": "number",
            "title": "Temperature",
            "default": 0.7
          },
          "stream": {
            "type": "boolean",
            "title": "Stream",
            "default": false
          },
          "region": {
            "type": "string",
            "title": "Region",
            "default": "auto"
          },
          "max_price_per_1k": {
            "type": "number",
            "title": "Max Price Per 1K",
            "default": 0.01
          },
          "payment_token": {
            "type": "string",
            "title": "Payment Token",
            "default": "USDC"
          }
        },
        "type": "object",
        "required": [
          "model",
          "messages"
        ],
        "title": "InferenceReq"
      },
      "InviteReq": {
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "title": "Email"
          },
          "role": {
            "type": "string",
            "title": "Role",
            "default": "viewer"
          }
        },
        "type": "object",
        "required": [
          "email"
        ],
        "title": "InviteReq"
      },
      "IpAccessRuleCreate": {
        "properties": {
          "value": {
            "type": "string",
            "title": "Value"
          },
          "rule_type": {
            "type": "string",
            "title": "Rule Type"
          },
          "action": {
            "type": "string",
            "title": "Action"
          },
          "scope": {
            "type": "string",
            "title": "Scope",
            "default": "all"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          }
        },
        "type": "object",
        "required": [
          "value",
          "rule_type",
          "action"
        ],
        "title": "IpAccessRuleCreate"
      },
      "LoginReq": {
        "properties": {
          "email": {
            "type": "string",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "title": "Password"
          },
          "totp_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Totp Code"
          },
          "sms_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sms Code"
          },
          "remember_me": {
            "type": "boolean",
            "title": "Remember Me",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "title": "LoginReq"
      },
      "LoginVerifyReq": {
        "properties": {
          "credential": {
            "additionalProperties": true,
            "type": "object",
            "title": "Credential"
          },
          "user_hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Hint"
          }
        },
        "type": "object",
        "required": [
          "credential"
        ],
        "title": "LoginVerifyReq"
      },
      "MigrateRequest": {
        "properties": {
          "cf": {
            "$ref": "#/components/schemas/CfCredentials"
          },
          "zone_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Zone Id"
          },
          "import_dns": {
            "type": "boolean",
            "title": "Import Dns",
            "default": true
          },
          "import_ssl": {
            "type": "boolean",
            "title": "Import Ssl",
            "default": true
          },
          "import_rules": {
            "type": "boolean",
            "title": "Import Rules",
            "default": true
          }
        },
        "type": "object",
        "required": [
          "cf"
        ],
        "title": "MigrateRequest"
      },
      "NodeHeartbeat": {
        "properties": {
          "node_id": {
            "type": "string",
            "title": "Node Id"
          },
          "cpu_percent": {
            "type": "number",
            "title": "Cpu Percent",
            "default": 0
          },
          "memory_percent": {
            "type": "number",
            "title": "Memory Percent",
            "default": 0
          },
          "requests_served": {
            "type": "integer",
            "title": "Requests Served",
            "default": 0
          },
          "bandwidth_mb": {
            "type": "number",
            "title": "Bandwidth Mb",
            "default": 0
          },
          "blocked_threats": {
            "type": "integer",
            "title": "Blocked Threats",
            "default": 0
          }
        },
        "type": "object",
        "required": [
          "node_id"
        ],
        "title": "NodeHeartbeat"
      },
      "NodeLoginReq": {
        "properties": {
          "email": {
            "type": "string",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "title": "Password"
          },
          "totp_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Totp Code"
          },
          "remember_me": {
            "type": "boolean",
            "title": "Remember Me",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "title": "NodeLoginReq"
      },
      "NodeModelActionReq": {
        "properties": {
          "node_key": {
            "type": "string",
            "title": "Node Key"
          },
          "model_id": {
            "type": "string",
            "title": "Model Id"
          },
          "action": {
            "type": "string",
            "title": "Action",
            "default": "download"
          }
        },
        "type": "object",
        "required": [
          "node_key",
          "model_id"
        ],
        "title": "NodeModelActionReq"
      },
      "NodeRegister": {
        "properties": {
          "node_id": {
            "type": "string",
            "title": "Node Id"
          },
          "region": {
            "type": "string",
            "title": "Region"
          },
          "ip": {
            "type": "string",
            "title": "Ip"
          },
          "port": {
            "type": "integer",
            "title": "Port",
            "default": 8080
          },
          "capacity_mbps": {
            "type": "integer",
            "title": "Capacity Mbps",
            "default": 1000
          }
        },
        "type": "object",
        "required": [
          "node_id",
          "region",
          "ip"
        ],
        "title": "NodeRegister"
      },
      "NodeRegisterReq": {
        "properties": {
          "email": {
            "type": "string",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "title": "Password"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "ip": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ip"
          },
          "wallet_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Wallet Address"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "title": "NodeRegisterReq"
      },
      "NominateReq": {
        "properties": {
          "candidate_node_id": {
            "type": "string",
            "title": "Candidate Node Id"
          }
        },
        "type": "object",
        "required": [
          "candidate_node_id"
        ],
        "title": "NominateReq"
      },
      "NotifChannelCreate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "channel_type": {
            "type": "string",
            "title": "Channel Type"
          },
          "destination": {
            "type": "string",
            "title": "Destination"
          }
        },
        "type": "object",
        "required": [
          "name",
          "channel_type",
          "destination"
        ],
        "title": "NotifChannelCreate"
      },
      "PageRuleCreate": {
        "properties": {
          "url_pattern": {
            "type": "string",
            "title": "Url Pattern"
          },
          "priority": {
            "type": "integer",
            "title": "Priority",
            "default": 0
          },
          "cache_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cache Level"
          },
          "edge_ttl": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Edge Ttl"
          },
          "ssl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Ssl"
          },
          "forwarding_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Forwarding Url"
          },
          "redirect_code": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Redirect Code"
          },
          "security_level": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Security Level"
          },
          "always_https": {
            "type": "boolean",
            "title": "Always Https",
            "default": false
          },
          "disable_perf": {
            "type": "boolean",
            "title": "Disable Perf",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "url_pattern"
        ],
        "title": "PageRuleCreate"
      },
      "PayoutRequest": {
        "properties": {
          "wallet_address": {
            "type": "string",
            "title": "Wallet Address"
          }
        },
        "type": "object",
        "required": [
          "wallet_address"
        ],
        "title": "PayoutRequest"
      },
      "ProcessPayoutReq": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          },
          "stripe_transfer_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stripe Transfer Id"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "ProcessPayoutReq"
      },
      "PublicChatReq": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message"
          },
          "conversation": {
            "items": {},
            "type": "array",
            "title": "Conversation",
            "default": []
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "PublicChatReq"
      },
      "PublishAgentReq": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id"
          },
          "slug": {
            "type": "string",
            "title": "Slug"
          },
          "tagline": {
            "type": "string",
            "title": "Tagline",
            "default": ""
          },
          "capabilities": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Capabilities",
            "default": []
          },
          "pricing_per_request": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pricing Per Request"
          },
          "pricing_per_token": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pricing Per Token"
          },
          "accepted_tokens": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Accepted Tokens",
            "default": [
              "ETH",
              "SOL",
              "USDC",
              "USDT",
              "DCDN"
            ]
          },
          "api_docs_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Docs Url"
          },
          "example_request": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example Request"
          },
          "example_response": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example Response"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "slug"
        ],
        "title": "PublishAgentReq"
      },
      "RateAgentReq": {
        "properties": {
          "listing_id": {
            "type": "string",
            "title": "Listing Id"
          },
          "transaction_id": {
            "type": "string",
            "title": "Transaction Id"
          },
          "rating": {
            "type": "integer",
            "title": "Rating"
          },
          "comment": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Comment"
          }
        },
        "type": "object",
        "required": [
          "listing_id",
          "transaction_id",
          "rating"
        ],
        "title": "RateAgentReq"
      },
      "RateLimitCreate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url_pattern": {
            "type": "string",
            "title": "Url Pattern",
            "default": "*"
          },
          "http_method": {
            "type": "string",
            "title": "Http Method",
            "default": "any"
          },
          "requests": {
            "type": "integer",
            "title": "Requests",
            "default": 100
          },
          "period_seconds": {
            "type": "integer",
            "title": "Period Seconds",
            "default": 60
          },
          "count_by": {
            "type": "string",
            "title": "Count By",
            "default": "ip"
          },
          "action": {
            "type": "string",
            "title": "Action",
            "default": "js_challenge"
          },
          "timeout_seconds": {
            "type": "integer",
            "title": "Timeout Seconds",
            "default": 300
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "RateLimitCreate"
      },
      "RedeemPromoReq": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 32,
            "minLength": 3,
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "RedeemPromoReq"
      },
      "RegisterReq": {
        "properties": {
          "referral_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Referral Code"
          },
          "email": {
            "type": "string",
            "title": "Email"
          },
          "password": {
            "type": "string",
            "title": "Password"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "account_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Account Type",
            "default": "personal"
          },
          "company_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Company Name"
          },
          "vat_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vat Id"
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Country"
          },
          "billing_address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Billing Address"
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "title": "RegisterReq"
      },
      "RegisterVerifyReq": {
        "properties": {
          "credential": {
            "additionalProperties": true,
            "type": "object",
            "title": "Credential"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name",
            "default": "Passkey"
          }
        },
        "type": "object",
        "required": [
          "credential"
        ],
        "title": "RegisterVerifyReq"
      },
      "ReleaseEscrowReq": {
        "properties": {
          "transaction_id": {
            "type": "string",
            "title": "Transaction Id"
          },
          "action": {
            "type": "string",
            "title": "Action"
          }
        },
        "type": "object",
        "required": [
          "transaction_id",
          "action"
        ],
        "title": "ReleaseEscrowReq"
      },
      "RentGpuReq": {
        "properties": {
          "node_id": {
            "type": "string",
            "title": "Node Id"
          },
          "payment_token": {
            "type": "string",
            "title": "Payment Token",
            "default": "DCDN"
          }
        },
        "type": "object",
        "required": [
          "node_id"
        ],
        "title": "RentGpuReq"
      },
      "ResellerCreatePromoReq": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 32,
            "minLength": 3,
            "title": "Code"
          },
          "credit_amount": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Credit Amount"
          },
          "max_uses": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Uses"
          },
          "expires_in_days": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 365.0,
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires In Days"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "ResellerCreatePromoReq",
        "description": "Reseller creates a promo code for their customers."
      },
      "ResetPasswordReq2": {
        "properties": {
          "token": {
            "type": "string",
            "title": "Token"
          },
          "new_password": {
            "type": "string",
            "title": "New Password"
          },
          "totp_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Totp Code"
          }
        },
        "type": "object",
        "required": [
          "token",
          "new_password"
        ],
        "title": "ResetPasswordReq2"
      },
      "RevokeCreditsRequest": {
        "properties": {
          "user_id": {
            "type": "string",
            "title": "User Id"
          },
          "amount": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Amount"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "user_id"
        ],
        "title": "RevokeCreditsRequest"
      },
      "RunAgentReq": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message"
          },
          "conversation_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Conversation Id"
          },
          "include_memory": {
            "type": "boolean",
            "title": "Include Memory",
            "default": true
          },
          "api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Key"
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "RunAgentReq"
      },
      "SetCommissionReq": {
        "properties": {
          "commission_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commission Pct"
          }
        },
        "type": "object",
        "title": "SetCommissionReq"
      },
      "SetStatusReq": {
        "properties": {
          "status": {
            "type": "string",
            "title": "Status"
          }
        },
        "type": "object",
        "required": [
          "status"
        ],
        "title": "SetStatusReq"
      },
      "SmsSetupReq": {
        "properties": {
          "phone": {
            "type": "string",
            "title": "Phone"
          }
        },
        "type": "object",
        "required": [
          "phone"
        ],
        "title": "SmsSetupReq"
      },
      "SmsVerifyReq": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "SmsVerifyReq"
      },
      "SshKeyCreateReq": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          },
          "public_key": {
            "type": "string",
            "maxLength": 4096,
            "minLength": 20,
            "title": "Public Key"
          }
        },
        "type": "object",
        "required": [
          "name",
          "public_key"
        ],
        "title": "SshKeyCreateReq"
      },
      "SshKeyUpdateReq": {
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100,
            "minLength": 1,
            "title": "Name"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "SshKeyUpdateReq"
      },
      "StripeCheckoutReq": {
        "properties": {
          "plan": {
            "type": "string",
            "title": "Plan"
          }
        },
        "type": "object",
        "required": [
          "plan"
        ],
        "title": "StripeCheckoutReq"
      },
      "TicketCreateReq": {
        "properties": {
          "subject": {
            "type": "string",
            "title": "Subject"
          },
          "message": {
            "type": "string",
            "title": "Message"
          },
          "category": {
            "type": "string",
            "title": "Category",
            "default": "general"
          },
          "priority": {
            "type": "string",
            "title": "Priority",
            "default": "normal"
          }
        },
        "type": "object",
        "required": [
          "subject",
          "message"
        ],
        "title": "TicketCreateReq"
      },
      "TicketReplyReq": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "message"
        ],
        "title": "TicketReplyReq"
      },
      "TokenConfirmReq": {
        "properties": {
          "tx_hash": {
            "type": "string",
            "title": "Tx Hash"
          },
          "plan_type": {
            "type": "string",
            "title": "Plan Type"
          },
          "plan_id": {
            "type": "string",
            "title": "Plan Id"
          },
          "amount_usd": {
            "type": "number",
            "title": "Amount Usd"
          },
          "token_amount": {
            "type": "number",
            "title": "Token Amount"
          },
          "wallet": {
            "type": "string",
            "title": "Wallet"
          }
        },
        "type": "object",
        "required": [
          "tx_hash",
          "plan_type",
          "plan_id",
          "amount_usd",
          "token_amount",
          "wallet"
        ],
        "title": "TokenConfirmReq"
      },
      "TotpVerifyReq": {
        "properties": {
          "code": {
            "type": "string",
            "title": "Code"
          }
        },
        "type": "object",
        "required": [
          "code"
        ],
        "title": "TotpVerifyReq"
      },
      "TrainingLogReq": {
        "properties": {
          "node_key": {
            "type": "string",
            "title": "Node Key"
          },
          "job_id": {
            "type": "string",
            "title": "Job Id"
          },
          "epoch": {
            "type": "integer",
            "title": "Epoch",
            "default": 0
          },
          "step": {
            "type": "integer",
            "title": "Step",
            "default": 0
          },
          "loss": {
            "type": "number",
            "title": "Loss",
            "default": 0
          },
          "learning_rate": {
            "type": "number",
            "title": "Learning Rate",
            "default": 0
          },
          "gpu_utilization": {
            "type": "number",
            "title": "Gpu Utilization",
            "default": 0
          },
          "vram_used_gb": {
            "type": "number",
            "title": "Vram Used Gb",
            "default": 0
          },
          "message": {
            "type": "string",
            "title": "Message",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "node_key",
          "job_id"
        ],
        "title": "TrainingLogReq"
      },
      "TransferReq": {
        "properties": {
          "from_agent_id": {
            "type": "string",
            "title": "From Agent Id"
          },
          "to_agent_slug": {
            "type": "string",
            "title": "To Agent Slug"
          },
          "amount": {
            "type": "number",
            "title": "Amount"
          },
          "token": {
            "type": "string",
            "title": "Token",
            "default": "USDC"
          },
          "reason": {
            "type": "string",
            "title": "Reason",
            "default": ""
          },
          "escrow": {
            "type": "boolean",
            "title": "Escrow",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "from_agent_id",
          "to_agent_slug",
          "amount"
        ],
        "title": "TransferReq"
      },
      "UnderAttackReq": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled"
          }
        },
        "type": "object",
        "required": [
          "enabled"
        ],
        "title": "UnderAttackReq"
      },
      "UpdateAgentReq": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Description"
          },
          "model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model"
          },
          "system_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "System Prompt"
          },
          "max_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Tokens"
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature"
          },
          "skills": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Skills"
          },
          "config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Config"
          }
        },
        "type": "object",
        "title": "UpdateAgentReq"
      },
      "UpdateBucket": {
        "properties": {
          "plan": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan"
          },
          "public_read": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Public Read"
          }
        },
        "type": "object",
        "title": "UpdateBucket"
      },
      "UpdateFunction": {
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "entry_point": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Entry Point"
          },
          "env_vars": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Env Vars"
          },
          "plan": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Plan"
          }
        },
        "type": "object",
        "title": "UpdateFunction"
      },
      "UpdateFunctionReq": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "route_pattern": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Route Pattern"
          },
          "env_vars": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Env Vars"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          }
        },
        "type": "object",
        "title": "UpdateFunctionReq"
      },
      "UpdateListingReq": {
        "properties": {
          "tagline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tagline"
          },
          "capabilities": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Capabilities"
          },
          "pricing_per_request": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pricing Per Request"
          },
          "pricing_per_token": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pricing Per Token"
          },
          "accepted_tokens": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accepted Tokens"
          },
          "api_docs_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Api Docs Url"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          }
        },
        "type": "object",
        "title": "UpdateListingReq"
      },
      "UpdateMemberReq": {
        "properties": {
          "role": {
            "type": "string",
            "title": "Role"
          }
        },
        "type": "object",
        "required": [
          "role"
        ],
        "title": "UpdateMemberReq"
      },
      "UpdateMonitorReq": {
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          },
          "interval_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Interval Seconds"
          },
          "timeout_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Timeout Seconds"
          },
          "expected_status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expected Status"
          },
          "alert_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alert Email"
          },
          "alert_webhook": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Alert Webhook"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          }
        },
        "type": "object",
        "title": "UpdateMonitorReq"
      },
      "UpdateResellerTierReq": {
        "properties": {
          "tier": {
            "type": "string",
            "title": "Tier"
          }
        },
        "type": "object",
        "required": [
          "tier"
        ],
        "title": "UpdateResellerTierReq"
      },
      "UpdateRouteReq": {
        "properties": {
          "destination": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destination"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          }
        },
        "type": "object",
        "title": "UpdateRouteReq"
      },
      "UpdateSettingsReq": {
        "properties": {
          "default_commission_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Default Commission Pct"
          },
          "min_payout_usd": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Payout Usd"
          },
          "cookie_days": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cookie Days"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          }
        },
        "type": "object",
        "title": "UpdateSettingsReq"
      },
      "UpdateTierLimitsReq": {
        "properties": {
          "credit_per_user": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Credit Per User"
          },
          "monthly_credit_pool": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Monthly Credit Pool"
          },
          "min_sales_to_qualify": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Min Sales To Qualify"
          },
          "commission_bonus_pct": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Commission Bonus Pct"
          },
          "max_promos_per_reseller": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1.0
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Promos Per Reseller"
          }
        },
        "type": "object",
        "title": "UpdateTierLimitsReq"
      },
      "UpdateTrainingJobReq": {
        "properties": {
          "node_key": {
            "type": "string",
            "title": "Node Key"
          },
          "job_id": {
            "type": "string",
            "title": "Job Id"
          },
          "status": {
            "type": "string",
            "title": "Status"
          },
          "gpu_hours_used": {
            "type": "number",
            "title": "Gpu Hours Used",
            "default": 0
          },
          "error_message": {
            "type": "string",
            "title": "Error Message",
            "default": ""
          },
          "output_model_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Output Model Id"
          }
        },
        "type": "object",
        "required": [
          "node_key",
          "job_id",
          "status"
        ],
        "title": "UpdateTrainingJobReq"
      },
      "UpgradeReq": {
        "properties": {
          "plan": {
            "type": "string",
            "title": "Plan"
          }
        },
        "type": "object",
        "required": [
          "plan"
        ],
        "title": "UpgradeReq"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "VerifyReportReq": {
        "properties": {
          "node_id": {
            "type": "string",
            "title": "Node Id"
          },
          "event_type": {
            "type": "string",
            "title": "Event Type"
          },
          "reason": {
            "type": "string",
            "title": "Reason"
          }
        },
        "type": "object",
        "required": [
          "node_id",
          "event_type",
          "reason"
        ],
        "title": "VerifyReportReq"
      },
      "VoteReq": {
        "properties": {
          "election_id": {
            "type": "string",
            "title": "Election Id"
          },
          "vote": {
            "type": "string",
            "title": "Vote"
          }
        },
        "type": "object",
        "required": [
          "election_id",
          "vote"
        ],
        "title": "VoteReq"
      },
      "VpsCheckoutReq": {
        "properties": {
          "vps_plan": {
            "type": "string",
            "title": "Vps Plan"
          }
        },
        "type": "object",
        "required": [
          "vps_plan"
        ],
        "title": "VpsCheckoutReq"
      },
      "VpsCreditReq": {
        "properties": {
          "vps_plan": {
            "type": "string",
            "title": "Vps Plan"
          }
        },
        "type": "object",
        "required": [
          "vps_plan"
        ],
        "title": "VpsCreditReq"
      },
      "WALBatch": {
        "properties": {
          "entries": {
            "items": {},
            "type": "array",
            "title": "Entries"
          }
        },
        "type": "object",
        "required": [
          "entries"
        ],
        "title": "WALBatch"
      },
      "WebhookReq": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "url": {
            "type": "string",
            "title": "Url"
          },
          "events": {
            "items": {},
            "type": "array",
            "title": "Events",
            "default": [
              "monitor.down",
              "monitor.up",
              "ddos.detected",
              "billing.payment"
            ]
          }
        },
        "type": "object",
        "required": [
          "name",
          "url"
        ],
        "title": "WebhookReq"
      },
      "WorkerCreate": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "route": {
            "type": "string",
            "title": "Route"
          },
          "code": {
            "type": "string",
            "title": "Code"
          },
          "env_vars": {
            "additionalProperties": true,
            "type": "object",
            "title": "Env Vars",
            "default": {}
          }
        },
        "type": "object",
        "required": [
          "name",
          "route",
          "code"
        ],
        "title": "WorkerCreate"
      },
      "WorkerUpdate": {
        "properties": {
          "code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Code"
          },
          "route": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Route"
          },
          "env_vars": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Env Vars"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          }
        },
        "type": "object",
        "title": "WorkerUpdate"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
