{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "Verification Service",
    "description" : "Verification Service APIs. Provides unified identity verification through multiple channels including email, SMS, voice call, social messaging (WhatsApp, WeChat, LINE), TOTP authenticator apps, CAPTCHA challenges, and Passkeys (WebAuthn/FIDO2). Includes TOTP and Passkey device/module management and CAPTCHA scenario configuration.",
    "version" : "1.0"
  },
  "servers" : [ {
    "url" : "http://sns-service/"
  } ],
  "tags" : [ {
    "name" : "mfa-email",
    "description" : "Multi-Factor Authentication via email. Send one-time verification codes to email addresses and verify them for identity confirmation workflows."
  }, {
    "name" : "mfa-sms",
    "description" : "Multi-Factor Authentication via SMS. Send one-time verification codes to phone numbers and verify them for identity confirmation workflows."
  }, {
    "name" : "mfa-voice",
    "description" : "Multi-Factor Authentication via voice call. Deliver one-time verification codes through automated voice calls and verify them for identity confirmation."
  }, {
    "name" : "mfa-social",
    "description" : "Multi-Factor Authentication via a social channel. Send one-time verification codes through WhatsApp (an Authentication template), a WeChat Official Account or LINE, and verify them for identity confirmation workflows."
  }, {
    "name" : "mfa-totp",
    "description" : "Multi-Factor Authentication via TOTP. Verify time-based one-time passwords generated by authenticator apps (Google Authenticator, Microsoft Authenticator, etc.)."
  }, {
    "name" : "mfa-captcha",
    "description" : "Multi-Factor Authentication via CAPTCHA. Generate and verify CAPTCHA challenges to distinguish human users from automated bots."
  }, {
    "name" : "mfa-passkey",
    "description" : "Multi-Factor Authentication via Passkey (WebAuthn/FIDO2). Run the login ceremony as a second factor, in place of a password, or usernameless (discoverable), and verify the assertion for identity confirmation."
  }, {
    "name" : "totp",
    "description" : "Time-based One-Time Password (TOTP) management. Configure TOTP modules, register authenticator devices, and manage recovery codes for two-factor authentication."
  }, {
    "name" : "passkey",
    "description" : "Passkey (WebAuthn/FIDO2) management. Configure passkey modules (relying party settings), register and manage credential devices, and update user display names."
  }, {
    "name" : "captcha-scenario",
    "description" : "CAPTCHA scenario configuration. Define and manage CAPTCHA verification scenarios with configurable vendors and challenge types."
  } ],
  "paths" : {
    "/sns/captcha/scenario/add-one" : {
      "post" : {
        "tags" : [ "captcha-scenario" ],
        "summary" : "Create a new CAPTCHA scenario",
        "description" : "Define a new CAPTCHA verification scenario with vendor, challenge type, and custom properties. Optionally set as the default scenario for the tenant.",
        "operationId" : "AddCaptchaScenario",
        "requestBody" : {
          "description" : "add scenario request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddCaptchaScenarioRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-CaptchaScenario"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/captcha/scenario/delete-one" : {
      "post" : {
        "tags" : [ "captcha-scenario" ],
        "summary" : "Delete a CAPTCHA scenario",
        "description" : "Permanently remove a CAPTCHA scenario configuration by name.",
        "operationId" : "DeleteCaptchaScenario",
        "requestBody" : {
          "description" : "delete scenario request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteCaptchaScenarioRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-CaptchaScenario"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "confirm" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/captcha/scenario/query-many" : {
      "get" : {
        "tags" : [ "captcha-scenario" ],
        "summary" : "List CAPTCHA scenarios with pagination",
        "description" : "Retrieve a paginated list of CAPTCHA scenarios. Supports filtering by vendor and challenge type.",
        "operationId" : "PagedListCaptchaScenarios",
        "parameters" : [ {
          "name" : "captcha_type",
          "in" : "query",
          "description" : "Filter by CAPTCHA type",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "captcha_vendor",
          "in" : "query",
          "description" : "Filter by CAPTCHA vendor",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "current_page",
          "in" : "query",
          "description" : "Current page number (default 1)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "default" : 1
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "description" : "Number of records per page (default 10, max 200)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer",
            "default" : 10,
            "maximum" : 200
          }
        }, {
          "name" : "scenario_name_filter",
          "in" : "query",
          "description" : "Filter by scenario name (fuzzy match)",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResponseModel-CaptchaScenario"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        }
      }
    },
    "/sns/captcha/scenario/query-one" : {
      "get" : {
        "tags" : [ "captcha-scenario" ],
        "summary" : "Get CAPTCHA scenario details",
        "description" : "Retrieve the configuration of a specific CAPTCHA scenario by name, including vendor, challenge type, and custom properties.",
        "operationId" : "GetCaptchaScenario",
        "parameters" : [ {
          "name" : "scenario_name",
          "in" : "query",
          "description" : "scenario name",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-CaptchaScenario"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        }
      }
    },
    "/sns/captcha/scenario/set-default" : {
      "post" : {
        "tags" : [ "captcha-scenario" ],
        "summary" : "Set default CAPTCHA scenario",
        "description" : "Designate a CAPTCHA scenario as the default for the current tenant. The default scenario is used when no scenario name is specified in generate requests.",
        "operationId" : "SetDefaultCaptchaScenario",
        "requestBody" : {
          "description" : "set default scenario request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SetDefaultCaptchaScenarioRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-CaptchaScenario"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/captcha/scenario/update-one" : {
      "post" : {
        "tags" : [ "captcha-scenario" ],
        "summary" : "Update a CAPTCHA scenario",
        "description" : "Modify the configuration of an existing CAPTCHA scenario including vendor, challenge type, and custom properties.",
        "operationId" : "UpdateCaptchaScenario",
        "requestBody" : {
          "description" : "update scenario request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateCaptchaScenarioRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-CaptchaScenario"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/captcha/generate" : {
      "post" : {
        "tags" : [ "mfa-captcha" ],
        "summary" : "Generate a CAPTCHA challenge",
        "description" : "Generate a new CAPTCHA challenge image or puzzle based on the configured scenario. Returns the challenge content and a verify ID for subsequent verification.",
        "operationId" : "GenerateMFACaptcha",
        "requestBody" : {
          "description" : "generate mfa captcha request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/GenerateMFACaptchaRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-GenerateMFACaptchaResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "skip" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/captcha/verify" : {
      "post" : {
        "tags" : [ "mfa-captcha" ],
        "summary" : "Verify a CAPTCHA response",
        "description" : "Validate the user's response to a previously generated CAPTCHA challenge. Returns verification result with optional reason details on failure.",
        "operationId" : "VerifyMFACaptcha",
        "requestBody" : {
          "description" : "verify mfa captcha request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VerifyMFACaptchaRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VerifyMFACaptchaResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "skip" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/email/send" : {
      "post" : {
        "tags" : [ "mfa-email" ],
        "summary" : "Send MFA verification code via email",
        "description" : "Generate and send a one-time verification code to the specified email address. Supports configurable code length, expiration, retry limits, and resend blocking intervals.",
        "operationId" : "SendMFAEmail",
        "requestBody" : {
          "description" : "send mfa email request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SendMFAEmailRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SendMFACodeResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-gateway-usage-plan" : "email_send_per_day",
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/email/verify" : {
      "post" : {
        "tags" : [ "mfa-email" ],
        "summary" : "Verify MFA email code",
        "description" : "Validate the one-time verification code sent to an email address. Checks code correctness, expiration, attempt limits, and optional context matching.",
        "operationId" : "VerifyMFAEmail",
        "requestBody" : {
          "description" : "verify mfa email request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VerifyMFAEmailRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VerifyMFAResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/passkey/begin" : {
      "post" : {
        "tags" : [ "mfa-passkey" ],
        "summary" : "Begin MFA Passkey Login",
        "description" : "Begin MFA Passkey Login. If external_user_id is provided, uses MFA mode. If omitted, uses usernameless mode (module must have allow_usernameless enabled).",
        "operationId" : "BeginMFAPasskey",
        "requestBody" : {
          "description" : "begin mfa passkey request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/mfa.beginPasskeyRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "WebAuthn request options; pass `data` to navigator.credentials.get().",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-MFAPasskeyAssertionOptions"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "skip" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/passkey/finish" : {
      "post" : {
        "tags" : [ "mfa-passkey" ],
        "summary" : "Finish MFA Passkey Login",
        "description" : "Finish MFA Passkey Login. If external_user_id is provided, uses MFA mode; if omitted, uses usernameless mode and resolves the user from the passkey. Either way a successful login returns the external_user_id plus a single-use login_ticket (redeemable for expires_in seconds) that CAS exchanges for the user's token. User verification (PIN or biometrics) is required in both modes. credential is the JSON-serialized PublicKeyCredential returned by navigator.credentials.get() — pass it through verbatim, the browser fills every field. With output_result, a failed login (session_expired, session_mismatch, credential_unknown, verification_fail, clone_detected) answers 200 with verified=false, the error code as reason, and claimed_external_user_id: the account to count the failure against (the given external_user_id, or in usernameless mode the user the passkey named, if any). It is unverified: use it to lock the account, never as who logged in. An e_verification_passkey_credential_unknown failure means the passkey was deleted or expired here: the page should call PublicKeyCredential.signalUnknownCredential with the credential id so the password manager drops it. No other failure should trigger that call.",
        "operationId" : "FinishMFAPasskey",
        "requestBody" : {
          "description" : "finish mfa passkey request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FinishMFAPasskeyRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-PasskeyLoginResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "skip" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/sms/send" : {
      "post" : {
        "tags" : [ "mfa-sms" ],
        "summary" : "Send MFA verification code via SMS",
        "description" : "Generate and send a one-time verification code to the specified phone number via SMS. Supports configurable code length, expiration, retry limits, and resend blocking intervals.",
        "operationId" : "SendMFASMS",
        "requestBody" : {
          "description" : "send mfa sms request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SendMFASMSRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SendMFACodeResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "command" : "send-mfa-sms"
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/sms/verify" : {
      "post" : {
        "tags" : [ "mfa-sms" ],
        "summary" : "Verify MFA SMS code",
        "description" : "Validate the one-time verification code sent via SMS. Checks code correctness, expiration, attempt limits, and optional context matching.",
        "operationId" : "VerifyMFASMS",
        "requestBody" : {
          "description" : "verify mfa sms request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VerifyMFASMSRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VerifyMFAResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "command" : "verify-mfa-sms"
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/social/send" : {
      "post" : {
        "tags" : [ "mfa-social" ],
        "summary" : "Send MFA verification code via a social channel",
        "description" : "Generate a one-time verification code and send it through WhatsApp, a WeChat Official Account or LINE, rendered with a social template that reads it as {{code}}. On WhatsApp bind the template to an approved Authentication template; its copy-code button takes {{code}} as the button URL suffix. Supports configurable code length, expiration, retry limits, and resend blocking intervals.",
        "operationId" : "SendMFASocial",
        "requestBody" : {
          "description" : "send mfa social request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SendMFASocialRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SendMFACodeResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/social/verify" : {
      "post" : {
        "tags" : [ "mfa-social" ],
        "summary" : "Verify MFA social code",
        "description" : "Validate the one-time verification code sent through a social channel. Checks code correctness, expiration, attempt limits, and optional context matching.",
        "operationId" : "VerifyMFASocial",
        "requestBody" : {
          "description" : "verify mfa social request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VerifyMFASocialRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VerifyMFAResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/totp/verify" : {
      "post" : {
        "tags" : [ "mfa-totp" ],
        "summary" : "Verify MFA TOTP code",
        "description" : "Validate a time-based one-time password from an authenticator app. Supports recovery code fallback when the primary device is unavailable.",
        "operationId" : "VerifyMFATOTP",
        "requestBody" : {
          "description" : "verify mfa totp request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VerifyMFATOTPRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VerifyMFAResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "command" : "verify-mfa-totp"
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/voice/send" : {
      "post" : {
        "tags" : [ "mfa-voice" ],
        "summary" : "Send MFA verification code via voice call",
        "description" : "Generate and deliver a one-time verification code through an automated voice call to the specified phone number. Supports configurable code length, expiration, and retry limits.",
        "operationId" : "SendMFAVoice",
        "requestBody" : {
          "description" : "send mfa voice request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SendMFAVoiceRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SendMFACodeResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/mfa/voice/verify" : {
      "post" : {
        "tags" : [ "mfa-voice" ],
        "summary" : "Verify MFA voice code",
        "description" : "Validate the one-time verification code delivered via voice call. Checks code correctness, expiration, attempt limits, and optional context matching.",
        "operationId" : "VerifyMFAVoice",
        "requestBody" : {
          "description" : "verify mfa voice request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VerifyMFAVoiceRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VerifyMFAResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/device/delete-one" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Delete Passkey device",
        "description" : "Delete Passkey device",
        "operationId" : "DeletePasskeyDevice",
        "requestBody" : {
          "description" : "delete passkey device request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeletePasskeyDeviceRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CommonModel"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "confirm" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/device/query-many" : {
      "get" : {
        "tags" : [ "passkey" ],
        "summary" : "Paged List Passkey devices",
        "description" : "paged list passkey devices",
        "operationId" : "PagedListPasskeyDevices",
        "parameters" : [ {
          "name" : "module_code",
          "in" : "query",
          "description" : "module code",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "external_user_id",
          "in" : "query",
          "description" : "external user id filter condition",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "description" : "page size, max 200, default 10",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        }, {
          "name" : "current_page",
          "in" : "query",
          "description" : "current page, start at 1, default 1",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResponseModel-PasskeyCredential"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        }
      }
    },
    "/sns/passkey/device/register/begin" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Begin Passkey Registration",
        "description" : "Begin Passkey Registration",
        "operationId" : "BeginPasskeyRegistration",
        "requestBody" : {
          "description" : "begin passkey registration request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/BeginPasskeyRegistrationRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "WebAuthn creation options; pass `data` to navigator.credentials.create().",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-PasskeyCredentialCreationOptions"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "skip" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/device/register/finish" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Finish Passkey Registration",
        "description" : "Finish Passkey Registration. credential is the JSON-serialized PublicKeyCredential returned by navigator.credentials.create() — pass it through verbatim, the browser fills every field. The ceremony is identified by the challenge inside it; module_code and external_user_id must match the begin call, and device_alias may be omitted (the one given at begin is used) or must match it.",
        "operationId" : "FinishPasskeyRegistration",
        "requestBody" : {
          "description" : "finish passkey registration request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/FinishPasskeyRegistrationRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CommonModel"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "skip" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/device/update-one" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Update Passkey device",
        "description" : "Rename a device (new_device_alias, unique per user) and/or rewrite its description. device_alias locates the device. Only the fields present in the request body are changed; clear the description through update_options.unset_fields.",
        "operationId" : "UpdatePasskeyDevice",
        "requestBody" : {
          "description" : "update passkey device request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdatePasskeyDeviceRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-PasskeyCredential"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/module/add-one" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Add Passkey module",
        "description" : "Add Passkey module configuration",
        "operationId" : "AddPasskeyModule",
        "requestBody" : {
          "description" : "add passkey module request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddPasskeyModuleRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-PasskeyModule"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/module/delete-one" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Delete Passkey module",
        "description" : "Delete Passkey module configuration. Refused while credentials are still registered under the module.",
        "operationId" : "DeletePasskeyModule",
        "requestBody" : {
          "description" : "delete passkey module request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeletePasskeyModuleRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CommonModel"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "confirm" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/module/query-many" : {
      "get" : {
        "tags" : [ "passkey" ],
        "summary" : "Paged List Passkey modules",
        "description" : "paged list passkey module configurations",
        "operationId" : "PagedListPasskeyModules",
        "parameters" : [ {
          "name" : "module_code",
          "in" : "query",
          "description" : "module code filter condition",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "description" : "page size, max 200, default 10",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        }, {
          "name" : "current_page",
          "in" : "query",
          "description" : "current page, start at 1, default 1",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResponseModel-PasskeyModule"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        }
      }
    },
    "/sns/passkey/module/update-one" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Update Passkey module",
        "description" : "Update Passkey module configuration. Only the fields present in the request body are changed.",
        "operationId" : "UpdatePasskeyModule",
        "requestBody" : {
          "description" : "update passkey module request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdatePasskeyModuleRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-PasskeyModule"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/user/delete-one" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Delete Passkey user",
        "description" : "Delete every device of a user and the user record itself, under one module or — with module_code omitted — under every module of the tenant. The latter erases the user's passkey data; see user/export for the matching export.",
        "operationId" : "DeletePasskeyUser",
        "requestBody" : {
          "description" : "delete passkey user request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeletePasskeyUserRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-DeletePasskeyUserResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "confirm" : true,
          "confirmMessage" : "Delete every passkey of this user? Without module_code the user is erased from every module of the tenant."
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/passkey/user/update-one" : {
      "post" : {
        "tags" : [ "passkey" ],
        "summary" : "Update Passkey user",
        "description" : "Update the display name stored for a user, under one module or — with module_code omitted — under every module of the tenant. The display name is the only field a user record carries for the caller to change; clear it through update_options.unset_fields.",
        "operationId" : "UpdatePasskeyUser",
        "requestBody" : {
          "description" : "update passkey user request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdatePasskeyUserRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-UpdatePasskeyUserResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/totp/device/add-one" : {
      "post" : {
        "tags" : [ "totp" ],
        "summary" : "Register a new TOTP device",
        "description" : "Register a new authenticator device for an account. Generates a TOTP secret and optionally returns a QR code for scanning with authenticator apps. The device must be verified with a valid code before activation unless skip_first_verify is set.",
        "operationId" : "AddTOTPDevice",
        "requestBody" : {
          "description" : "add totp device request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddTOTPDeviceRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-AddTOTPDeviceResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/totp/device/delete-many" : {
      "post" : {
        "tags" : [ "totp" ],
        "summary" : "Delete all TOTP devices for an account",
        "description" : "Remove all TOTP authenticator devices associated with a specific account name within a module. Returns the count of deleted devices.",
        "operationId" : "DeleteTOTPAccount",
        "requestBody" : {
          "description" : "delete totp devices request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteTOTPAccountRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-DeleteTOTPAccountResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "confirm" : true,
          "confirmMessage" : "Delete all TOTP devices of this account? The user must re-enroll to log in with TOTP."
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/totp/device/delete-one" : {
      "post" : {
        "tags" : [ "totp" ],
        "summary" : "Delete a TOTP device",
        "description" : "Remove a specific TOTP authenticator device by account name and device alias. The device secret and recovery codes are permanently deleted.",
        "operationId" : "DeleteTOTPDevice",
        "requestBody" : {
          "description" : "delete totp device request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteTOTPDeviceRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CommonModel"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "confirm" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/totp/device/first-time-verify" : {
      "post" : {
        "tags" : [ "totp" ],
        "summary" : "Activate TOTP device with first verification",
        "description" : "Complete device registration by verifying the first TOTP code. This confirms the user has successfully configured their authenticator app and activates the device.",
        "operationId" : "VerifyTOTPDeviceFirstTime",
        "requestBody" : {
          "description" : "verify totp device request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/VerifyTOTPDeviceRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-AddTOTPDeviceResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/totp/device/query-many" : {
      "get" : {
        "tags" : [ "totp" ],
        "summary" : "List TOTP devices with pagination",
        "description" : "Retrieve a paginated list of registered TOTP devices. Supports filtering by module code and account name.",
        "operationId" : "PagedListTOTPDevices",
        "parameters" : [ {
          "name" : "module_code",
          "in" : "query",
          "description" : "module code filter condition",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "account_name_filter",
          "in" : "query",
          "description" : "account name filter condition",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "description" : "page size, max 200, default 10",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        }, {
          "name" : "current_page",
          "in" : "query",
          "description" : "current page, start at 1, default 1",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResponseModel-TOTPDevice"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        }
      }
    },
    "/sns/totp/device/regenerate-recovery-codes" : {
      "post" : {
        "tags" : [ "totp" ],
        "summary" : "Regenerate TOTP recovery codes",
        "description" : "Generate a new set of recovery codes for a TOTP device, invalidating all previously issued codes. Recovery codes provide backup access when the authenticator device is unavailable.",
        "operationId" : "RegenerateTOTPRecoveryCodes",
        "requestBody" : {
          "description" : "regenerate TOTP recovery codes request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/RegenerateTOTPRecoveryCodesRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-AddTOTPDeviceResult"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "confirm" : true,
          "confirmMessage" : "Regenerate the recovery codes? The existing recovery codes stop working immediately."
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/totp/module/add-one" : {
      "post" : {
        "tags" : [ "totp" ],
        "summary" : "Create a new TOTP module",
        "description" : "Create a TOTP module that defines the configuration for authenticator devices including algorithm, digits, period, issuer name, device limits, and recovery code settings.",
        "operationId" : "AddTOTPModule",
        "requestBody" : {
          "description" : "add totp module request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddTOTPModuleRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-TOTPModule"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/totp/module/delete-one" : {
      "post" : {
        "tags" : [ "totp" ],
        "summary" : "Delete a TOTP module",
        "description" : "Permanently remove a TOTP module configuration. All devices registered under this module should be removed first.",
        "operationId" : "DeleteTOTPModule",
        "requestBody" : {
          "description" : "delete totp module request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteTOTPModuleRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CommonModel"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-mo-cli" : {
          "confirm" : true
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/totp/module/query-many" : {
      "get" : {
        "tags" : [ "totp" ],
        "summary" : "List TOTP modules with pagination",
        "description" : "Retrieve a paginated list of TOTP module configurations. Supports filtering by module code.",
        "operationId" : "PagedListTOTPModules",
        "parameters" : [ {
          "name" : "module_code_filter",
          "in" : "query",
          "description" : "module code filter condition",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "page_size",
          "in" : "query",
          "description" : "page size, max 200, default 10",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        }, {
          "name" : "current_page",
          "in" : "query",
          "description" : "current page, start at 1, default 1",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "integer"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResponseModel-TOTPModule"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        }
      }
    },
    "/sns/totp/module/update-one" : {
      "post" : {
        "tags" : [ "totp" ],
        "summary" : "Update an existing TOTP module",
        "description" : "Modify the configuration of an existing TOTP module including device limits, recovery code count, and verification skew settings.",
        "operationId" : "UpdateTOTPModule",
        "requestBody" : {
          "description" : "update totp module request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateTOTPModuleRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-TOTPModule"
                }
              }
            }
          },
          "499" : {
            "description" : "client error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          },
          "599" : {
            "description" : "server error response",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponseModel"
                }
              }
            }
          }
        },
        "x-codegen-request-body-name" : "body"
      }
    }
  },
  "components" : {
    "schemas" : {
      "AddCaptchaScenarioRequest" : {
        "type" : "object",
        "properties" : {
          "captcha_properties" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "Vendor-specific configuration key-value pairs"
          },
          "captcha_type" : {
            "type" : "string",
            "description" : "Challenge type (e.g., image, slider, click)"
          },
          "captcha_vendor" : {
            "type" : "string",
            "description" : "CAPTCHA service vendor identifier"
          },
          "description" : {
            "type" : "string",
            "description" : "Scenario description"
          },
          "is_default" : {
            "type" : "boolean",
            "description" : "Whether this is the default CAPTCHA scenario"
          },
          "scenario_name" : {
            "type" : "string",
            "description" : "Unique scenario name within the tenant"
          }
        },
        "required" : [ "scenario_name" ]
      },
      "AddPasskeyModuleRequest" : {
        "type" : "object",
        "properties" : {
          "allow_usernameless" : {
            "type" : "boolean",
            "description" : "Allow usernameless login, default false"
          },
          "description" : {
            "type" : "string",
            "description" : "Module description"
          },
          "limit_devices" : {
            "type" : "integer",
            "description" : "Max devices per user, default 5"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code"
          },
          "module_name" : {
            "type" : "string",
            "description" : "Module name"
          },
          "retention_days" : {
            "type" : "integer",
            "description" : "Days a credential may go unused before it expires and is purged; omit to keep credentials until deleted"
          },
          "rp_display_name" : {
            "type" : "string",
            "description" : "Relying Party display name"
          },
          "rp_id" : {
            "type" : "string",
            "description" : "Relying Party ID (domain)"
          },
          "rp_origins" : {
            "type" : "string",
            "description" : "Allowed origins (JSON array)"
          }
        },
        "required" : [ "module_code", "module_name", "rp_display_name", "rp_id", "rp_origins" ]
      },
      "AddTOTPDeviceRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Account name"
          },
          "description" : {
            "type" : "string",
            "description" : "Device description"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Device alias"
          },
          "dry_run" : {
            "type" : "boolean",
            "description" : "Add account device for mock/test, if ture, the secret will not be saved"
          },
          "expires_in_minutes" : {
            "type" : "integer",
            "description" : "Expires in minutes, after that the secret will be deleted if not be first verified. default 15 minutes.",
            "example" : 15
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, refer to TOTPModule",
            "example" : "example_module_code"
          },
          "qr_code_height" : {
            "type" : "integer",
            "description" : "QR code height and width in pixel, specify if you want to generate QR code",
            "maximum" : 200
          },
          "skip_first_verify" : {
            "type" : "boolean",
            "description" : "Skip first verify. If true, the device secret will be effective."
          }
        },
        "required" : [ "account_name", "device_alias", "module_code" ]
      },
      "AddTOTPDeviceResult" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Account name"
          },
          "create_time" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "Create time, UTC Time with RFC3339 formated: 2024-01-01T00:00:00Z"
          },
          "creator" : {
            "type" : "string",
            "description" : "Creator"
          },
          "description" : {
            "type" : "string",
            "description" : "Device description"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Device alias"
          },
          "device_id" : {
            "type" : "string",
            "description" : "Account device id, uuid"
          },
          "image_base64" : {
            "type" : "string"
          },
          "modifier" : {
            "type" : "string",
            "description" : "Modifier"
          },
          "modify_time" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "Modify time, UTC Time with RFC3339 formated: 2024-01-01T00:00:00Z"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, refer to TOTPModule",
            "example" : "example_module_code"
          },
          "otp_recovery_codes" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "recovery_code_count" : {
            "type" : "integer",
            "description" : "valid recovery code count"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant code"
          },
          "totp_secret" : {
            "type" : "string"
          },
          "totp_url" : {
            "type" : "string"
          }
        }
      },
      "AddTOTPModuleRequest" : {
        "type" : "object",
        "properties" : {
          "description" : {
            "type" : "string",
            "description" : "Module description"
          },
          "limit_devices" : {
            "type" : "integer",
            "description" : "Limit devices, specify if allow multi-devices"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, unique in a tenant, only contains alpha-numbers. underscore and dash",
            "example" : "example_module_code",
            "maxLength" : 40
          },
          "recovery_codes" : {
            "type" : "integer",
            "description" : "Recovery code count, specify if allow recovery codes"
          },
          "totp_algorithm" : {
            "type" : "string",
            "description" : "TOTP algorithm, algorithm of TOTP hash, default sha1, available values: sha1, sha256, sha512, md5",
            "example" : "sha1"
          },
          "totp_digits" : {
            "type" : "integer",
            "description" : "TOTP digits, size of TOTP code, default 6, 6 or 8 is more popular, max 10",
            "example" : 6,
            "maximum" : 10
          },
          "totp_issuer" : {
            "type" : "string",
            "description" : "TOTP issue, display as company name or service name",
            "example" : "InsureMO-Portal",
            "maxLength" : 40
          },
          "totp_period" : {
            "type" : "integer",
            "description" : "TOTP period, number of seconds a TOTP hash is valid for. Defaults to 30 seconds.",
            "example" : 30,
            "maximum" : 900,
            "minimum" : 10
          },
          "verify_skew" : {
            "type" : "integer",
            "description" : "Skew when verifying, default is 1"
          }
        },
        "required" : [ "module_code" ]
      },
      "BeginPasskeyRegistrationRequest" : {
        "type" : "object",
        "properties" : {
          "description" : {
            "type" : "string",
            "description" : "Device description"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Device alias, unique per user"
          },
          "display_name" : {
            "type" : "string",
            "description" : "Label for administrators, also shown by the authenticator; stored. Omit to store nothing"
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "External user ID"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code (identifies the WebAuthn configuration)"
          },
          "username" : {
            "type" : "string",
            "description" : "Account name the authenticator lists the passkey under; not stored"
          }
        },
        "required" : [ "device_alias", "external_user_id", "module_code", "username" ]
      },
      "CaptchaScenario" : {
        "type" : "object",
        "properties" : {
          "captcha_properties" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "Vendor-specific configuration key-value pairs"
          },
          "captcha_type" : {
            "type" : "string",
            "description" : "Challenge type (e.g., image, slider, click)"
          },
          "captcha_vendor" : {
            "type" : "string",
            "description" : "CAPTCHA service vendor identifier"
          },
          "create_time" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "Create time, UTC Time with RFC3339 formated: 2024-01-01T00:00:00Z"
          },
          "creator" : {
            "type" : "string",
            "description" : "Creator"
          },
          "description" : {
            "type" : "string",
            "description" : "Scenario description"
          },
          "is_default" : {
            "type" : "boolean",
            "description" : "Whether this is the default CAPTCHA scenario"
          },
          "modifier" : {
            "type" : "string",
            "description" : "Modifier"
          },
          "modify_time" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "Modify time, UTC Time with RFC3339 formated: 2024-01-01T00:00:00Z"
          },
          "scenario_id" : {
            "type" : "string",
            "description" : "Scenario ID, uuid"
          },
          "scenario_name" : {
            "type" : "string",
            "description" : "Unique scenario name within the tenant"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant code"
          }
        }
      },
      "CodeWithParams" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "CommonModel" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-AddTOTPDeviceResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/AddTOTPDeviceResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-CaptchaScenario" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/CaptchaScenario"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-DeletePasskeyUserResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/DeletePasskeyUserResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-DeleteTOTPAccountResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/DeleteTOTPAccountResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-GenerateMFACaptchaResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/GenerateMFACaptchaResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-MFAPasskeyAssertionOptions" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/MFAPasskeyAssertionOptions"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-PasskeyCredential" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/PasskeyCredential"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-PasskeyCredentialCreationOptions" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/PasskeyCredentialCreationOptions"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-PasskeyLoginResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/PasskeyLoginResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-PasskeyModule" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/PasskeyModule"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-SendMFACodeResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/SendMFACodeResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-TOTPModule" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/TOTPModule"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-UpdatePasskeyUserResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/UpdatePasskeyUserResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-VerifyMFACaptchaResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/VerifyMFACaptchaResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-VerifyMFAResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/VerifyMFAResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DeleteCaptchaScenarioRequest" : {
        "type" : "object",
        "properties" : {
          "scenario_name" : {
            "type" : "string",
            "description" : "Scenario name to delete"
          }
        },
        "required" : [ "scenario_name" ]
      },
      "DeletePasskeyDeviceRequest" : {
        "type" : "object",
        "properties" : {
          "device_alias" : {
            "type" : "string",
            "description" : "Device alias"
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "External user ID"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code"
          }
        },
        "required" : [ "device_alias", "external_user_id", "module_code" ]
      },
      "DeletePasskeyModuleRequest" : {
        "type" : "object",
        "properties" : {
          "module_code" : {
            "type" : "string",
            "description" : "Module code"
          }
        },
        "required" : [ "module_code" ]
      },
      "DeletePasskeyUserRequest" : {
        "type" : "object",
        "properties" : {
          "external_user_id" : {
            "type" : "string",
            "description" : "External user ID"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code; omit to delete the user under every module of the tenant"
          }
        },
        "required" : [ "external_user_id" ]
      },
      "DeletePasskeyUserResult" : {
        "type" : "object",
        "properties" : {
          "deleted" : {
            "type" : "integer",
            "description" : "Number of deleted credentials"
          }
        }
      },
      "DeleteTOTPAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Account name"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, refer to TOTPModule",
            "example" : "example_module_code"
          }
        },
        "required" : [ "account_name", "module_code" ]
      },
      "DeleteTOTPAccountResult" : {
        "type" : "object",
        "properties" : {
          "deleted" : {
            "type" : "integer",
            "description" : "count of deleted records"
          }
        }
      },
      "DeleteTOTPDeviceRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Account name"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Device alias"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, refer to TOTPModule",
            "example" : "example_module_code"
          }
        },
        "required" : [ "account_name", "device_alias", "module_code" ]
      },
      "DeleteTOTPModuleRequest" : {
        "type" : "object",
        "properties" : {
          "module_code" : {
            "type" : "string",
            "description" : "Module code, unique in a tenant, only contains alpha-numbers. underscore and dash",
            "example" : "example_module_code",
            "maxLength" : 40
          }
        },
        "required" : [ "module_code" ]
      },
      "EmailAttachment" : {
        "type" : "object",
        "properties" : {
          "content" : {
            "type" : "string",
            "format" : "byte",
            "pattern" : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
          },
          "content_id" : {
            "type" : "string"
          },
          "headers" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            }
          },
          "mime_type" : {
            "type" : "string"
          },
          "url" : {
            "type" : "string"
          }
        }
      },
      "ErrorResponseModel" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CodeWithParams"
            }
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "FinishMFAPasskeyRequest" : {
        "type" : "object",
        "properties" : {
          "credential" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/MFAPasskeyAssertionResponse"
            } ],
            "description" : "The PublicKeyCredential navigator.credentials.get() returned, serialized\nto JSON and passed through untouched."
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "As given at begin; omit for usernameless"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, as given at begin"
          },
          "output_result" : {
            "type" : "boolean",
            "description" : "Answer a failed login with verified=false and a reason instead of a\nclient error, along with the account the failure counts against.",
            "example" : true
          }
        },
        "required" : [ "module_code" ]
      },
      "FinishPasskeyRegistrationRequest" : {
        "type" : "object",
        "properties" : {
          "credential" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/PasskeyRegistrationResponse"
            } ],
            "description" : "The PublicKeyCredential navigator.credentials.create() returned,\nserialized to JSON and passed through untouched."
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Optional; defaults to the alias given at begin, and must match it when sent"
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "External user ID, as given at begin"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, as given at begin"
          }
        },
        "required" : [ "external_user_id", "module_code" ]
      },
      "GenerateMFACaptchaRequest" : {
        "type" : "object",
        "properties" : {
          "business_code" : {
            "type" : "string",
            "description" : "Business code"
          },
          "scenario_name" : {
            "type" : "string",
            "description" : "CAPTCHA scenario name"
          },
          "session_id" : {
            "type" : "string",
            "description" : "Session ID to associate with this CAPTCHA challenge"
          }
        }
      },
      "GenerateMFACaptchaResult" : {
        "type" : "object",
        "properties" : {
          "content_base64" : {
            "type" : "string",
            "description" : "Base64-encoded CAPTCHA content"
          },
          "content_mime_type" : {
            "type" : "string",
            "description" : "MIME type of the CAPTCHA content"
          },
          "session_id" : {
            "type" : "string",
            "description" : "Session ID for this CAPTCHA challenge"
          },
          "verify_id" : {
            "type" : "string",
            "description" : "Verification ID to use when submitting the answer"
          }
        }
      },
      "MFAPasskeyAssertionOptions" : {
        "type" : "object",
        "properties" : {
          "publicKey" : {
            "type" : "object",
            "description" : "W3C PublicKeyCredentialRequestOptions. Pass the whole object to\nnavigator.credentials.get({ publicKey }).",
            "properties" : { }
          }
        }
      },
      "MFAPasskeyAssertionResponse" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "Credential ID (base64url), from the browser"
          },
          "rawId" : {
            "type" : "string",
            "description" : "Raw credential ID (base64url), from the browser"
          },
          "response" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/MFAPasskeyAssertionSignature"
            } ],
            "description" : "AuthenticatorAssertionResponse produced by the browser"
          },
          "type" : {
            "type" : "string",
            "description" : "Always the literal string \"public-key\""
          }
        }
      },
      "MFAPasskeyAssertionSignature" : {
        "type" : "object",
        "properties" : {
          "authenticatorData" : {
            "type" : "string",
            "description" : "base64url authenticator data"
          },
          "clientDataJSON" : {
            "type" : "string",
            "description" : "base64url of the client data JSON"
          },
          "signature" : {
            "type" : "string",
            "description" : "base64url assertion signature"
          },
          "userHandle" : {
            "type" : "string",
            "description" : "base64url user handle (present in usernameless mode)"
          }
        }
      },
      "PagedResponseModel-CaptchaScenario" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CaptchaScenario"
            }
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "page_size" : {
            "type" : "integer"
          },
          "total" : {
            "type" : "integer"
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "PagedResponseModel-PasskeyCredential" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/PasskeyCredential"
            }
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "page_size" : {
            "type" : "integer"
          },
          "total" : {
            "type" : "integer"
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "PagedResponseModel-PasskeyModule" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/PasskeyModule"
            }
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "page_size" : {
            "type" : "integer"
          },
          "total" : {
            "type" : "integer"
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "PagedResponseModel-TOTPDevice" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/TOTPDevice"
            }
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "page_size" : {
            "type" : "integer"
          },
          "total" : {
            "type" : "integer"
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "PagedResponseModel-TOTPModule" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/TOTPModule"
            }
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "page_size" : {
            "type" : "integer"
          },
          "total" : {
            "type" : "integer"
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "PasskeyAttestationObject" : {
        "type" : "object",
        "properties" : {
          "attestationObject" : {
            "type" : "string",
            "description" : "base64url CBOR attestation object (public key + attestation)"
          },
          "clientDataJSON" : {
            "type" : "string",
            "description" : "base64url of the client data JSON"
          }
        }
      },
      "PasskeyCredential" : {
        "type" : "object",
        "properties" : {
          "aaguid" : {
            "type" : "string",
            "description" : "Authenticator model identifier (UUID); all zeros when the authenticator withholds it"
          },
          "attachment" : {
            "type" : "string",
            "description" : "platform (built into the device) or cross-platform (a security key, a phone)"
          },
          "attestation_type" : {
            "type" : "string",
            "description" : "Attestation type (none, indirect, direct)"
          },
          "create_time" : {
            "type" : "string",
            "description" : "When the credential was registered"
          },
          "description" : {
            "type" : "string",
            "description" : "Optional device description"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "User-friendly device name"
          },
          "display_name" : {
            "type" : "string",
            "description" : "Owner's display name; filled by device/query-many only"
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "Owner's external user ID; filled by device/query-many only"
          },
          "flags" : {
            "type" : "integer",
            "description" : "Authenticator flags (user present, verified, etc.)"
          },
          "id" : {
            "type" : "string",
            "format" : "byte",
            "description" : "Credential ID generated by the authenticator, serialized as a base64 string in JSON",
            "pattern" : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
          },
          "last_used_time" : {
            "type" : "string",
            "description" : "When the credential last completed a login; registration counts as a use"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code this credential belongs to"
          },
          "public_key" : {
            "type" : "string",
            "format" : "byte",
            "description" : "Public key for signature verification, serialized as a base64 string in JSON",
            "pattern" : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
          },
          "sign_count" : {
            "type" : "integer",
            "description" : "Sign counter (increments on each use, detects cloning)"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant identifier"
          },
          "transport" : {
            "type" : "array",
            "description" : "Transport methods (usb, nfc, ble, internal)",
            "items" : {
              "type" : "string"
            }
          },
          "user_id" : {
            "type" : "string",
            "format" : "byte",
            "description" : "User ID this credential belongs to, serialized as a base64 string in JSON",
            "pattern" : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
          }
        }
      },
      "PasskeyCredentialCreationOptions" : {
        "type" : "object",
        "properties" : {
          "publicKey" : {
            "type" : "object",
            "description" : "W3C PublicKeyCredentialCreationOptions. Pass the whole object to\nnavigator.credentials.create({ publicKey }). Contains a base64url\nchallenge, the relying-party / user entities, and credential parameters.",
            "properties" : { }
          }
        }
      },
      "PasskeyLoginResult" : {
        "type" : "object",
        "properties" : {
          "claimed_external_user_id" : {
            "type" : "string",
            "description" : "Failure only, with output_result: the account to count the failure\nagainst. The external_user_id given in MFA mode; in usernameless mode the\nuser the passkey named, if it named one we hold. Unverified — use it to\ncount failures and lock the account, never as who logged in."
          },
          "expires_in" : {
            "type" : "integer",
            "description" : "Seconds the login ticket stays redeemable"
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "The user that logged in; resolved from the passkey in usernameless mode. Success only"
          },
          "login_ticket" : {
            "type" : "string",
            "description" : "A single-use ticket the BFF can trade with CAS for this user's token;\nignore it when the application keeps its own session. Success only."
          },
          "reason" : {
            "type" : "string",
            "description" : "Failure only, with output_result: the error code the login would have\nfailed with."
          },
          "verified" : {
            "type" : "boolean",
            "description" : "Whether the login succeeded"
          }
        }
      },
      "PasskeyModule" : {
        "type" : "object",
        "properties" : {
          "allow_usernameless" : {
            "type" : "boolean",
            "description" : "Whether usernameless login is allowed"
          },
          "description" : {
            "type" : "string",
            "description" : "Module description"
          },
          "limit_devices" : {
            "type" : "integer",
            "description" : "Max devices per user"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code"
          },
          "module_name" : {
            "type" : "string",
            "description" : "Module name"
          },
          "retention_days" : {
            "type" : "integer",
            "description" : "Days a credential may go unused before it expires; null keeps credentials until deleted"
          },
          "rp_display_name" : {
            "type" : "string",
            "description" : "Relying Party display name"
          },
          "rp_id" : {
            "type" : "string",
            "description" : "Relying Party ID (domain)"
          },
          "rp_origins" : {
            "type" : "string",
            "description" : "Allowed origins (JSON array)"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant"
          }
        }
      },
      "PasskeyRegistrationResponse" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "Credential ID (base64url), from the browser"
          },
          "rawId" : {
            "type" : "string",
            "description" : "Raw credential ID (base64url), from the browser"
          },
          "response" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/PasskeyAttestationObject"
            } ],
            "description" : "AuthenticatorAttestationResponse produced by the browser"
          },
          "type" : {
            "type" : "string",
            "description" : "Always the literal string \"public-key\""
          }
        }
      },
      "PasskeyUser" : {
        "type" : "object",
        "properties" : {
          "credentials" : {
            "type" : "array",
            "description" : "User's registered credentials (devices)",
            "items" : {
              "$ref" : "#/components/schemas/PasskeyCredential"
            }
          },
          "display_name" : {
            "type" : "string",
            "description" : "Optional label shown to administrators"
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "The application's ID for the user"
          },
          "id" : {
            "type" : "string",
            "format" : "byte",
            "description" : "WebAuthnID - random 64 bytes, serialized as a base64 string in JSON",
            "pattern" : "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code this user belongs to"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant identifier for multi-tenancy"
          }
        }
      },
      "RegenerateTOTPRecoveryCodesRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Account name"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Device alias"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, refer to TOTPModule",
            "example" : "example_module_code"
          }
        },
        "required" : [ "account_name", "device_alias", "module_code" ]
      },
      "SendMFACodeResult" : {
        "type" : "object",
        "properties" : {
          "content_length" : {
            "type" : "integer",
            "description" : "Length of the sent content"
          },
          "data" : {
            "type" : "object"
          },
          "message_id" : {
            "type" : "string",
            "description" : "Message ID from the delivery channel"
          },
          "sequence" : {
            "type" : "string",
            "description" : "Sequence code, present when generate_sequence is true"
          }
        }
      },
      "SendMFAEmailRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Specify the email account, please manually configure in the console"
          },
          "alias" : {
            "type" : "string",
            "description" : "email sender alias"
          },
          "attachments" : {
            "type" : "array",
            "description" : "email attachment list",
            "items" : {
              "$ref" : "#/components/schemas/EmailAttachment"
            }
          },
          "block_resend_in_seconds" : {
            "type" : "integer",
            "description" : "Minimum interval in seconds before allowing resend for same business_code + to, default 0 (no limit)"
          },
          "business_code" : {
            "type" : "string",
            "description" : "Business code to identify this MFA session, used to match send and verify"
          },
          "case_sensitive" : {
            "type" : "boolean",
            "description" : "If true, verification code comparison is case-sensitive"
          },
          "code_length" : {
            "type" : "integer",
            "description" : "Verification code length, default 6, range 4-20",
            "example" : 6
          },
          "code_strategy" : {
            "type" : "integer",
            "description" : "Code strategy: 0-digits only (default), 1-digits and uppercase letters, 2-digits and mixed case letters"
          },
          "content" : {
            "type" : "string",
            "description" : "email content, ${code} and ${timeout} are required"
          },
          "destroy_on_fail" : {
            "type" : "boolean",
            "description" : "Deprecated: use max_attempts=1 instead. If true, invalidate code immediately on first verify failure",
            "x-deprecated" : true
          },
          "expires_in_minutes" : {
            "type" : "integer",
            "description" : "Code expiration time in minutes, default 15, range 1-120",
            "example" : 15
          },
          "generate_sequence" : {
            "type" : "boolean",
            "description" : "If true, generate a 2-character sequence that must be provided during verify"
          },
          "max_attempts" : {
            "type" : "integer",
            "description" : "Max failed verify attempts before code is invalidated, 0 means unlimited (default)"
          },
          "mfa_context" : {
            "type" : "string",
            "description" : "Optional context string, must match during verify, max 500 characters",
            "maxLength" : 500
          },
          "multiple_verify" : {
            "type" : "boolean",
            "description" : "If true, code remains valid for multiple successful verifications until expired"
          },
          "sender_params" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "parameter for senders"
          },
          "subject" : {
            "type" : "string",
            "description" : "email subject"
          },
          "template_code" : {
            "type" : "string",
            "description" : "template code, please manually configure in the console"
          },
          "template_params" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "object"
            },
            "description" : "parameter in content and template"
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient email address",
            "example" : "abc@test.com"
          }
        },
        "required" : [ "to" ]
      },
      "SendMFASMSRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Specify the sms account, please manually configure in the console"
          },
          "auto_add_sign" : {
            "type" : "boolean",
            "description" : "SMS automatic add sign name at start of content"
          },
          "block_resend_in_seconds" : {
            "type" : "integer",
            "description" : "Minimum interval in seconds before allowing resend for same business_code + to, default 0 (no limit)"
          },
          "business_code" : {
            "type" : "string",
            "description" : "Business code to identify this MFA session, used to match send and verify"
          },
          "case_sensitive" : {
            "type" : "boolean",
            "description" : "If true, verification code comparison is case-sensitive"
          },
          "code_length" : {
            "type" : "integer",
            "description" : "Verification code length, default 6, range 4-20",
            "example" : 6
          },
          "code_strategy" : {
            "type" : "integer",
            "description" : "Code strategy: 0-digits only (default), 1-digits and uppercase letters, 2-digits and mixed case letters"
          },
          "destroy_on_fail" : {
            "type" : "boolean",
            "description" : "Deprecated: use max_attempts=1 instead. If true, invalidate code immediately on first verify failure",
            "x-deprecated" : true
          },
          "expires_in_minutes" : {
            "type" : "integer",
            "description" : "Code expiration time in minutes, default 15, range 1-120",
            "example" : 15
          },
          "generate_sequence" : {
            "type" : "boolean",
            "description" : "If true, generate a 2-character sequence that must be provided during verify"
          },
          "max_attempts" : {
            "type" : "integer",
            "description" : "Max failed verify attempts before code is invalidated, 0 means unlimited (default)"
          },
          "mfa_context" : {
            "type" : "string",
            "description" : "Optional context string, must match during verify, max 500 characters",
            "maxLength" : 500
          },
          "multiple_verify" : {
            "type" : "boolean",
            "description" : "If true, code remains valid for multiple successful verifications until expired"
          },
          "sender_params" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "parameter for senders"
          },
          "sign_name" : {
            "type" : "string",
            "description" : "SMS Signature, used at the beginning of a message to indicate its source"
          },
          "template_code" : {
            "type" : "string",
            "description" : "template code, please manually configure in the console"
          },
          "template_params" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "parameter in content and template"
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient phone number",
            "example" : "+8618600001111"
          },
          "use_zh_bracket" : {
            "type" : "boolean",
            "description" : "SMS use zh format bracket '【】' instead of '[]'"
          }
        },
        "required" : [ "to" ]
      },
      "SendMFASocialRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Social account to send with; the channel's default when left out"
          },
          "block_resend_in_seconds" : {
            "type" : "integer",
            "description" : "Minimum interval in seconds before allowing resend for same business_code + to, default 0 (no limit)"
          },
          "business_code" : {
            "type" : "string",
            "description" : "Business code to identify this MFA session, used to match send and verify"
          },
          "case_sensitive" : {
            "type" : "boolean",
            "description" : "If true, verification code comparison is case-sensitive"
          },
          "channel" : {
            "type" : "string",
            "description" : "Channel to send on; required when no account is named, and must match the account when one is",
            "enum" : [ "whatsapp", "wechat_mp", "line" ]
          },
          "code_length" : {
            "type" : "integer",
            "description" : "Verification code length, default 6, range 4-20",
            "example" : 6
          },
          "code_strategy" : {
            "type" : "integer",
            "description" : "Code strategy: 0-digits only (default), 1-digits and uppercase letters, 2-digits and mixed case letters"
          },
          "destroy_on_fail" : {
            "type" : "boolean",
            "description" : "Deprecated: use max_attempts=1 instead. If true, invalidate code immediately on first verify failure",
            "x-deprecated" : true
          },
          "expires_in_minutes" : {
            "type" : "integer",
            "description" : "Code expiration time in minutes, default 15, range 1-120",
            "example" : 15
          },
          "generate_sequence" : {
            "type" : "boolean",
            "description" : "If true, generate a 2-character sequence that must be provided during verify"
          },
          "language" : {
            "type" : "string",
            "description" : "WhatsApp: the language of the platform template to prefer"
          },
          "max_attempts" : {
            "type" : "integer",
            "description" : "Max failed verify attempts before code is invalidated, 0 means unlimited (default)"
          },
          "mfa_context" : {
            "type" : "string",
            "description" : "Optional context string, must match during verify, max 500 characters",
            "maxLength" : 500
          },
          "multiple_verify" : {
            "type" : "boolean",
            "description" : "If true, code remains valid for multiple successful verifications until expired"
          },
          "template_code" : {
            "type" : "string",
            "description" : "Social template, please manually configure in the console; it reads the code as {{code}} and the minutes it lasts as {{time}}"
          },
          "template_params" : {
            "type" : "object",
            "description" : "Other template params; code, time and the _mo_mfa_* params are set by the service",
            "properties" : { }
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient in the channel's own terms: phone number in E.164 (WhatsApp), openid (WeChat), user id (LINE)",
            "example" : "+8618600001111"
          }
        },
        "required" : [ "template_code", "to" ]
      },
      "SendMFAVoiceRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Specify the voice account, please manually configure in the console"
          },
          "block_resend_in_seconds" : {
            "type" : "integer",
            "description" : "Minimum interval in seconds before allowing resend for same business_code + to, default 0 (no limit)"
          },
          "business_code" : {
            "type" : "string",
            "description" : "Business code to identify this MFA session, used to match send and verify"
          },
          "case_sensitive" : {
            "type" : "boolean",
            "description" : "If true, verification code comparison is case-sensitive"
          },
          "code_length" : {
            "type" : "integer",
            "description" : "Verification code length, default 6, range 4-20",
            "example" : 6
          },
          "code_strategy" : {
            "type" : "integer",
            "description" : "Code strategy: 0-digits only (default), 1-digits and uppercase letters, 2-digits and mixed case letters"
          },
          "destroy_on_fail" : {
            "type" : "boolean",
            "description" : "Deprecated: use max_attempts=1 instead. If true, invalidate code immediately on first verify failure",
            "x-deprecated" : true
          },
          "expires_in_minutes" : {
            "type" : "integer",
            "description" : "Code expiration time in minutes, default 15, range 1-120",
            "example" : 15
          },
          "generate_sequence" : {
            "type" : "boolean",
            "description" : "If true, generate a 2-character sequence that must be provided during verify"
          },
          "max_attempts" : {
            "type" : "integer",
            "description" : "Max failed verify attempts before code is invalidated, 0 means unlimited (default)"
          },
          "mfa_context" : {
            "type" : "string",
            "description" : "Optional context string, must match during verify, max 500 characters",
            "maxLength" : 500
          },
          "multiple_verify" : {
            "type" : "boolean",
            "description" : "If true, code remains valid for multiple successful verifications until expired"
          },
          "sender_params" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "parameter for senders"
          },
          "template_code" : {
            "type" : "string",
            "description" : "template code, please manually configure in the console"
          },
          "template_params" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "parameter in content and template"
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient phone number",
            "example" : "+8618600001111"
          }
        },
        "required" : [ "to" ]
      },
      "SetDefaultCaptchaScenarioRequest" : {
        "type" : "object",
        "properties" : {
          "default_config" : {
            "type" : "boolean",
            "description" : "Whether to set as default"
          },
          "scenario_name" : {
            "type" : "string",
            "description" : "Scenario name to set as default"
          }
        },
        "required" : [ "scenario_name" ]
      },
      "TOTPDevice" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Account name"
          },
          "create_time" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "Create time, UTC Time with RFC3339 formated: 2024-01-01T00:00:00Z"
          },
          "creator" : {
            "type" : "string",
            "description" : "Creator"
          },
          "description" : {
            "type" : "string",
            "description" : "Device description"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Device alias"
          },
          "device_id" : {
            "type" : "string",
            "description" : "Account device id, uuid"
          },
          "modifier" : {
            "type" : "string",
            "description" : "Modifier"
          },
          "modify_time" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "Modify time, UTC Time with RFC3339 formated: 2024-01-01T00:00:00Z"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, refer to TOTPModule",
            "example" : "example_module_code"
          },
          "recovery_code_count" : {
            "type" : "integer",
            "description" : "valid recovery code count"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant code"
          }
        }
      },
      "TOTPModule" : {
        "type" : "object",
        "properties" : {
          "create_time" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "Create time, UTC Time with RFC3339 formated: 2024-01-01T00:00:00Z"
          },
          "creator" : {
            "type" : "string",
            "description" : "Creator"
          },
          "description" : {
            "type" : "string",
            "description" : "Module description"
          },
          "limit_devices" : {
            "type" : "integer",
            "description" : "Limit devices, specify if allow multi-devices"
          },
          "modifier" : {
            "type" : "string",
            "description" : "Modifier"
          },
          "modify_time" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "Modify time, UTC Time with RFC3339 formated: 2024-01-01T00:00:00Z"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, unique in a tenant",
            "example" : "example_module_code"
          },
          "module_id" : {
            "type" : "string",
            "description" : "Module id, uuid"
          },
          "recovery_codes" : {
            "type" : "integer",
            "description" : "Recovery code count, specify if allow recovery codes"
          },
          "tenant" : {
            "type" : "string",
            "description" : "Tenant code"
          },
          "totp_algorithm" : {
            "type" : "string",
            "description" : "TOTP algorithm, algorithm of TOTP hash, default sha1, available values: sha1, sha256, sha512, md5",
            "example" : "SHA1"
          },
          "totp_digits" : {
            "type" : "integer",
            "description" : "TOTP digits, size of TOTP code, default 6, 6 or 8 is more popular, max 10",
            "example" : 6
          },
          "totp_issuer" : {
            "type" : "string",
            "description" : "TOTP issue, display as company name or service name",
            "example" : "InsureMO-Portal"
          },
          "totp_period" : {
            "type" : "integer",
            "description" : "TOTP period, number of seconds a TOTP hash is valid for. Defaults to 30 seconds.",
            "example" : 30
          },
          "verify_skew" : {
            "type" : "integer",
            "description" : "Skew when verifying, default is 1"
          }
        }
      },
      "UpdateCaptchaScenarioRequest" : {
        "type" : "object",
        "properties" : {
          "captcha_properties" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "CaptchaProperties is replaced whole rather than merged key by key: it has\nno schema, so its keys are not an enumerable namespace. Send the whole\nset, or list captcha_properties in unset_fields to clear it."
          },
          "captcha_type" : {
            "type" : "string",
            "description" : "Challenge type (e.g., image, slider, click)"
          },
          "captcha_vendor" : {
            "type" : "string",
            "description" : "CAPTCHA service vendor identifier"
          },
          "description" : {
            "type" : "string",
            "description" : "Scenario description"
          },
          "is_default" : {
            "type" : "boolean",
            "description" : "IsDefault is read-only here. It is accepted so that a scenario read from\nthe API can be posted back unchanged, and refused when it differs from\nthe stored value."
          },
          "scenario_name" : {
            "type" : "string",
            "description" : "Unique scenario name within the tenant"
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "Optional: clear fields, or ask for the whole scenario to be replaced"
          }
        },
        "required" : [ "scenario_name" ]
      },
      "UpdateOptions" : {
        "type" : "object",
        "properties" : {
          "full_update" : {
            "type" : "boolean",
            "description" : "FullUpdate restores the original replace-everything behavior: every\nwritable field is written, and anything the body left out is emptied."
          },
          "unset_fields" : {
            "type" : "array",
            "description" : "UnsetFields lists the fields to clear. This is the only way to clear\none: a null in the body reads as \"not sent\" so that posting back a read\nresponse is safe, which leaves clearing with no other spelling.",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "UpdatePasskeyDeviceRequest" : {
        "type" : "object",
        "properties" : {
          "description" : {
            "type" : "string",
            "description" : "Device description; clear it through unset_fields"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Current device alias (locates the device)"
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "External user ID"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code"
          },
          "new_device_alias" : {
            "type" : "string",
            "description" : "New device alias, unique per user; cannot be cleared"
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "UpdateOptions is optional: clear the description, or replace both fields."
          }
        },
        "required" : [ "device_alias", "external_user_id", "module_code" ]
      },
      "UpdatePasskeyModuleRequest" : {
        "type" : "object",
        "properties" : {
          "allow_usernameless" : {
            "type" : "boolean",
            "description" : "Allow usernameless login"
          },
          "description" : {
            "type" : "string",
            "description" : "Module description"
          },
          "limit_devices" : {
            "type" : "integer",
            "description" : "Max devices per user"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code"
          },
          "module_name" : {
            "type" : "string",
            "description" : "Module name"
          },
          "retention_days" : {
            "type" : "integer",
            "description" : "Days a credential may go unused; clear it through unset_fields to keep credentials until deleted"
          },
          "rp_display_name" : {
            "type" : "string",
            "description" : "Relying Party display name"
          },
          "rp_id" : {
            "type" : "string",
            "description" : "Relying Party ID (domain)"
          },
          "rp_origins" : {
            "type" : "string",
            "description" : "Allowed origins (JSON array)"
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "UpdateOptions is optional: clear fields, or ask for the whole module to\nbe replaced."
          }
        },
        "required" : [ "module_code" ]
      },
      "UpdatePasskeyUserRequest" : {
        "type" : "object",
        "properties" : {
          "display_name" : {
            "type" : "string",
            "description" : "Label for administrators; clear it through unset_fields"
          },
          "external_user_id" : {
            "type" : "string",
            "description" : "External user ID"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code; omit to update the user under every module"
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "UpdateOptions is optional: clear the display name."
          }
        },
        "required" : [ "external_user_id" ]
      },
      "UpdatePasskeyUserResult" : {
        "type" : "object",
        "properties" : {
          "users" : {
            "type" : "array",
            "description" : "The updated user rows, one per module, without credentials",
            "items" : {
              "$ref" : "#/components/schemas/PasskeyUser"
            }
          }
        }
      },
      "UpdateTOTPModuleRequest" : {
        "type" : "object",
        "properties" : {
          "description" : {
            "type" : "string",
            "description" : "Module description"
          },
          "limit_devices" : {
            "type" : "integer",
            "description" : "Limit devices, specify if allow multi-devices"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, unique in a tenant, only contains alpha-numbers. underscore and dash",
            "example" : "example_module_code",
            "maxLength" : 40
          },
          "recovery_codes" : {
            "type" : "integer",
            "description" : "Recovery code count, specify if allow recovery codes"
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "Optional: clear fields, or ask for the whole module to be replaced"
          },
          "verify_skew" : {
            "type" : "integer",
            "description" : "Skew when verifying, default is 1"
          }
        },
        "required" : [ "module_code" ]
      },
      "VerifyMFACaptchaRequest" : {
        "type" : "object",
        "properties" : {
          "business_code" : {
            "type" : "string",
            "description" : "Business code"
          },
          "result" : {
            "type" : "string",
            "description" : "User's answer to the CAPTCHA challenge"
          },
          "scenario_name" : {
            "type" : "string",
            "description" : "CAPTCHA scenario name"
          },
          "session_id" : {
            "type" : "string",
            "description" : "Session ID from the generate response"
          },
          "verify_id" : {
            "type" : "string",
            "description" : "Verification ID from the generate response"
          }
        },
        "required" : [ "result", "session_id", "verify_id" ]
      },
      "VerifyMFACaptchaResult" : {
        "type" : "object",
        "properties" : {
          "raw_message" : {
            "type" : "object"
          },
          "reason_code" : {
            "type" : "string",
            "description" : "Failure reason code, present when verified is false"
          },
          "reason_message" : {
            "type" : "string",
            "description" : "Failure reason message, present when verified is false"
          },
          "verified" : {
            "type" : "boolean",
            "description" : "Whether the CAPTCHA was verified successfully"
          }
        }
      },
      "VerifyMFAEmailRequest" : {
        "type" : "object",
        "properties" : {
          "business_code" : {
            "type" : "string",
            "description" : "Business code, must match the one used in send request"
          },
          "code" : {
            "type" : "string",
            "description" : "Verification code received from send request",
            "example" : "123456"
          },
          "mfa_context" : {
            "type" : "string",
            "description" : "Must match the mfa_context used in send request, max 500 characters",
            "maxLength" : 500
          },
          "output_result" : {
            "type" : "boolean",
            "description" : "If true, return result with verified=false instead of error response"
          },
          "sequence" : {
            "type" : "string",
            "description" : "Sequence from send response, required if generate_sequence was true"
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient phone number or email address"
          }
        },
        "required" : [ "code", "to" ]
      },
      "VerifyMFAResult" : {
        "type" : "object",
        "properties" : {
          "failed_attempts" : {
            "type" : "integer",
            "description" : "Failed attempts on the code so far, counting this one if it failed. Only present when output_result is true and the code was found"
          },
          "max_attempts" : {
            "type" : "integer",
            "description" : "Max failed attempts the code was sent with, 0 means unlimited. Only present when output_result is true and the code was found"
          },
          "reason" : {
            "type" : "string",
            "description" : "Failure reason, only present when output_result is true and verified is false"
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient phone number or email address"
          },
          "verified" : {
            "type" : "boolean",
            "description" : "Verify result"
          }
        }
      },
      "VerifyMFASMSRequest" : {
        "type" : "object",
        "properties" : {
          "business_code" : {
            "type" : "string",
            "description" : "Business code, must match the one used in send request"
          },
          "code" : {
            "type" : "string",
            "description" : "Verification code received from send request",
            "example" : "123456"
          },
          "mfa_context" : {
            "type" : "string",
            "description" : "Must match the mfa_context used in send request, max 500 characters",
            "maxLength" : 500
          },
          "output_result" : {
            "type" : "boolean",
            "description" : "If true, return result with verified=false instead of error response"
          },
          "sequence" : {
            "type" : "string",
            "description" : "Sequence from send response, required if generate_sequence was true"
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient phone number or email address"
          }
        },
        "required" : [ "code", "to" ]
      },
      "VerifyMFASocialRequest" : {
        "type" : "object",
        "properties" : {
          "business_code" : {
            "type" : "string",
            "description" : "Business code, must match the one used in send request"
          },
          "code" : {
            "type" : "string",
            "description" : "Verification code received from send request",
            "example" : "123456"
          },
          "mfa_context" : {
            "type" : "string",
            "description" : "Must match the mfa_context used in send request, max 500 characters",
            "maxLength" : 500
          },
          "output_result" : {
            "type" : "boolean",
            "description" : "If true, return result with verified=false instead of error response"
          },
          "sequence" : {
            "type" : "string",
            "description" : "Sequence from send response, required if generate_sequence was true"
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient phone number or email address"
          }
        },
        "required" : [ "code", "to" ]
      },
      "VerifyMFATOTPRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Account name"
          },
          "code" : {
            "type" : "string",
            "description" : "TOTP code",
            "example" : "112358"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Device alias"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, refer to TOTPModule",
            "example" : "example_module_code"
          },
          "output_result" : {
            "type" : "boolean",
            "description" : "Specify if you want return verify failure result instead of client error",
            "example" : true
          }
        },
        "required" : [ "account_name", "code", "module_code" ]
      },
      "VerifyMFAVoiceRequest" : {
        "type" : "object",
        "properties" : {
          "business_code" : {
            "type" : "string",
            "description" : "Business code, must match the one used in send request"
          },
          "code" : {
            "type" : "string",
            "description" : "Verification code received from send request",
            "example" : "123456"
          },
          "mfa_context" : {
            "type" : "string",
            "description" : "Must match the mfa_context used in send request, max 500 characters",
            "maxLength" : 500
          },
          "output_result" : {
            "type" : "boolean",
            "description" : "If true, return result with verified=false instead of error response"
          },
          "sequence" : {
            "type" : "string",
            "description" : "Sequence from send response, required if generate_sequence was true"
          },
          "to" : {
            "type" : "string",
            "description" : "Recipient phone number or email address"
          }
        },
        "required" : [ "code", "to" ]
      },
      "VerifyTOTPDeviceRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Account name"
          },
          "code" : {
            "type" : "string",
            "description" : "TOTP code",
            "example" : "112358"
          },
          "device_alias" : {
            "type" : "string",
            "description" : "Account alias"
          },
          "module_code" : {
            "type" : "string",
            "description" : "Module code, refer to TOTPModule",
            "example" : "example_module_code"
          }
        },
        "required" : [ "account_name", "code", "device_alias", "module_code" ]
      },
      "mfa.beginPasskeyRequest" : {
        "type" : "object",
        "properties" : {
          "external_user_id" : {
            "type" : "string",
            "description" : "Optional: if empty, uses usernameless mode"
          },
          "module_code" : {
            "type" : "string"
          }
        },
        "required" : [ "module_code" ]
      }
    }
  },
  "jsonSchemaDialect" : "https://spec.openapis.org/oas/3.1/dialect/base",
  "x-mo-gateway-auth-enabled" : true,
  "x-mo-gateway-cors-enabled" : true,
  "x-original-swagger-version" : "2.0"
}