tencentcloud-sdk-faceid 3.0.789 → 3.0.791
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/v20180301/client.rb +48 -0
- data/lib/v20180301/models.rb +109 -2
- 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: c10face720dffcb11f51397637fba0b6dc0bd1b0
|
4
|
+
data.tar.gz: eeef0a5ebc5cf6e8bc2c56e2dfa4388e7c27c6ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 346cd6a16f471b8c142b3c65090640d3e11d2ef1ddcebb21b2b72154b2f7b39765dc0d23d7bca008366bf17f1776db7ac27394b2378cb09041039840cd25e231
|
7
|
+
data.tar.gz: d8192d5b33c61580247fab7308f1016423efe9c14790bd8237a5b2337fb2785acb67bae56f8a50c88df2691625f9d2506e7f7b9268dbdddc4273a59784790772
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.791
|
data/lib/v20180301/client.rb
CHANGED
@@ -437,6 +437,30 @@ module TencentCloud
|
|
437
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
438
|
end
|
439
439
|
|
440
|
+
# 完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
|
441
|
+
|
442
|
+
# @param request: Request instance for GetFaceIdRiskInfo.
|
443
|
+
# @type request: :class:`Tencentcloud::faceid::V20180301::GetFaceIdRiskInfoRequest`
|
444
|
+
# @rtype: :class:`Tencentcloud::faceid::V20180301::GetFaceIdRiskInfoResponse`
|
445
|
+
def GetFaceIdRiskInfo(request)
|
446
|
+
body = send_request('GetFaceIdRiskInfo', request.serialize)
|
447
|
+
response = JSON.parse(body)
|
448
|
+
if response['Response'].key?('Error') == false
|
449
|
+
model = GetFaceIdRiskInfoResponse.new
|
450
|
+
model.deserialize(response['Response'])
|
451
|
+
model
|
452
|
+
else
|
453
|
+
code = response['Response']['Error']['Code']
|
454
|
+
message = response['Response']['Error']['Message']
|
455
|
+
reqid = response['Response']['RequestId']
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
457
|
+
end
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
459
|
+
raise e
|
460
|
+
rescue StandardError => e
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
|
+
end
|
463
|
+
|
440
464
|
# 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。
|
441
465
|
|
442
466
|
# @param request: Request instance for GetFaceIdToken.
|
@@ -461,6 +485,30 @@ module TencentCloud
|
|
461
485
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
462
486
|
end
|
463
487
|
|
488
|
+
# 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
|
489
|
+
|
490
|
+
# @param request: Request instance for GetFaceidRiskInfoToken.
|
491
|
+
# @type request: :class:`Tencentcloud::faceid::V20180301::GetFaceidRiskInfoTokenRequest`
|
492
|
+
# @rtype: :class:`Tencentcloud::faceid::V20180301::GetFaceidRiskInfoTokenResponse`
|
493
|
+
def GetFaceidRiskInfoToken(request)
|
494
|
+
body = send_request('GetFaceidRiskInfoToken', request.serialize)
|
495
|
+
response = JSON.parse(body)
|
496
|
+
if response['Response'].key?('Error') == false
|
497
|
+
model = GetFaceidRiskInfoTokenResponse.new
|
498
|
+
model.deserialize(response['Response'])
|
499
|
+
model
|
500
|
+
else
|
501
|
+
code = response['Response']['Error']['Code']
|
502
|
+
message = response['Response']['Error']['Message']
|
503
|
+
reqid = response['Response']['RequestId']
|
504
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
505
|
+
end
|
506
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
507
|
+
raise e
|
508
|
+
rescue StandardError => e
|
509
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
|
+
end
|
511
|
+
|
464
512
|
# 使用数字活体检测模式前,需调用本接口获取数字验证码。
|
465
513
|
|
466
514
|
# @param request: Request instance for GetLiveCode.
|
data/lib/v20180301/models.rb
CHANGED
@@ -2006,6 +2006,68 @@ module TencentCloud
|
|
2006
2006
|
end
|
2007
2007
|
end
|
2008
2008
|
|
2009
|
+
# GetFaceIdRiskInfo请求参数结构体
|
2010
|
+
class GetFaceIdRiskInfoRequest < TencentCloud::Common::AbstractModel
|
2011
|
+
# @param FaceIdToken: SDK人脸核身流程的标识,调用GetFaceidRiskInfoToken接口时生成。
|
2012
|
+
# @type FaceIdToken: String
|
2013
|
+
|
2014
|
+
attr_accessor :FaceIdToken
|
2015
|
+
|
2016
|
+
def initialize(faceidtoken=nil)
|
2017
|
+
@FaceIdToken = faceidtoken
|
2018
|
+
end
|
2019
|
+
|
2020
|
+
def deserialize(params)
|
2021
|
+
@FaceIdToken = params['FaceIdToken']
|
2022
|
+
end
|
2023
|
+
end
|
2024
|
+
|
2025
|
+
# GetFaceIdRiskInfo返回参数结构体
|
2026
|
+
class GetFaceIdRiskInfoResponse < TencentCloud::Common::AbstractModel
|
2027
|
+
# @param DeviceInfoTag: 描述当前请求所在设备的风险标签,详情如下: 01-设备疑似被Root/设备疑似越狱 02-设备疑似被注入 03-设备疑似为模拟器 04-设备疑似存在风险操作 05-摄像头疑似被劫持 06-疑似黑产设备
|
2028
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2029
|
+
# @type DeviceInfoTag: String
|
2030
|
+
# @param DeviceInfoLevel: 描述当前请求所在设备的风险等级,共4级,详情如下: 1 - 安全 2 - 低风险 3 - 中风险 4 - 高危 ,-1表示未获取到风险等级
|
2031
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2032
|
+
# @type DeviceInfoLevel: Integer
|
2033
|
+
# @param OpenId: 设备id标识
|
2034
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2035
|
+
# @type OpenId: String
|
2036
|
+
# @param CameraInfoLevel: 描述当前请求所在设备的相机指纹风险等级,共4级,详情如下: 1 - 安全 2 - 低风险 3 - 中风险 4 - 高危 ,-1表示未获取到风险等级
|
2037
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2038
|
+
# @type CameraInfoLevel: Integer
|
2039
|
+
# @param CameraInfoTag: 描述当前请求所在设备的相机指纹风险标签,详情如下: 01-设备疑似被Root/设备疑似越狱 02-设备疑似被注入 03-设备疑似为模拟器 04-设备疑似存在风险操作 05-摄像头疑似被劫持 06-疑似黑产设备,空表示没有相机指纹风险
|
2040
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2041
|
+
# @type CameraInfoTag: String
|
2042
|
+
# @param Extra: 获取token时透传的信息
|
2043
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2044
|
+
# @type Extra: String
|
2045
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2046
|
+
# @type RequestId: String
|
2047
|
+
|
2048
|
+
attr_accessor :DeviceInfoTag, :DeviceInfoLevel, :OpenId, :CameraInfoLevel, :CameraInfoTag, :Extra, :RequestId
|
2049
|
+
|
2050
|
+
def initialize(deviceinfotag=nil, deviceinfolevel=nil, openid=nil, camerainfolevel=nil, camerainfotag=nil, extra=nil, requestid=nil)
|
2051
|
+
@DeviceInfoTag = deviceinfotag
|
2052
|
+
@DeviceInfoLevel = deviceinfolevel
|
2053
|
+
@OpenId = openid
|
2054
|
+
@CameraInfoLevel = camerainfolevel
|
2055
|
+
@CameraInfoTag = camerainfotag
|
2056
|
+
@Extra = extra
|
2057
|
+
@RequestId = requestid
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
def deserialize(params)
|
2061
|
+
@DeviceInfoTag = params['DeviceInfoTag']
|
2062
|
+
@DeviceInfoLevel = params['DeviceInfoLevel']
|
2063
|
+
@OpenId = params['OpenId']
|
2064
|
+
@CameraInfoLevel = params['CameraInfoLevel']
|
2065
|
+
@CameraInfoTag = params['CameraInfoTag']
|
2066
|
+
@Extra = params['Extra']
|
2067
|
+
@RequestId = params['RequestId']
|
2068
|
+
end
|
2069
|
+
end
|
2070
|
+
|
2009
2071
|
# GetFaceIdToken请求参数结构体
|
2010
2072
|
class GetFaceIdTokenRequest < TencentCloud::Common::AbstractModel
|
2011
2073
|
# @param CompareLib: 本地上传照片(LOCAL)、商业库(BUSINESS)
|
@@ -2026,10 +2088,13 @@ module TencentCloud
|
|
2026
2088
|
# @type UseCos: Boolean
|
2027
2089
|
# @param Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
2028
2090
|
# @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
|
2091
|
+
# @param RuleId: 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加腾讯云人脸核身小助手进行咨询。
|
2092
|
+
# 示例值:1
|
2093
|
+
# @type RuleId: String
|
2029
2094
|
|
2030
|
-
attr_accessor :CompareLib, :IdCard, :Name, :ImageBase64, :Meta, :Extra, :UseCos, :Encryption
|
2095
|
+
attr_accessor :CompareLib, :IdCard, :Name, :ImageBase64, :Meta, :Extra, :UseCos, :Encryption, :RuleId
|
2031
2096
|
|
2032
|
-
def initialize(comparelib=nil, idcard=nil, name=nil, imagebase64=nil, meta=nil, extra=nil, usecos=nil, encryption=nil)
|
2097
|
+
def initialize(comparelib=nil, idcard=nil, name=nil, imagebase64=nil, meta=nil, extra=nil, usecos=nil, encryption=nil, ruleid=nil)
|
2033
2098
|
@CompareLib = comparelib
|
2034
2099
|
@IdCard = idcard
|
2035
2100
|
@Name = name
|
@@ -2038,6 +2103,7 @@ module TencentCloud
|
|
2038
2103
|
@Extra = extra
|
2039
2104
|
@UseCos = usecos
|
2040
2105
|
@Encryption = encryption
|
2106
|
+
@RuleId = ruleid
|
2041
2107
|
end
|
2042
2108
|
|
2043
2109
|
def deserialize(params)
|
@@ -2052,6 +2118,7 @@ module TencentCloud
|
|
2052
2118
|
@Encryption = Encryption.new
|
2053
2119
|
@Encryption.deserialize(params['Encryption'])
|
2054
2120
|
end
|
2121
|
+
@RuleId = params['RuleId']
|
2055
2122
|
end
|
2056
2123
|
end
|
2057
2124
|
|
@@ -2075,6 +2142,46 @@ module TencentCloud
|
|
2075
2142
|
end
|
2076
2143
|
end
|
2077
2144
|
|
2145
|
+
# GetFaceidRiskInfoToken请求参数结构体
|
2146
|
+
class GetFaceidRiskInfoTokenRequest < TencentCloud::Common::AbstractModel
|
2147
|
+
# @param Meta: SDK中生成的Meta字符串
|
2148
|
+
# @type Meta: String
|
2149
|
+
# @param Extra: 透传参数 1000长度字符串
|
2150
|
+
# @type Extra: String
|
2151
|
+
|
2152
|
+
attr_accessor :Meta, :Extra
|
2153
|
+
|
2154
|
+
def initialize(meta=nil, extra=nil)
|
2155
|
+
@Meta = meta
|
2156
|
+
@Extra = extra
|
2157
|
+
end
|
2158
|
+
|
2159
|
+
def deserialize(params)
|
2160
|
+
@Meta = params['Meta']
|
2161
|
+
@Extra = params['Extra']
|
2162
|
+
end
|
2163
|
+
end
|
2164
|
+
|
2165
|
+
# GetFaceidRiskInfoToken返回参数结构体
|
2166
|
+
class GetFaceidRiskInfoTokenResponse < TencentCloud::Common::AbstractModel
|
2167
|
+
# @param FaceIdToken: 有效期 10分钟。只能完成1次核身。
|
2168
|
+
# @type FaceIdToken: String
|
2169
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2170
|
+
# @type RequestId: String
|
2171
|
+
|
2172
|
+
attr_accessor :FaceIdToken, :RequestId
|
2173
|
+
|
2174
|
+
def initialize(faceidtoken=nil, requestid=nil)
|
2175
|
+
@FaceIdToken = faceidtoken
|
2176
|
+
@RequestId = requestid
|
2177
|
+
end
|
2178
|
+
|
2179
|
+
def deserialize(params)
|
2180
|
+
@FaceIdToken = params['FaceIdToken']
|
2181
|
+
@RequestId = params['RequestId']
|
2182
|
+
end
|
2183
|
+
end
|
2184
|
+
|
2078
2185
|
# GetLiveCode请求参数结构体
|
2079
2186
|
class GetLiveCodeRequest < TencentCloud::Common::AbstractModel
|
2080
2187
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-faceid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.791
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|