tencentcloud-sdk-faceid 1.0.355 → 1.0.356
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180301/client.rb +0 -25
- data/lib/v20180301/models.rb +23 -71
- 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: 5b634312f48336cc3706be5cb2dd8050addb753a
|
4
|
+
data.tar.gz: 144a6c5e1a240e7d7fbad6430bfac34021ccca11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f92d9334a016185954ed169fad194958bf980789cd991ed310e56af1094a74f6f55335b9482743e2341b5315128a577f0fe2090e0503fd34c0297bbdad6e9c09
|
7
|
+
data.tar.gz: 3799011b63497242e3600e5a4ec9d315d9813c01222d84c1a798cd33c50e61dea6233f9cc9bf41930f72fdf8f7d82d0d0dc7ff0850ae08daa3cb2bdc045be36b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.356
|
data/lib/v20180301/client.rb
CHANGED
@@ -245,31 +245,6 @@ module TencentCloud
|
|
245
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
246
|
end
|
247
247
|
|
248
|
-
# 使用活体比对(光线)SDK生成的数据包检测活体,并和传入的图片进行比对。
|
249
|
-
# 图片和SDK生成的数据内容必须存储在腾讯云COS,COS Bucket所在的Region需要和本接口请求的Region保持一致,推荐使用生成上传链接接口来完成资源传递。
|
250
|
-
|
251
|
-
# @param request: Request instance for DetectReflectLivenessAndCompare.
|
252
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::DetectReflectLivenessAndCompareRequest`
|
253
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::DetectReflectLivenessAndCompareResponse`
|
254
|
-
def DetectReflectLivenessAndCompare(request)
|
255
|
-
body = send_request('DetectReflectLivenessAndCompare', request.serialize)
|
256
|
-
response = JSON.parse(body)
|
257
|
-
if response['Response'].key?('Error') == false
|
258
|
-
model = DetectReflectLivenessAndCompareResponse.new
|
259
|
-
model.deserialize(response['Response'])
|
260
|
-
model
|
261
|
-
else
|
262
|
-
code = response['Response']['Error']['Code']
|
263
|
-
message = response['Response']['Error']['Message']
|
264
|
-
reqid = response['Response']['RequestId']
|
265
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
266
|
-
end
|
267
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
268
|
-
raise e
|
269
|
-
rescue StandardError => e
|
270
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
271
|
-
end
|
272
|
-
|
273
248
|
# 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
|
274
249
|
|
275
250
|
# @param request: Request instance for EncryptedPhoneVerification.
|
data/lib/v20180301/models.rb
CHANGED
@@ -1033,70 +1033,6 @@ module TencentCloud
|
|
1033
1033
|
end
|
1034
1034
|
end
|
1035
1035
|
|
1036
|
-
# DetectReflectLivenessAndCompare请求参数结构体
|
1037
|
-
class DetectReflectLivenessAndCompareRequest < TencentCloud::Common::AbstractModel
|
1038
|
-
# @param LiveDataUrl: SDK生成的活体检测数据包的资源地址。
|
1039
|
-
# @type LiveDataUrl: String
|
1040
|
-
# @param LiveDataMd5: SDK生成的活体检测数据包的资源内容MD5(32位,用于校验LiveData的一致性)。
|
1041
|
-
# @type LiveDataMd5: String
|
1042
|
-
# @param ImageUrl: 用于比对的目标图片的资源地址。
|
1043
|
-
# @type ImageUrl: String
|
1044
|
-
# @param ImageMd5: 用于比对的目标图片的资源MD5(32位,用于校验Image的一致性)。
|
1045
|
-
# @type ImageMd5: String
|
1046
|
-
|
1047
|
-
attr_accessor :LiveDataUrl, :LiveDataMd5, :ImageUrl, :ImageMd5
|
1048
|
-
|
1049
|
-
def initialize(livedataurl=nil, livedatamd5=nil, imageurl=nil, imagemd5=nil)
|
1050
|
-
@LiveDataUrl = livedataurl
|
1051
|
-
@LiveDataMd5 = livedatamd5
|
1052
|
-
@ImageUrl = imageurl
|
1053
|
-
@ImageMd5 = imagemd5
|
1054
|
-
end
|
1055
|
-
|
1056
|
-
def deserialize(params)
|
1057
|
-
@LiveDataUrl = params['LiveDataUrl']
|
1058
|
-
@LiveDataMd5 = params['LiveDataMd5']
|
1059
|
-
@ImageUrl = params['ImageUrl']
|
1060
|
-
@ImageMd5 = params['ImageMd5']
|
1061
|
-
end
|
1062
|
-
end
|
1063
|
-
|
1064
|
-
# DetectReflectLivenessAndCompare返回参数结构体
|
1065
|
-
class DetectReflectLivenessAndCompareResponse < TencentCloud::Common::AbstractModel
|
1066
|
-
# @param BestFrameUrl: 验证通过后的视频最佳截图资源临时地址,jpg格式,资源和链接有效期2小时,务必在有效期内下载。
|
1067
|
-
# @type BestFrameUrl: String
|
1068
|
-
# @param BestFrameMd5: 验证通过后的视频最佳截图资源MD5(32位,用于校验BestFrame的一致性)。
|
1069
|
-
# @type BestFrameMd5: String
|
1070
|
-
# @param Result: 业务错误码,成功情况返回Success,错误情况请参考下方错误码 列表中FailedOperation部分。
|
1071
|
-
# @type Result: String
|
1072
|
-
# @param Description: 业务结果描述。
|
1073
|
-
# @type Description: String
|
1074
|
-
# @param Sim: 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
|
1075
|
-
# @type Sim: Float
|
1076
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1077
|
-
# @type RequestId: String
|
1078
|
-
|
1079
|
-
attr_accessor :BestFrameUrl, :BestFrameMd5, :Result, :Description, :Sim, :RequestId
|
1080
|
-
|
1081
|
-
def initialize(bestframeurl=nil, bestframemd5=nil, result=nil, description=nil, sim=nil, requestid=nil)
|
1082
|
-
@BestFrameUrl = bestframeurl
|
1083
|
-
@BestFrameMd5 = bestframemd5
|
1084
|
-
@Result = result
|
1085
|
-
@Description = description
|
1086
|
-
@Sim = sim
|
1087
|
-
@RequestId = requestid
|
1088
|
-
end
|
1089
|
-
|
1090
|
-
def deserialize(params)
|
1091
|
-
@BestFrameUrl = params['BestFrameUrl']
|
1092
|
-
@BestFrameMd5 = params['BestFrameMd5']
|
1093
|
-
@Result = params['Result']
|
1094
|
-
@Description = params['Description']
|
1095
|
-
@Sim = params['Sim']
|
1096
|
-
@RequestId = params['RequestId']
|
1097
|
-
end
|
1098
|
-
end
|
1099
|
-
|
1100
1036
|
# Eid出参,包括商户方用户的标识和加密的用户姓名身份证信息。
|
1101
1037
|
class EidInfo < TencentCloud::Common::AbstractModel
|
1102
1038
|
# @param EidCode: 商户方 appeIDcode 的数字证书
|
@@ -1196,7 +1132,7 @@ module TencentCloud
|
|
1196
1132
|
# @type CiphertextBlob: String
|
1197
1133
|
# @param EncryptList: 在使用加密服务时,填入要被加密的字段。本接口中可填入加密后的一个或多个字段
|
1198
1134
|
# @type EncryptList: Array
|
1199
|
-
# @param Iv: 有加密需求的用户,传入CBC
|
1135
|
+
# @param Iv: 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
|
1200
1136
|
# @type Iv: String
|
1201
1137
|
|
1202
1138
|
attr_accessor :CiphertextBlob, :EncryptList, :Iv
|
@@ -1454,7 +1390,7 @@ module TencentCloud
|
|
1454
1390
|
class GetEidResultRequest < TencentCloud::Common::AbstractModel
|
1455
1391
|
# @param EidToken: E证通流程的唯一标识,调用GetEidToken接口时生成。
|
1456
1392
|
# @type EidToken: String
|
1457
|
-
# @param InfoType: 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3
|
1393
|
+
# @param InfoType: 指定拉取的结果信息,取值(0:全部;1:文本类;2:身份证信息;3:最佳截图信息;5:意愿核身相关结果;)。
|
1458
1394
|
# 如 13表示拉取文本类、最佳截图信息。
|
1459
1395
|
# 默认值:0
|
1460
1396
|
# @type InfoType: String
|
@@ -1490,16 +1426,20 @@ module TencentCloud
|
|
1490
1426
|
# @param EidInfo: Eid信息。(包括商户下用户唯一标识以及加密后的姓名、身份证号信息。解密方式详见[E证通获取实名信息指引](https://cloud.tencent.com/document/product/1007/63370))
|
1491
1427
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1492
1428
|
# @type EidInfo: :class:`Tencentcloud::Faceid.v20180301.models.EidInfo`
|
1429
|
+
# @param IntentionVerifyData: 意愿核身相关信息。若未使用意愿核身功能,该字段返回值可以不处理。
|
1430
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1431
|
+
# @type IntentionVerifyData: :class:`Tencentcloud::Faceid.v20180301.models.IntentionVerifyData`
|
1493
1432
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1494
1433
|
# @type RequestId: String
|
1495
1434
|
|
1496
|
-
attr_accessor :Text, :IdCardData, :BestFrame, :EidInfo, :RequestId
|
1435
|
+
attr_accessor :Text, :IdCardData, :BestFrame, :EidInfo, :IntentionVerifyData, :RequestId
|
1497
1436
|
|
1498
|
-
def initialize(text=nil, idcarddata=nil, bestframe=nil, eidinfo=nil, requestid=nil)
|
1437
|
+
def initialize(text=nil, idcarddata=nil, bestframe=nil, eidinfo=nil, intentionverifydata=nil, requestid=nil)
|
1499
1438
|
@Text = text
|
1500
1439
|
@IdCardData = idcarddata
|
1501
1440
|
@BestFrame = bestframe
|
1502
1441
|
@EidInfo = eidinfo
|
1442
|
+
@IntentionVerifyData = intentionverifydata
|
1503
1443
|
@RequestId = requestid
|
1504
1444
|
end
|
1505
1445
|
|
@@ -1520,6 +1460,10 @@ module TencentCloud
|
|
1520
1460
|
@EidInfo = EidInfo.new
|
1521
1461
|
@EidInfo.deserialize(params['EidInfo'])
|
1522
1462
|
end
|
1463
|
+
unless params['IntentionVerifyData'].nil?
|
1464
|
+
@IntentionVerifyData = IntentionVerifyData.new
|
1465
|
+
@IntentionVerifyData.deserialize(params['IntentionVerifyData'])
|
1466
|
+
end
|
1523
1467
|
@RequestId = params['RequestId']
|
1524
1468
|
end
|
1525
1469
|
end
|
@@ -1534,15 +1478,23 @@ module TencentCloud
|
|
1534
1478
|
# 默认1
|
1535
1479
|
# 注:使用OCR时仅支持用户修改结果中的姓名
|
1536
1480
|
# @type InputType: String
|
1481
|
+
# @param UseIntentionVerify: 是否使用意愿核身,默认不使用。注意:如开启使用,则计费标签按【意愿核身】计费标签计价;如不开启,则计费标签按【E证通】计费标签计价,价格详见:[价格说明](https://cloud.tencent.com/document/product/1007/56804)。
|
1482
|
+
# @type UseIntentionVerify: Boolean
|
1483
|
+
# @param IntentionVerifyText: 意愿核身使用的文案,若未使用意愿核身功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
|
1484
|
+
# @type IntentionVerifyText: String
|
1537
1485
|
|
1538
|
-
attr_accessor :InputType
|
1486
|
+
attr_accessor :InputType, :UseIntentionVerify, :IntentionVerifyText
|
1539
1487
|
|
1540
|
-
def initialize(inputtype=nil)
|
1488
|
+
def initialize(inputtype=nil, useintentionverify=nil, intentionverifytext=nil)
|
1541
1489
|
@InputType = inputtype
|
1490
|
+
@UseIntentionVerify = useintentionverify
|
1491
|
+
@IntentionVerifyText = intentionverifytext
|
1542
1492
|
end
|
1543
1493
|
|
1544
1494
|
def deserialize(params)
|
1545
1495
|
@InputType = params['InputType']
|
1496
|
+
@UseIntentionVerify = params['UseIntentionVerify']
|
1497
|
+
@IntentionVerifyText = params['IntentionVerifyText']
|
1546
1498
|
end
|
1547
1499
|
end
|
1548
1500
|
|
@@ -1557,7 +1509,7 @@ module TencentCloud
|
|
1557
1509
|
# @type Name: String
|
1558
1510
|
# @param Extra: 透传字段,在获取验证结果时返回。最长长度1024位。
|
1559
1511
|
# @type Extra: String
|
1560
|
-
# @param Config:
|
1512
|
+
# @param Config: 小程序模式配置,包括如何传入姓名身份证的配置,以及是否使用意愿核身。
|
1561
1513
|
# @type Config: :class:`Tencentcloud::Faceid.v20180301.models.GetEidTokenConfig`
|
1562
1514
|
# @param RedirectUrl: 最长长度1024位。用户从Url中进入核身认证结束后重定向的回调链接地址。EidToken会在该链接的query参数中。
|
1563
1515
|
# @type RedirectUrl: String
|
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: 1.0.
|
4
|
+
version: 1.0.356
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|