{
  "openapi" : "3.1.0",
  "info" : {
    "title" : "SMS and Voice Channel",
    "description" : "SMS and Voice Channel APIs. Provides SMS/Voice message sending, account management, template management, signature management, and MFA verification via SMS and voice call.",
    "version" : "1.0"
  },
  "servers" : [ {
    "url" : "http://sns-service/"
  } ],
  "tags" : [ {
    "name" : "sms",
    "description" : "Core SMS sending operations. Send text messages through configured SMS providers with template-based content and signature support."
  }, {
    "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" : "voice",
    "description" : "Core voice call operations. Initiate voice calls with text-to-speech content through configured voice providers."
  }, {
    "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" : "sms-account",
    "description" : "SMS account lifecycle management. Configure AWS SNS, Alibaba Cloud, or regional SMS provider accounts for sending messages."
  }, {
    "name" : "sms-template",
    "description" : "SMS template management. Create and maintain reusable SMS content templates with variable placeholders for dynamic message generation."
  }, {
    "name" : "sms-sign",
    "description" : "SMS signature management. Manage SMS signatures (sign names) that appear at the beginning of messages to identify the sender."
  }, {
    "name" : "voice-account",
    "description" : "Voice account lifecycle management. Configure voice service provider accounts (AWS, Alibaba, Twilio) for initiating voice calls, including sharing across tenants."
  }, {
    "name" : "voice-template",
    "description" : "Voice template management. Create and maintain reusable voice call content templates with variable placeholders for dynamic speech generation."
  } ],
  "paths" : {
    "/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/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/sms/account/account-types" : {
      "get" : {
        "tags" : [ "sms-account" ],
        "summary" : "Get available SMS account types",
        "description" : "Retrieve the list of supported SMS service providers and their configuration options. Returns available account types with required configuration fields.",
        "operationId" : "GetSmsAccountTypes",
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ArrayResponseModel-WebType"
                }
              }
            }
          },
          "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/sms/account/add-one" : {
      "post" : {
        "tags" : [ "sms-account" ],
        "summary" : "Create a new SMS account",
        "description" : "Register a new SMS sending account with the specified provider configuration. Supports AWS SNS, Alibaba Cloud, and various regional SMS providers.",
        "operationId" : "AddSmsAccount",
        "requestBody" : {
          "description" : "add account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddSmsAccountRequest"
              }
            }
          },
          "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-codegen-request-body-name" : "body"
      }
    },
    "/sns/sms/account/delete-one" : {
      "post" : {
        "tags" : [ "sms-account" ],
        "summary" : "Delete an SMS account",
        "description" : "Permanently remove an SMS account configuration. This action cannot be undone and will prevent further message delivery through this account.",
        "operationId" : "DeleteSmsAccount",
        "requestBody" : {
          "description" : "delete account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteSmsAccountRequest"
              }
            }
          },
          "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/sms/account/query-many" : {
      "get" : {
        "tags" : [ "sms-account" ],
        "summary" : "List SMS accounts with pagination",
        "description" : "Retrieve a paginated list of SMS accounts for the current tenant. Supports filtering by account name and account type. Admin tenants can view all accounts across tenants.",
        "operationId" : "PagedListSmsAccounts",
        "parameters" : [ {
          "name" : "account_name_filter",
          "in" : "query",
          "description" : "account name filter condition",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "account_type",
          "in" : "query",
          "description" : "account type 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-SmsAccount"
                }
              }
            }
          },
          "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/sms/account/query-one" : {
      "get" : {
        "tags" : [ "sms-account" ],
        "summary" : "Get SMS account details",
        "description" : "Retrieve the configuration details of a specific SMS account by name. Returns account type, credentials, endpoint, and provider-specific settings.",
        "operationId" : "GetSmsAccount",
        "parameters" : [ {
          "name" : "name",
          "in" : "query",
          "description" : "get account request",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SmsAccount"
                }
              }
            }
          },
          "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/sms/account/set-default" : {
      "post" : {
        "tags" : [ "sms-account" ],
        "summary" : "Set default SMS account",
        "description" : "Designate an SMS account as the default sender for the current tenant. The default account is used when no account is explicitly specified in send requests.",
        "operationId" : "SetDefaultSmsAccount",
        "requestBody" : {
          "description" : "set default account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateSmsAccountDefaultRequest"
              }
            }
          },
          "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-codegen-request-body-name" : "body"
      }
    },
    "/sns/sms/account/share" : {
      "post" : {
        "tags" : [ "sms-account" ],
        "summary" : "Share SMS account to another tenant",
        "description" : "Share an SMS account configuration with a target tenant. Requires admin privileges. Duplicates the account credentials to the target tenant.",
        "operationId" : "ShareSmsAccount",
        "requestBody" : {
          "description" : "share account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ShareSmsAccountRequest"
              }
            }
          },
          "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-codegen-request-body-name" : "body"
      }
    },
    "/sns/sms/account/update-one" : {
      "post" : {
        "tags" : [ "sms-account" ],
        "summary" : "Update an existing SMS account",
        "description" : "Update an existing SMS account. Only the fields the request body carries a value for are written; anything left out keeps its stored value. A field sent as null counts as left out, so a whole account read back from the API can be posted here unchanged. To clear a field list it in update_options.unset_fields; to replace the whole account, clearing anything not sent, set update_options.full_update. The default account is changed through /sns/sms/account/set-default, not here.",
        "operationId" : "UpdateSmsAccount",
        "requestBody" : {
          "description" : "update account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateSmsAccountRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The updated account.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SmsAccount"
                }
              }
            }
          },
          "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/sms/send" : {
      "post" : {
        "tags" : [ "sms" ],
        "summary" : "Send an SMS message",
        "description" : "Send a text message to a recipient phone number through the configured SMS provider. Requires a template code and sign name. Supports template parameter substitution and automatic sign name prepending.",
        "operationId" : "SendSms",
        "requestBody" : {
          "description" : "send sms request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SendSMSRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SendSMSResult"
                }
              }
            }
          },
          "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/sms/senders" : {
      "get" : {
        "tags" : [ "sms" ],
        "summary" : "Get available SMS senders",
        "description" : "Deprecated: use /sns/sms/account/account-types instead. Retrieve the list of supported SMS service providers and their configuration options. Returns available sender types with required configuration fields.",
        "operationId" : "GetSmsSenders",
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ArrayResponseModel-WebType"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "deprecated" : true
      }
    },
    "/sns/sms/sign/add-one" : {
      "post" : {
        "tags" : [ "sms-sign" ],
        "summary" : "Create a new SMS signature",
        "description" : "Register a new SMS signature (sign name) for the current tenant. The signature identifies the sender and is displayed at the beginning of SMS messages.",
        "operationId" : "AddSmsSign",
        "requestBody" : {
          "description" : "add sign request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddSmsSignRequest"
              }
            }
          },
          "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-codegen-request-body-name" : "body"
      }
    },
    "/sns/sms/sign/delete-one" : {
      "post" : {
        "tags" : [ "sms-sign" ],
        "summary" : "Delete an SMS signature",
        "description" : "Permanently remove an SMS signature from the current tenant. Messages referencing this signature will no longer be able to use it.",
        "operationId" : "DeleteSmsSign",
        "requestBody" : {
          "description" : "delete sign request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteSmsSignRequest"
              }
            }
          },
          "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/sms/sign/query-many" : {
      "get" : {
        "tags" : [ "sms-sign" ],
        "summary" : "List SMS signatures with pagination",
        "description" : "Retrieve a paginated list of SMS signatures for the current tenant. Signatures are prepended to SMS messages to identify the sender organization.",
        "operationId" : "PagedListSmsSigns",
        "parameters" : [ {
          "name" : "sign_name_filter",
          "in" : "query",
          "description" : "sign 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-SmsSign"
                }
              }
            }
          },
          "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/sms/template/add-one" : {
      "post" : {
        "tags" : [ "sms-template" ],
        "summary" : "Create a new SMS template",
        "description" : "Create a reusable SMS content template with variable placeholders. The template code must be unique within the tenant. template_engine picks the placeholder syntax: simple (default, ${variable}) or handlebars ({{variable}}, {{#if}}). For vendors that host templates themselves (Aliyun, EngageLab, YF Life) the vendor-side code in sender_properties is what is sent, and content is not; GET /sns/sms/account/account-types names each vendor's entry as template_code_field. third_code is deprecated and only read for a vendor without its own entry.",
        "operationId" : "AddSmsTemplate",
        "requestBody" : {
          "description" : "add template request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddSmsTemplateRequest"
              }
            }
          },
          "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-codegen-request-body-name" : "body"
      }
    },
    "/sns/sms/template/delete-one" : {
      "post" : {
        "tags" : [ "sms-template" ],
        "summary" : "Delete an SMS template",
        "description" : "Permanently remove an SMS template by its template code. This action cannot be undone.",
        "operationId" : "DeleteSmsTemplate",
        "requestBody" : {
          "description" : "delete template request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteSmsTemplateRequest"
              }
            }
          },
          "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/sms/template/query-many" : {
      "get" : {
        "tags" : [ "sms-template" ],
        "summary" : "List SMS templates with pagination",
        "description" : "Retrieve a paginated list of SMS templates for the current tenant. Supports filtering by template code. Admin tenants can view all templates across tenants.",
        "operationId" : "PagedListSmsTemplates",
        "parameters" : [ {
          "name" : "template_code_filter",
          "in" : "query",
          "description" : "template 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-SmsTemplate"
                }
              }
            }
          },
          "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/sms/template/query-one" : {
      "get" : {
        "tags" : [ "sms-template" ],
        "summary" : "Get SMS template by code",
        "description" : "Retrieve a specific SMS template by its unique template code. Returns the template content and metadata. Pass the code as template_code; code is deprecated and only read when template_code is absent.",
        "operationId" : "GetSmsTemplate",
        "parameters" : [ {
          "name" : "template_code",
          "in" : "query",
          "description" : "template code, required unless the deprecated code is given",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        }, {
          "name" : "code",
          "in" : "query",
          "description" : "Deprecated: use template_code instead",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string",
            "x-deprecated" : true
          },
          "x-deprecated" : true
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SmsTemplate"
                }
              }
            }
          },
          "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/sms/template/update-one" : {
      "post" : {
        "tags" : [ "sms-template" ],
        "summary" : "Update an existing SMS template",
        "description" : "Modify an existing SMS template identified by its template code. Only the fields carried with a non-null value are written; clear a field with update_options.unset_fields.",
        "operationId" : "UpdateSmsTemplate",
        "requestBody" : {
          "description" : "update template request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateSmsTemplateRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The updated template.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SmsTemplate"
                }
              }
            }
          },
          "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/voice/account/account-types" : {
      "get" : {
        "tags" : [ "voice-account" ],
        "summary" : "Get available voice account types",
        "description" : "Retrieve the list of supported voice service providers and their configuration options. Returns available account types with required configuration fields.",
        "operationId" : "GetVoiceAccountTypes",
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ArrayResponseModel-WebType"
                }
              }
            }
          },
          "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/voice/account/add-one" : {
      "post" : {
        "tags" : [ "voice-account" ],
        "summary" : "Create a new voice account",
        "description" : "Register a new voice service provider account with the specified configuration. Supports AWS, Alibaba Cloud, and Twilio voice providers.",
        "operationId" : "AddVoiceAccount",
        "requestBody" : {
          "description" : "add account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddVoiceAccountRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceAccount"
                }
              }
            }
          },
          "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/voice/account/delete-one" : {
      "post" : {
        "tags" : [ "voice-account" ],
        "summary" : "Delete a voice account",
        "description" : "Permanently remove a voice account configuration. This action cannot be undone.",
        "operationId" : "DeleteVoiceAccount",
        "requestBody" : {
          "description" : "delete account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteVoiceAccountRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceAccount"
                }
              }
            }
          },
          "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/voice/account/query-many" : {
      "get" : {
        "tags" : [ "voice-account" ],
        "summary" : "List voice accounts with pagination",
        "description" : "Retrieve a paginated list of voice accounts for the current tenant. Supports filtering by account name and sender type.",
        "operationId" : "PagedListVoiceAccounts",
        "parameters" : [ {
          "name" : "account_name_filter",
          "in" : "query",
          "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" : "sender_type",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResponseModel-VoiceAccount"
                }
              }
            }
          },
          "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/voice/account/query-one" : {
      "get" : {
        "tags" : [ "voice-account" ],
        "summary" : "Get voice account details",
        "description" : "Retrieve the configuration details of a specific voice account by name. Returns sender type, endpoint, region, and provider-specific properties.",
        "operationId" : "GetVoiceAccount",
        "parameters" : [ {
          "name" : "account_name",
          "in" : "query",
          "description" : "account 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-VoiceAccount"
                }
              }
            }
          },
          "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/voice/account/set-default" : {
      "post" : {
        "tags" : [ "voice-account" ],
        "summary" : "Set default voice account",
        "description" : "Designate a voice account as the default for the current tenant. The default account is used when no account is explicitly specified in send requests.",
        "operationId" : "SetDefaultVoiceAccount",
        "requestBody" : {
          "description" : "set default account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SetDefaultVoiceAccountRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceAccount"
                }
              }
            }
          },
          "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/voice/account/share-one" : {
      "post" : {
        "tags" : [ "voice-account" ],
        "summary" : "Share voice account to another tenant",
        "description" : "Share a voice account configuration with a destination tenant. Requires admin privileges.",
        "operationId" : "ShareVoiceAccount",
        "requestBody" : {
          "description" : "share account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ShareVoiceAccountRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceAccount"
                }
              }
            }
          },
          "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/voice/account/shared/delete-one" : {
      "post" : {
        "tags" : [ "voice-account" ],
        "summary" : "Remove a shared voice account from target tenant",
        "description" : "Revoke a previously shared voice account from the specified destination tenant. The original account remains unaffected.",
        "operationId" : "DeleteSharedVoiceAccount",
        "requestBody" : {
          "description" : "delete share account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteSharedVoiceAccountRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceAccount"
                }
              }
            }
          },
          "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" : "Remove this shared voice account from the target tenant? That tenant loses access to it."
        },
        "x-codegen-request-body-name" : "body"
      }
    },
    "/sns/voice/account/shared/query-many" : {
      "get" : {
        "tags" : [ "voice-account" ],
        "summary" : "List shared voice accounts with pagination",
        "description" : "Retrieve a paginated list of voice accounts shared from the current tenant to other tenants.",
        "operationId" : "PagedListSharedVoiceAccounts",
        "parameters" : [ {
          "name" : "account_name",
          "in" : "query",
          "required" : true,
          "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
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResponseModel-VoiceAccount"
                }
              }
            }
          },
          "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/voice/account/update-one" : {
      "post" : {
        "tags" : [ "voice-account" ],
        "summary" : "Update an existing voice account",
        "description" : "Update an existing voice account. Only the fields the request body carries a value for are written; anything left out keeps its stored value. A field sent as null counts as left out, so a whole account read back from the API can be posted here unchanged, masked secret and all. To clear a field list it in update_options.unset_fields — a provider setting is named by its path, and naming a whole block clears everything under it. To replace the whole account, clearing anything not sent, set update_options.full_update. The default account is changed through /sns/voice/account/set-default, not here.",
        "operationId" : "UpdateVoiceAccount",
        "requestBody" : {
          "description" : "update account request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateVoiceAccountRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The updated account.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceAccount"
                }
              }
            }
          },
          "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/voice/send" : {
      "post" : {
        "tags" : [ "voice" ],
        "summary" : "Send a voice call",
        "description" : "Initiate an automated voice call to a recipient phone number. The call delivers text-to-speech content rendered from the specified template with parameter substitution.",
        "operationId" : "SendVoice",
        "requestBody" : {
          "description" : "send voice request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SendVoiceRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-SendVoiceResult"
                }
              }
            }
          },
          "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/voice/senders" : {
      "get" : {
        "tags" : [ "voice" ],
        "summary" : "Get available voice senders",
        "description" : "Deprecated: use /sns/voice/account/account-types instead. Retrieve the list of supported voice service providers and their configuration options. Returns available sender types with required configuration fields.",
        "operationId" : "GetVoiceSenders",
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ArrayResponseModel-WebType"
                }
              }
            }
          },
          "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"
                }
              }
            }
          }
        },
        "deprecated" : true
      }
    },
    "/sns/voice/template/add-one" : {
      "post" : {
        "tags" : [ "voice-template" ],
        "summary" : "Create a new voice template",
        "description" : "Create a reusable voice call content template with variable placeholders and provider-specific properties for dynamic speech generation. template_engine picks the placeholder syntax: simple (default, ${variable}) or handlebars ({{variable}}, {{#if}}); with template_type voice the content is SSML and handlebars escapes the values. For vendors that host templates themselves (Aliyun, EngageLab) the vendor-side code in sender_properties is what is sent, and content is not.",
        "operationId" : "AddVoiceTemplate",
        "requestBody" : {
          "description" : "add template request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AddVoiceTemplateRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceTemplate"
                }
              }
            }
          },
          "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/voice/template/delete-one" : {
      "post" : {
        "tags" : [ "voice-template" ],
        "summary" : "Delete a voice template",
        "description" : "Permanently remove a voice template by its template code. This action cannot be undone.",
        "operationId" : "DeleteVoiceTemplate",
        "requestBody" : {
          "description" : "delete template request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DeleteVoiceTemplateRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceTemplate"
                }
              }
            }
          },
          "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/voice/template/query-many" : {
      "get" : {
        "tags" : [ "voice-template" ],
        "summary" : "List voice templates with pagination",
        "description" : "Retrieve a paginated list of voice templates for the current tenant. Supports filtering by template code.",
        "operationId" : "PagedListVoiceTemplates",
        "parameters" : [ {
          "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" : "template_code_filter",
          "in" : "query",
          "required" : false,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/PagedResponseModel-VoiceTemplate"
                }
              }
            }
          },
          "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/voice/template/query-one" : {
      "get" : {
        "tags" : [ "voice-template" ],
        "summary" : "Get voice template by code",
        "description" : "Retrieve a specific voice template by its unique template code. Returns the template content, type, and provider-specific properties.",
        "operationId" : "GetVoiceTemplate",
        "parameters" : [ {
          "name" : "template_code",
          "in" : "query",
          "description" : "template code",
          "required" : true,
          "style" : "form",
          "explode" : true,
          "schema" : {
            "type" : "string"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceTemplate"
                }
              }
            }
          },
          "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/voice/template/update-one" : {
      "post" : {
        "tags" : [ "voice-template" ],
        "summary" : "Update an existing voice template",
        "description" : "Modify the content, type, or provider-specific properties of an existing voice template.",
        "operationId" : "UpdateVoiceTemplate",
        "requestBody" : {
          "description" : "update template request",
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/UpdateVoiceTemplateRequest"
              }
            }
          },
          "required" : true
        },
        "responses" : {
          "200" : {
            "description" : "The API execution results.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DataResponseModel-VoiceTemplate"
                }
              }
            }
          },
          "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" : {
      "AddSmsAccountRequest" : {
        "type" : "object",
        "properties" : {
          "access_key" : {
            "type" : "string",
            "description" : "Access key for the SMS provider"
          },
          "account_name" : {
            "type" : "string",
            "description" : "SMS account name, max 40 characters",
            "maxLength" : 40
          },
          "account_type" : {
            "type" : "string",
            "description" : "SMS service provider type"
          },
          "aws_configuration_set_name" : {
            "type" : "string",
            "description" : "AWS SNS configuration set name"
          },
          "aws_in_entity_id" : {
            "type" : "string",
            "description" : "AWS India entity ID for DLT registration"
          },
          "aws_origination_number" : {
            "type" : "string",
            "description" : "AWS origination phone number"
          },
          "aws_sender_id" : {
            "type" : "string",
            "description" : "AWS sender ID displayed to recipients"
          },
          "default_config" : {
            "type" : "boolean",
            "description" : "Whether this account is the default sender for the tenant"
          },
          "elen_secret_key" : {
            "type" : "string",
            "description" : "eLengo provider secret key"
          },
          "endpoint" : {
            "type" : "string",
            "description" : "SMS provider API endpoint URL"
          },
          "secret_key" : {
            "type" : "string",
            "description" : "Secret key for the SMS provider"
          },
          "th_kong_auth_code" : {
            "type" : "string",
            "description" : "Thailand Kong provider auth code"
          },
          "th_kong_grant_type" : {
            "type" : "string",
            "description" : "Thailand Kong provider grant type"
          },
          "th_kong_sender_id" : {
            "type" : "string",
            "description" : "Thailand Kong provider sender ID"
          }
        },
        "required" : [ "access_key", "account_name", "account_type", "secret_key" ]
      },
      "AddSmsSignRequest" : {
        "type" : "object",
        "properties" : {
          "sign_name" : {
            "type" : "string",
            "description" : "SMS signature name, max 40 characters",
            "maxLength" : 40
          }
        },
        "required" : [ "sign_name" ]
      },
      "AddSmsTemplateRequest" : {
        "type" : "object",
        "properties" : {
          "content" : {
            "type" : "string",
            "description" : "SMS message content template with variable placeholders"
          },
          "sender_properties" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/SmsTemplateSenderProperties"
            } ],
            "description" : "Vendor-side template codes, one per vendor"
          },
          "template_code" : {
            "type" : "string",
            "description" : "Unique template code within the tenant, max 40 characters",
            "maxLength" : 40
          },
          "template_engine" : {
            "type" : "string",
            "description" : "How content is rendered: simple (default, ${variable}) or handlebars ({{variable}}). Ignored by vendors that host the template themselves",
            "enum" : [ "simple", "handlebars" ]
          },
          "third_code" : {
            "type" : "string",
            "description" : "Deprecated: fill the vendor's own entry in sender_properties instead (account-types names it as template_code_field). Still used for any vendor without one",
            "x-deprecated" : true
          }
        },
        "required" : [ "content", "template_code" ]
      },
      "AddVoiceAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Voice account name"
          },
          "description" : {
            "type" : "string",
            "description" : "Account description"
          },
          "is_default" : {
            "type" : "boolean",
            "description" : "Whether this is the default voice account"
          },
          "sender_endpoint" : {
            "type" : "string",
            "description" : "Voice provider API endpoint URL"
          },
          "sender_properties" : {
            "$ref" : "#/components/schemas/VoiceAccountSenderProperties"
          },
          "sender_region" : {
            "type" : "string",
            "description" : "Cloud provider region for the voice service"
          },
          "sender_secret" : {
            "type" : "string",
            "description" : "Authentication secret for the voice provider"
          },
          "sender_type" : {
            "type" : "string",
            "description" : "Voice service provider type (e.g., aws, alibaba, twilio)"
          },
          "sender_user" : {
            "type" : "string",
            "description" : "Authentication username or access key for the voice provider"
          }
        },
        "required" : [ "account_name", "sender_type" ]
      },
      "AddVoiceTemplateRequest" : {
        "type" : "object",
        "properties" : {
          "content" : {
            "type" : "string",
            "description" : "Voice message content template with variable placeholders"
          },
          "description" : {
            "type" : "string",
            "description" : "Template description"
          },
          "sender_properties" : {
            "$ref" : "#/components/schemas/VoiceTemplateSenderProperties"
          },
          "template_code" : {
            "type" : "string",
            "description" : "Unique template code within the tenant"
          },
          "template_engine" : {
            "type" : "string",
            "description" : "How content is rendered: simple (default, ${variable}) or handlebars ({{variable}}). Ignored by vendors that host the template themselves",
            "enum" : [ "simple", "handlebars" ]
          },
          "template_type" : {
            "type" : "string",
            "description" : "Voice template type: text (default) or voice (SSML for AWS, a voice file for Aliyun)"
          }
        },
        "required" : [ "content", "template_code" ]
      },
      "ArrayResponseModel-WebType" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/WebType"
            }
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "total" : {
            "type" : "integer"
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "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-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-SendSMSResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/SendSMSResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-SendVoiceResult" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/SendVoiceResult"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-SmsAccount" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/SmsAccount"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-SmsTemplate" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/SmsTemplate"
          },
          "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"
          }
        }
      },
      "DataResponseModel-VoiceAccount" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/VoiceAccount"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DataResponseModel-VoiceTemplate" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "data" : {
            "$ref" : "#/components/schemas/VoiceTemplate"
          },
          "date" : {
            "type" : "string"
          },
          "env_name" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "message_params" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "trace_id" : {
            "type" : "string"
          }
        }
      },
      "DeleteSharedVoiceAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Name of the shared voice account to remove"
          },
          "destination_tenant" : {
            "type" : "string",
            "description" : "Tenant code to revoke sharing from"
          }
        },
        "required" : [ "account_name", "destination_tenant" ]
      },
      "DeleteSmsAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Name of the SMS account to delete"
          }
        },
        "required" : [ "account_name" ]
      },
      "DeleteSmsSignRequest" : {
        "type" : "object",
        "properties" : {
          "sign_name" : {
            "type" : "string",
            "description" : "SMS signature name to delete",
            "maxLength" : 40
          }
        },
        "required" : [ "sign_name" ]
      },
      "DeleteSmsTemplateRequest" : {
        "type" : "object",
        "properties" : {
          "template_code" : {
            "type" : "string",
            "description" : "Template code to delete",
            "maxLength" : 40
          }
        },
        "required" : [ "template_code" ]
      },
      "DeleteVoiceAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Name of the voice account to delete"
          }
        },
        "required" : [ "account_name" ]
      },
      "DeleteVoiceTemplateRequest" : {
        "type" : "object",
        "properties" : {
          "template_code" : {
            "type" : "string",
            "description" : "Template code to delete"
          }
        },
        "required" : [ "template_code" ]
      },
      "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"
          }
        }
      },
      "PagedResponseModel-SmsAccount" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/SmsAccount"
            }
          },
          "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-SmsSign" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/SmsSign"
            }
          },
          "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-SmsTemplate" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/SmsTemplate"
            }
          },
          "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-VoiceAccount" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/VoiceAccount"
            }
          },
          "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-VoiceTemplate" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "current_page" : {
            "type" : "integer"
          },
          "data" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/VoiceTemplate"
            }
          },
          "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"
          }
        }
      },
      "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"
          }
        }
      },
      "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" ]
      },
      "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" ]
      },
      "SendSMSRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Specify the sms account name, please manually configure in the console"
          },
          "auto_add_sign" : {
            "type" : "boolean",
            "description" : "automatic add sign name at start of content"
          },
          "sender_params" : {
            "type" : "object",
            "additionalProperties" : {
              "type" : "string"
            },
            "description" : "parameter for senders"
          },
          "sign_name" : {
            "type" : "string",
            "description" : "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, must be specified in E.164 format or local phone number."
          },
          "use_zh_bracket" : {
            "type" : "boolean",
            "description" : "use zh format bracket '【】' instead of '[]'"
          }
        },
        "required" : [ "sign_name", "template_code", "to" ]
      },
      "SendSMSResult" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object"
          },
          "message_id" : {
            "type" : "string"
          },
          "to" : {
            "type" : "string"
          }
        }
      },
      "SendVoiceRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Specify the Voice account name, please manually configure in the console"
          },
          "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, must be specified in E.164 format or local phone number."
          }
        },
        "required" : [ "template_code", "to" ]
      },
      "SendVoiceResult" : {
        "type" : "object",
        "properties" : {
          "data" : {
            "type" : "object"
          },
          "message_id" : {
            "type" : "string"
          },
          "to" : {
            "type" : "string"
          }
        }
      },
      "SetDefaultVoiceAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Name of the voice account to set as default"
          },
          "default_config" : {
            "type" : "boolean",
            "description" : "Whether to set this account as the default"
          }
        },
        "required" : [ "account_name" ]
      },
      "ShareSmsAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Name of the SMS account to share"
          },
          "target_tenant" : {
            "type" : "string",
            "description" : "Target tenant code to share the account with"
          }
        },
        "required" : [ "account_name", "target_tenant" ]
      },
      "ShareVoiceAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Name of the voice account to share"
          },
          "description" : {
            "type" : "string",
            "description" : "Description for the shared account"
          },
          "destination_tenant" : {
            "type" : "string",
            "description" : "Target tenant code to share the account with"
          },
          "is_default" : {
            "type" : "boolean",
            "description" : "Whether to set as default in the destination tenant"
          }
        },
        "required" : [ "account_name", "destination_tenant" ]
      },
      "SmsAccount" : {
        "type" : "object",
        "properties" : {
          "access_key" : {
            "type" : "string"
          },
          "account_name" : {
            "type" : "string"
          },
          "account_type" : {
            "type" : "string"
          },
          "aws_configuration_set_name" : {
            "type" : "string",
            "description" : "AWS SNS configuration set name"
          },
          "aws_in_entity_id" : {
            "type" : "string",
            "description" : "AWS India entity ID for DLT registration"
          },
          "aws_origination_number" : {
            "type" : "string",
            "description" : "AWS origination phone number"
          },
          "aws_sender_id" : {
            "type" : "string",
            "description" : "AWS sender ID displayed to recipients"
          },
          "create_time" : {
            "type" : "string",
            "format" : "date-time"
          },
          "default_config" : {
            "type" : "boolean"
          },
          "elen_secret_key" : {
            "type" : "string",
            "description" : "eLengo provider secret key"
          },
          "endpoint" : {
            "type" : "string"
          },
          "guid" : {
            "type" : "string"
          },
          "secret_key" : {
            "type" : "string"
          },
          "tenant" : {
            "type" : "string"
          },
          "th_kong_auth_code" : {
            "type" : "string",
            "description" : "Thailand Kong provider auth code"
          },
          "th_kong_grant_type" : {
            "type" : "string",
            "description" : "Thailand Kong provider grant type"
          },
          "th_kong_sender_id" : {
            "type" : "string",
            "description" : "Thailand Kong provider sender ID"
          },
          "update_time" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "SmsSign" : {
        "type" : "object",
        "properties" : {
          "create_time" : {
            "type" : "string",
            "format" : "date-time"
          },
          "creator" : {
            "type" : "string"
          },
          "guid" : {
            "type" : "string"
          },
          "sign_name" : {
            "type" : "string",
            "maxLength" : 40
          },
          "tenant" : {
            "type" : "string"
          },
          "update_time" : {
            "type" : "string",
            "format" : "date-time"
          }
        },
        "required" : [ "sign_name" ]
      },
      "SmsTemplate" : {
        "type" : "object",
        "properties" : {
          "content" : {
            "type" : "string"
          },
          "create_time" : {
            "type" : "string",
            "format" : "date-time"
          },
          "creator" : {
            "type" : "string"
          },
          "guid" : {
            "type" : "string"
          },
          "sender_properties" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/SmsTemplateSenderProperties"
            } ],
            "description" : "Vendor-side template codes, one per vendor"
          },
          "template_code" : {
            "type" : "string"
          },
          "template_engine" : {
            "type" : "string",
            "description" : "How content is rendered: simple (default, ${variable}) or handlebars ({{variable}})"
          },
          "tenant" : {
            "type" : "string"
          },
          "third_code" : {
            "type" : "string",
            "description" : "Deprecated: fill the vendor's own entry in sender_properties instead (account-types names it as template_code_field). Still used for any vendor without one",
            "x-deprecated" : true
          },
          "update_time" : {
            "type" : "string",
            "format" : "date-time"
          }
        }
      },
      "SmsTemplateSenderProperties" : {
        "type" : "object",
        "properties" : {
          "aliyun_template_code" : {
            "type" : "string",
            "description" : "Aliyun SMS template code"
          },
          "aws_dlt_template_id" : {
            "type" : "string",
            "description" : "AWS End User Messaging: India DLT template id, sent with messages to +91 numbers"
          },
          "engage_lab_template_code" : {
            "type" : "string",
            "description" : "EngageLab template id"
          },
          "yflife_template_code" : {
            "type" : "string",
            "description" : "YF Life template code"
          }
        }
      },
      "TemplateMode" : {
        "type" : "string",
        "enum" : [ "content", "registered_content", "vendor_template" ],
        "x-enum-varnames" : [ "TemplateModeContent", "TemplateModeRegisteredContent", "TemplateModeVendorTemplate" ]
      },
      "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"
            }
          }
        }
      },
      "UpdateSmsAccountDefaultRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Name of the SMS account to set as default"
          },
          "default_config" : {
            "type" : "boolean",
            "description" : "Whether to set this account as the default sender"
          }
        },
        "required" : [ "account_name" ]
      },
      "UpdateSmsAccountRequest" : {
        "type" : "object",
        "properties" : {
          "access_key" : {
            "type" : "string",
            "description" : "Access key for the SMS provider"
          },
          "account_name" : {
            "type" : "string",
            "description" : "SMS account name, max 40 characters"
          },
          "account_type" : {
            "type" : "string",
            "description" : "SMS service provider type"
          },
          "aws_configuration_set_name" : {
            "type" : "string",
            "description" : "AWS SNS configuration set name"
          },
          "aws_in_entity_id" : {
            "type" : "string",
            "description" : "AWS India entity ID for DLT registration"
          },
          "aws_origination_number" : {
            "type" : "string",
            "description" : "AWS origination phone number"
          },
          "aws_sender_id" : {
            "type" : "string",
            "description" : "AWS sender ID displayed to recipients"
          },
          "default_config" : {
            "type" : "boolean",
            "description" : "DefaultConfig is read-only here. It is accepted so that an account read\nfrom the API can be posted back unchanged, and refused when it differs\nfrom the stored value: use /sns/sms/account/set-default to change it."
          },
          "elen_secret_key" : {
            "type" : "string",
            "description" : "eLengo provider secret key"
          },
          "endpoint" : {
            "type" : "string",
            "description" : "SMS provider API endpoint URL"
          },
          "secret_key" : {
            "type" : "string",
            "description" : "Secret key for the SMS provider; send back the masked value a read returned to keep the stored key"
          },
          "th_kong_auth_code" : {
            "type" : "string",
            "description" : "Thailand Kong provider auth code"
          },
          "th_kong_grant_type" : {
            "type" : "string",
            "description" : "Thailand Kong provider grant type"
          },
          "th_kong_sender_id" : {
            "type" : "string",
            "description" : "Thailand Kong provider sender ID"
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "Optional: clear fields, or ask for the whole account to be replaced"
          }
        },
        "required" : [ "account_name" ]
      },
      "UpdateSmsTemplateRequest" : {
        "type" : "object",
        "properties" : {
          "content" : {
            "type" : "string",
            "description" : "SMS message content template with variable placeholders"
          },
          "sender_properties" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/SmsTemplateSenderProperties"
            } ],
            "description" : "Vendor-side template codes, one per vendor"
          },
          "template_code" : {
            "type" : "string",
            "description" : "Unique template code within the tenant, max 40 characters"
          },
          "template_engine" : {
            "type" : "string",
            "description" : "How content is rendered: simple (default, ${variable}) or handlebars ({{variable}}). Ignored by vendors that host the template themselves",
            "enum" : [ "simple", "handlebars" ]
          },
          "third_code" : {
            "type" : "string",
            "description" : "Deprecated: fill the vendor's own entry in sender_properties instead (account-types names it as template_code_field). Still used for any vendor without one",
            "x-deprecated" : true
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "Optional: clear fields, or ask for the whole template to be replaced"
          }
        },
        "required" : [ "template_code" ]
      },
      "UpdateVoiceAccountRequest" : {
        "type" : "object",
        "properties" : {
          "account_name" : {
            "type" : "string",
            "description" : "Voice account name"
          },
          "description" : {
            "type" : "string",
            "description" : "Account description"
          },
          "is_default" : {
            "type" : "boolean",
            "description" : "IsDefault is read-only here. It is accepted so that an account read from\nthe API can be posted back unchanged, and refused when it differs from\nthe stored value: use /sns/voice/account/set-default to change it."
          },
          "sender_endpoint" : {
            "type" : "string",
            "description" : "Voice provider API endpoint URL"
          },
          "sender_properties" : {
            "$ref" : "#/components/schemas/VoiceAccountSenderProperties"
          },
          "sender_region" : {
            "type" : "string",
            "description" : "Cloud provider region for the voice service"
          },
          "sender_secret" : {
            "type" : "string",
            "description" : "Authentication secret; send back the masked value a read returned to keep the stored one"
          },
          "sender_type" : {
            "type" : "string",
            "description" : "Voice service provider type (e.g., aws, alibaba, twilio)"
          },
          "sender_user" : {
            "type" : "string",
            "description" : "Authentication username or access key for the voice provider"
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "Optional: clear fields, or ask for the whole account to be replaced"
          }
        },
        "required" : [ "account_name" ]
      },
      "UpdateVoiceTemplateRequest" : {
        "type" : "object",
        "properties" : {
          "content" : {
            "type" : "string",
            "description" : "Voice message content template with variable placeholders"
          },
          "description" : {
            "type" : "string",
            "description" : "Template description"
          },
          "sender_properties" : {
            "$ref" : "#/components/schemas/VoiceTemplateSenderProperties"
          },
          "template_code" : {
            "type" : "string",
            "description" : "Unique template code within the tenant"
          },
          "template_engine" : {
            "type" : "string",
            "description" : "How content is rendered: simple (default, ${variable}) or handlebars ({{variable}}). Ignored by vendors that host the template themselves",
            "enum" : [ "simple", "handlebars" ]
          },
          "template_type" : {
            "type" : "string",
            "description" : "Voice template type: text (default) or voice (SSML for AWS, a voice file for Aliyun)"
          },
          "update_options" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/UpdateOptions"
            } ],
            "description" : "Optional: clear fields, or ask for the whole template to be replaced"
          }
        },
        "required" : [ "template_code" ]
      },
      "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" ]
      },
      "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" ]
      },
      "VoiceAWSVoiceProperties" : {
        "type" : "object",
        "properties" : {
          "configuration_set_name" : {
            "type" : "string"
          },
          "origination_identity" : {
            "type" : "string"
          },
          "voice_id" : {
            "type" : "string"
          }
        }
      },
      "VoiceAccount" : {
        "type" : "object",
        "properties" : {
          "account_id" : {
            "type" : "string"
          },
          "account_name" : {
            "type" : "string"
          },
          "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"
          },
          "is_default" : {
            "type" : "boolean"
          },
          "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"
          },
          "sender_endpoint" : {
            "type" : "string"
          },
          "sender_properties" : {
            "$ref" : "#/components/schemas/VoiceAccountSenderProperties"
          },
          "sender_region" : {
            "type" : "string"
          },
          "sender_secret" : {
            "type" : "string"
          },
          "sender_type" : {
            "type" : "string"
          },
          "sender_user" : {
            "type" : "string"
          },
          "tenant" : {
            "type" : "string"
          }
        }
      },
      "VoiceAccountSenderProperties" : {
        "type" : "object",
        "properties" : {
          "ali_voice_properties" : {
            "$ref" : "#/components/schemas/VoiceAliVoiceProperties"
          },
          "aws_voice_properties" : {
            "$ref" : "#/components/schemas/VoiceAWSVoiceProperties"
          },
          "twilio_voice_properties" : {
            "$ref" : "#/components/schemas/VoiceTwilioVoiceProperties"
          }
        }
      },
      "VoiceAliVoiceProperties" : {
        "type" : "object",
        "properties" : {
          "called_show_number" : {
            "type" : "string"
          }
        }
      },
      "VoiceTemplate" : {
        "type" : "object",
        "properties" : {
          "content" : {
            "type" : "string"
          },
          "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"
          },
          "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"
          },
          "sender_properties" : {
            "$ref" : "#/components/schemas/VoiceTemplateSenderProperties"
          },
          "template_code" : {
            "type" : "string"
          },
          "template_engine" : {
            "type" : "string",
            "description" : "How content is rendered: simple (default, ${variable}) or handlebars ({{variable}})"
          },
          "template_id" : {
            "type" : "string"
          },
          "template_type" : {
            "type" : "string"
          },
          "tenant" : {
            "type" : "string"
          }
        }
      },
      "VoiceTemplateSenderProperties" : {
        "type" : "object",
        "properties" : {
          "ali_voice_code" : {
            "type" : "string"
          },
          "engage_lab_template_code" : {
            "type" : "string"
          }
        }
      },
      "VoiceTwilioVoiceProperties" : {
        "type" : "object",
        "properties" : {
          "call_from" : {
            "type" : "string"
          }
        }
      },
      "WebOption" : {
        "type" : "object",
        "properties" : {
          "enums" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "extend_model" : {
            "type" : "boolean"
          },
          "extend_model_name" : {
            "type" : "string"
          },
          "label" : {
            "type" : "string"
          },
          "model" : {
            "type" : "string"
          },
          "placeholder" : {
            "type" : "string"
          },
          "required" : {
            "type" : "boolean"
          },
          "type" : {
            "$ref" : "#/components/schemas/WebOptionType"
          }
        }
      },
      "WebOptionType" : {
        "type" : "string",
        "enum" : [ "text", "number", "selector", "secret" ],
        "x-enum-varnames" : [ "WebOptionTypeText", "WebOptionTypeNumber", "WebOptionTypeSelector", "WebOptionTypeSecret" ]
      },
      "WebType" : {
        "type" : "object",
        "properties" : {
          "aliases" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "description" : {
            "type" : "string"
          },
          "disabled" : {
            "type" : "boolean"
          },
          "index" : {
            "type" : "integer"
          },
          "label" : {
            "type" : "string"
          },
          "options" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/WebOption"
            }
          },
          "tags" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "template_code_field" : {
            "type" : "string",
            "description" : "TemplateCodeField is the entry of a template's sender_properties that\nholds this vendor's template code, for a form to ask for that one. Empty\nfor a vendor that takes no code."
          },
          "template_mode" : {
            "allOf" : [ {
              "$ref" : "#/components/schemas/TemplateMode"
            } ],
            "description" : "TemplateMode is what an SMS or voice vendor takes from a template. Empty\nfor the other channels."
          },
          "value" : {
            "type" : "string"
          }
        }
      }
    }
  },
  "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"
}