tencentcloud-sdk-captcha 3.0.716 → 3.0.718
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190722/client.rb +24 -0
- data/lib/v20190722/models.rb +169 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd65b345bd80a5672fb26d5bf8431964de695dff
|
4
|
+
data.tar.gz: 69472d750d30e097e902f58ece3c98723c19050b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9f3f2d9e7b0083029df9fc6923a265a112c1b9c3d25f4b2c23442ea011526aee013859d5cc87b26808e441acd7299c3449677fe0aecbc77a3617f5a95ecd46f
|
7
|
+
data.tar.gz: a32fc267c6be94d49ebf296b01cd10498b9267f8f4dea6d8403157c1024dabd7799340ef75e0af1d6343d72f9d3f63235bdafbf57666d1d0a1b213e45c480dfa
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.718
|
data/lib/v20190722/client.rb
CHANGED
@@ -245,6 +245,30 @@ module TencentCloud
|
|
245
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
246
|
end
|
247
247
|
|
248
|
+
# Rce融合验证核查验证码票据结果(Web及APP)
|
249
|
+
|
250
|
+
# @param request: Request instance for DescribeCaptchaRceResult.
|
251
|
+
# @type request: :class:`Tencentcloud::captcha::V20190722::DescribeCaptchaRceResultRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::captcha::V20190722::DescribeCaptchaRceResultResponse`
|
253
|
+
def DescribeCaptchaRceResult(request)
|
254
|
+
body = send_request('DescribeCaptchaRceResult', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = DescribeCaptchaRceResultResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
248
272
|
# 核查验证码票据结果(Web及APP)
|
249
273
|
|
250
274
|
# @param request: Request instance for DescribeCaptchaResult.
|
data/lib/v20190722/models.rb
CHANGED
@@ -1033,6 +1033,123 @@ module TencentCloud
|
|
1033
1033
|
end
|
1034
1034
|
end
|
1035
1035
|
|
1036
|
+
# DescribeCaptchaRceResult请求参数结构体
|
1037
|
+
class DescribeCaptchaRceResultRequest < TencentCloud::Common::AbstractModel
|
1038
|
+
# @param CaptchaType: 固定填值:9。可在控制台配置不同验证码类型。
|
1039
|
+
# @type CaptchaType: Integer
|
1040
|
+
# @param Ticket: 前端回调函数返回的用户验证票据
|
1041
|
+
# @type Ticket: String
|
1042
|
+
# @param UserIp: 业务侧获取到的验证码使用者的外网IP
|
1043
|
+
# @type UserIp: String
|
1044
|
+
# @param Randstr: 前端回调函数返回的随机字符串
|
1045
|
+
# @type Randstr: String
|
1046
|
+
# @param CaptchaAppId: 验证码应用ID。登录 [验证码控制台](https://console.cloud.tencent.com/captcha/graphical),在验证列表的【密钥】列,即可查看到CaptchaAppId。
|
1047
|
+
# @type CaptchaAppId: Integer
|
1048
|
+
# @param AppSecretKey: 验证码应用密钥。登录 [验证码控制台](https://console.cloud.tencent.com/captcha/graphical),在验证列表的【密钥】列,即可查看到AppSecretKey。AppSecretKey属于服务器端校验验证码票据的密钥,请妥善保密,请勿泄露给第三方。
|
1049
|
+
# @type AppSecretKey: String
|
1050
|
+
# @param BusinessId: 预留字段
|
1051
|
+
# @type BusinessId: Integer
|
1052
|
+
# @param SceneId: 预留字段
|
1053
|
+
# @type SceneId: Integer
|
1054
|
+
# @param MacAddress: mac 地址或设备唯一标识
|
1055
|
+
# @type MacAddress: String
|
1056
|
+
# @param Imei: 手机设备号
|
1057
|
+
# @type Imei: String
|
1058
|
+
# @param NeedGetCaptchaTime: 是否返回前端获取验证码时间,取值1:需要返回
|
1059
|
+
# @type NeedGetCaptchaTime: Integer
|
1060
|
+
|
1061
|
+
attr_accessor :CaptchaType, :Ticket, :UserIp, :Randstr, :CaptchaAppId, :AppSecretKey, :BusinessId, :SceneId, :MacAddress, :Imei, :NeedGetCaptchaTime
|
1062
|
+
|
1063
|
+
def initialize(captchatype=nil, ticket=nil, userip=nil, randstr=nil, captchaappid=nil, appsecretkey=nil, businessid=nil, sceneid=nil, macaddress=nil, imei=nil, needgetcaptchatime=nil)
|
1064
|
+
@CaptchaType = captchatype
|
1065
|
+
@Ticket = ticket
|
1066
|
+
@UserIp = userip
|
1067
|
+
@Randstr = randstr
|
1068
|
+
@CaptchaAppId = captchaappid
|
1069
|
+
@AppSecretKey = appsecretkey
|
1070
|
+
@BusinessId = businessid
|
1071
|
+
@SceneId = sceneid
|
1072
|
+
@MacAddress = macaddress
|
1073
|
+
@Imei = imei
|
1074
|
+
@NeedGetCaptchaTime = needgetcaptchatime
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
def deserialize(params)
|
1078
|
+
@CaptchaType = params['CaptchaType']
|
1079
|
+
@Ticket = params['Ticket']
|
1080
|
+
@UserIp = params['UserIp']
|
1081
|
+
@Randstr = params['Randstr']
|
1082
|
+
@CaptchaAppId = params['CaptchaAppId']
|
1083
|
+
@AppSecretKey = params['AppSecretKey']
|
1084
|
+
@BusinessId = params['BusinessId']
|
1085
|
+
@SceneId = params['SceneId']
|
1086
|
+
@MacAddress = params['MacAddress']
|
1087
|
+
@Imei = params['Imei']
|
1088
|
+
@NeedGetCaptchaTime = params['NeedGetCaptchaTime']
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1092
|
+
# DescribeCaptchaRceResult返回参数结构体
|
1093
|
+
class DescribeCaptchaRceResultResponse < TencentCloud::Common::AbstractModel
|
1094
|
+
# @param CaptchaCode: 1 OK 验证通过
|
1095
|
+
# 7 captcha no match 传入的Randstr不合法,请检查Randstr是否与前端返回的Randstr一致
|
1096
|
+
# 8 ticket expired 传入的Ticket已过期(Ticket有效期5分钟),请重新生成Ticket、Randstr进行校验
|
1097
|
+
# 9 ticket reused 传入的Ticket被重复使用,请重新生成Ticket、Randstr进行校验
|
1098
|
+
# 15 decrypt fail 传入的Ticket不合法,请检查Ticket是否与前端返回的Ticket一致
|
1099
|
+
# 16 appid-ticket mismatch 传入的CaptchaAppId错误,请检查CaptchaAppId是否与前端传入的CaptchaAppId一致,并且保障CaptchaAppId是从验证码控制台【验证管理】->【基础配置】中获取
|
1100
|
+
# 21 diff 票据校验异常,可能的原因是(1)若Ticket包含terror前缀,一般是由于用户网络较差,导致前端自动容灾,而生成了容灾票据,业务侧可根据需要进行跳过或二次处理。(2)若Ticket不包含terror前缀,则是由于验证码风控系统发现请求有安全风险,业务侧可根据需要进行拦截。
|
1101
|
+
# 100 appid-secretkey-ticket mismatch 参数校验错误,(1)请检查CaptchaAppId与AppSecretKey是否正确,CaptchaAppId、AppSecretKey需要在验证码控制台【验证管理】>【基础配置】中获取(2)请检查传入的Ticket是否由传入的CaptchaAppId生成
|
1102
|
+
# @type CaptchaCode: Integer
|
1103
|
+
# @param CaptchaMsg: 状态描述及验证错误信息
|
1104
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1105
|
+
# @type CaptchaMsg: String
|
1106
|
+
# @param EvilLevel: 无感验证模式下,该参数返回验证结果:
|
1107
|
+
# EvilLevel=0 请求无恶意
|
1108
|
+
# EvilLevel=100 请求有恶意
|
1109
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1110
|
+
# @type EvilLevel: Integer
|
1111
|
+
# @param GetCaptchaTime: 前端获取验证码时间,时间戳格式
|
1112
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1113
|
+
# @type GetCaptchaTime: Integer
|
1114
|
+
# @param EvilBitmap: 拦截类型
|
1115
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1116
|
+
# @type EvilBitmap: Integer
|
1117
|
+
# @param SubmitCaptchaTime: 提交验证码时间
|
1118
|
+
# @type SubmitCaptchaTime: Integer
|
1119
|
+
# @param RceResult: rce检测结果
|
1120
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1121
|
+
# @type RceResult: :class:`Tencentcloud::Captcha.v20190722.models.RceResult`
|
1122
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1123
|
+
# @type RequestId: String
|
1124
|
+
|
1125
|
+
attr_accessor :CaptchaCode, :CaptchaMsg, :EvilLevel, :GetCaptchaTime, :EvilBitmap, :SubmitCaptchaTime, :RceResult, :RequestId
|
1126
|
+
|
1127
|
+
def initialize(captchacode=nil, captchamsg=nil, evillevel=nil, getcaptchatime=nil, evilbitmap=nil, submitcaptchatime=nil, rceresult=nil, requestid=nil)
|
1128
|
+
@CaptchaCode = captchacode
|
1129
|
+
@CaptchaMsg = captchamsg
|
1130
|
+
@EvilLevel = evillevel
|
1131
|
+
@GetCaptchaTime = getcaptchatime
|
1132
|
+
@EvilBitmap = evilbitmap
|
1133
|
+
@SubmitCaptchaTime = submitcaptchatime
|
1134
|
+
@RceResult = rceresult
|
1135
|
+
@RequestId = requestid
|
1136
|
+
end
|
1137
|
+
|
1138
|
+
def deserialize(params)
|
1139
|
+
@CaptchaCode = params['CaptchaCode']
|
1140
|
+
@CaptchaMsg = params['CaptchaMsg']
|
1141
|
+
@EvilLevel = params['EvilLevel']
|
1142
|
+
@GetCaptchaTime = params['GetCaptchaTime']
|
1143
|
+
@EvilBitmap = params['EvilBitmap']
|
1144
|
+
@SubmitCaptchaTime = params['SubmitCaptchaTime']
|
1145
|
+
unless params['RceResult'].nil?
|
1146
|
+
@RceResult = RceResult.new
|
1147
|
+
@RceResult.deserialize(params['RceResult'])
|
1148
|
+
end
|
1149
|
+
@RequestId = params['RequestId']
|
1150
|
+
end
|
1151
|
+
end
|
1152
|
+
|
1036
1153
|
# DescribeCaptchaResult请求参数结构体
|
1037
1154
|
class DescribeCaptchaResultRequest < TencentCloud::Common::AbstractModel
|
1038
1155
|
# @param CaptchaType: 固定填值:9。可在控制台配置不同验证码类型。
|
@@ -1583,6 +1700,58 @@ module TencentCloud
|
|
1583
1700
|
end
|
1584
1701
|
end
|
1585
1702
|
|
1703
|
+
# 验证码拼装Rce结果,Rce结果部分
|
1704
|
+
class RceResult < TencentCloud::Common::AbstractModel
|
1705
|
+
# @param UserId: 用户ID
|
1706
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1707
|
+
# @type UserId: String
|
1708
|
+
# @param PostTime: 操作时间戳
|
1709
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1710
|
+
# @type PostTime: Integer
|
1711
|
+
# @param AssociateAccount: 业务参数
|
1712
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1713
|
+
# @type AssociateAccount: String
|
1714
|
+
# @param UserIp: 用户Ip
|
1715
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1716
|
+
# @type UserIp: String
|
1717
|
+
# @param RiskLevel: 风险等级
|
1718
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1719
|
+
# @type RiskLevel: String
|
1720
|
+
# @param RiskType: 风险类型
|
1721
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1722
|
+
# @type RiskType: Array
|
1723
|
+
# @param ConstId: 设备唯一ID
|
1724
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1725
|
+
# @type ConstId: String
|
1726
|
+
# @param RiskInformation: 风险扩展参数
|
1727
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1728
|
+
# @type RiskInformation: String
|
1729
|
+
|
1730
|
+
attr_accessor :UserId, :PostTime, :AssociateAccount, :UserIp, :RiskLevel, :RiskType, :ConstId, :RiskInformation
|
1731
|
+
|
1732
|
+
def initialize(userid=nil, posttime=nil, associateaccount=nil, userip=nil, risklevel=nil, risktype=nil, constid=nil, riskinformation=nil)
|
1733
|
+
@UserId = userid
|
1734
|
+
@PostTime = posttime
|
1735
|
+
@AssociateAccount = associateaccount
|
1736
|
+
@UserIp = userip
|
1737
|
+
@RiskLevel = risklevel
|
1738
|
+
@RiskType = risktype
|
1739
|
+
@ConstId = constid
|
1740
|
+
@RiskInformation = riskinformation
|
1741
|
+
end
|
1742
|
+
|
1743
|
+
def deserialize(params)
|
1744
|
+
@UserId = params['UserId']
|
1745
|
+
@PostTime = params['PostTime']
|
1746
|
+
@AssociateAccount = params['AssociateAccount']
|
1747
|
+
@UserIp = params['UserIp']
|
1748
|
+
@RiskLevel = params['RiskLevel']
|
1749
|
+
@RiskType = params['RiskType']
|
1750
|
+
@ConstId = params['ConstId']
|
1751
|
+
@RiskInformation = params['RiskInformation']
|
1752
|
+
end
|
1753
|
+
end
|
1754
|
+
|
1586
1755
|
# 验证码请求趋势图obj
|
1587
1756
|
class RequestTrendObj < TencentCloud::Common::AbstractModel
|
1588
1757
|
# @param Ftime: 时间参数
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-captcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.718
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|