tencentcloud-sdk-faceid 3.0.1127 → 3.0.1173

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e29c001b6f953acaecddc31b92bf0d2262a70c7d
4
- data.tar.gz: aa514f18097c1f185f729bbd63039a645e2a00dd
3
+ metadata.gz: bd40d2dec1589ef65ef8dbcb06b7fb45bbed67ba
4
+ data.tar.gz: a44b904fe1075ad07656aeaa9300160f60ba7e80
5
5
  SHA512:
6
- metadata.gz: 4cf63e62feeb0301122c84f1985e9144466733c4467b7de0fc98ecc9e7156d76ae333fe3ccf2fbdb85acfd71582db2894b78df12b725dca08b28aee6576d29d3
7
- data.tar.gz: 547e6ad533403010a43f3e78b1d482e969419fe20c8ed3875652d787303704170086d951f29ca33e755b063e96e66df69c43a31f8cfbc5d227e6490375ae6cbf
6
+ metadata.gz: 76bf41c4dad895ca2ad5e1e36767e38553e54eb0fb2b9fd2c68cd6d347c0d5224694d2d1fb5899afa2bfe0551e1a3f579c600149cd4c8ee5ab747298c0d6b06c
7
+ data.tar.gz: 1586dcaa5812865d7e93f876598050a9973cba1e701c856ccb0d7d5352856460c3e7c8a7b41d24cd04db9769cb3b8d696ab7b2213ac0043898091b5ef74a2b7e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1127
1
+ 3.0.1173
@@ -653,30 +653,6 @@ module TencentCloud
653
653
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
654
  end
655
655
 
656
- # 活体检测
657
-
658
- # @param request: Request instance for Liveness.
659
- # @type request: :class:`Tencentcloud::faceid::V20180301::LivenessRequest`
660
- # @rtype: :class:`Tencentcloud::faceid::V20180301::LivenessResponse`
661
- def Liveness(request)
662
- body = send_request('Liveness', request.serialize)
663
- response = JSON.parse(body)
664
- if response['Response'].key?('Error') == false
665
- model = LivenessResponse.new
666
- model.deserialize(response['Response'])
667
- model
668
- else
669
- code = response['Response']['Error']['Code']
670
- message = response['Response']['Error']['Message']
671
- reqid = response['Response']['RequestId']
672
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
- end
674
- rescue TencentCloud::Common::TencentCloudSDKException => e
675
- raise e
676
- rescue StandardError => e
677
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
- end
679
-
680
656
  # 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
681
657
 
682
658
  # @param request: Request instance for LivenessCompare.
@@ -319,8 +319,8 @@ module TencentCloud
319
319
 
320
320
  attr_accessor :ReqTime, :Seq, :IdCard, :Idcard, :Name, :Sim, :IsNeedCharge, :ChargeType, :ErrorCode, :ErrorMessage
321
321
  extend Gem::Deprecate
322
- deprecate :Idcard, :none, 2025, 8
323
- deprecate :Idcard=, :none, 2025, 8
322
+ deprecate :Idcard, :none, 2025, 11
323
+ deprecate :Idcard=, :none, 2025, 11
324
324
 
325
325
  def initialize(reqtime=nil, seq=nil, idcard=nil, name=nil, sim=nil, isneedcharge=nil, chargetype=nil, errorcode=nil, errormessage=nil)
326
326
  @ReqTime = reqtime
@@ -764,13 +764,15 @@ module TencentCloud
764
764
  # 视频分辨率建议为480x640(最大支持720p),帧率在25fps~30fps之间。
765
765
  # 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
766
766
 
767
- # 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
767
+ # 若您未使用Encryption进行加密传输,则本字段为必填参数。
768
768
  # @type FaceInput: String
769
769
  # @param FaceInputType: 传入的类型。
770
770
  # - 取值范围:
771
771
  # 1:传入的是图片类型。
772
772
  # 2:传入的是视频类型。
773
773
  # 其他:返回错误码InvalidParameter。
774
+
775
+ # 若您未使用Encryption进行加密传输,则本字段为必填参数。
774
776
  # @type FaceInputType: Integer
775
777
  # @param Encryption: 是否需要对请求信息进行全包体加密。
776
778
  # - 支持的加密算法:AES-256-CBC、SM4-GCM。
@@ -1220,7 +1222,7 @@ module TencentCloud
1220
1222
  # @type Comparemsg: String
1221
1223
  # @param Sim: 本次流程活体一比一的分数。
1222
1224
  # - 取值范围 [0.00, 100.00]。
1223
- # - 相似度大于等于70时才判断为同一人,也可根据具体场景自行调整阈值。
1225
+ # - 相似度大于等于70时才判断为同一人,阈值不支持自定义。
1224
1226
  # - 阈值70的误通过率为千分之一,阈值80的误通过率是万分之一。
1225
1227
  # 注意:此字段可能返回 null,表示取不到有效值。
1226
1228
  # @type Sim: String
@@ -1284,10 +1286,21 @@ module TencentCloud
1284
1286
  # @param VisaNum: 港澳台居住证签发次数。
1285
1287
  # 注意:此字段可能返回 null,表示取不到有效值。
1286
1288
  # @type VisaNum: String
1289
+ # @param LivenessActionSequence: 活体检测的动作顺序,多动作以“,”分隔。
1290
+ # 输出格式如:“1,2”表示“张嘴+眨眼”。
1291
+ # - 详细序列值含义如下:
1292
+ # 1:张嘴
1293
+ # 2:眨眼
1294
+ # 3:点头
1295
+ # 4:摇头
1296
+ # 5:静默
1297
+ # 注:仅浮层H5产品返回
1298
+ # 注意:此字段可能返回 null,表示取不到有效值。
1299
+ # @type LivenessActionSequence: String
1287
1300
 
1288
- attr_accessor :ErrCode, :ErrMsg, :IdCard, :UseIDType, :Name, :OcrNation, :OcrAddress, :OcrBirth, :OcrAuthority, :OcrValidDate, :OcrName, :OcrIdCard, :OcrGender, :IdInfoFrom, :LiveStatus, :LiveMsg, :Comparestatus, :Comparemsg, :Sim, :Location, :Extra, :LivenessDetail, :LivenessInfoTag, :Mobile, :CompareLibType, :LivenessMode, :NFCRequestIds, :NFCBillingCounts, :PassNo, :VisaNum
1301
+ attr_accessor :ErrCode, :ErrMsg, :IdCard, :UseIDType, :Name, :OcrNation, :OcrAddress, :OcrBirth, :OcrAuthority, :OcrValidDate, :OcrName, :OcrIdCard, :OcrGender, :IdInfoFrom, :LiveStatus, :LiveMsg, :Comparestatus, :Comparemsg, :Sim, :Location, :Extra, :LivenessDetail, :LivenessInfoTag, :Mobile, :CompareLibType, :LivenessMode, :NFCRequestIds, :NFCBillingCounts, :PassNo, :VisaNum, :LivenessActionSequence
1289
1302
 
1290
- def initialize(errcode=nil, errmsg=nil, idcard=nil, useidtype=nil, name=nil, ocrnation=nil, ocraddress=nil, ocrbirth=nil, ocrauthority=nil, ocrvaliddate=nil, ocrname=nil, ocridcard=nil, ocrgender=nil, idinfofrom=nil, livestatus=nil, livemsg=nil, comparestatus=nil, comparemsg=nil, sim=nil, location=nil, extra=nil, livenessdetail=nil, livenessinfotag=nil, mobile=nil, comparelibtype=nil, livenessmode=nil, nfcrequestids=nil, nfcbillingcounts=nil, passno=nil, visanum=nil)
1303
+ def initialize(errcode=nil, errmsg=nil, idcard=nil, useidtype=nil, name=nil, ocrnation=nil, ocraddress=nil, ocrbirth=nil, ocrauthority=nil, ocrvaliddate=nil, ocrname=nil, ocridcard=nil, ocrgender=nil, idinfofrom=nil, livestatus=nil, livemsg=nil, comparestatus=nil, comparemsg=nil, sim=nil, location=nil, extra=nil, livenessdetail=nil, livenessinfotag=nil, mobile=nil, comparelibtype=nil, livenessmode=nil, nfcrequestids=nil, nfcbillingcounts=nil, passno=nil, visanum=nil, livenessactionsequence=nil)
1291
1304
  @ErrCode = errcode
1292
1305
  @ErrMsg = errmsg
1293
1306
  @IdCard = idcard
@@ -1318,6 +1331,7 @@ module TencentCloud
1318
1331
  @NFCBillingCounts = nfcbillingcounts
1319
1332
  @PassNo = passno
1320
1333
  @VisaNum = visanum
1334
+ @LivenessActionSequence = livenessactionsequence
1321
1335
  end
1322
1336
 
1323
1337
  def deserialize(params)
@@ -1358,6 +1372,7 @@ module TencentCloud
1358
1372
  @NFCBillingCounts = params['NFCBillingCounts']
1359
1373
  @PassNo = params['PassNo']
1360
1374
  @VisaNum = params['VisaNum']
1375
+ @LivenessActionSequence = params['LivenessActionSequence']
1361
1376
  end
1362
1377
  end
1363
1378
 
@@ -2968,7 +2983,7 @@ module TencentCloud
2968
2983
 
2969
2984
  # 意愿核身(点头确认模式)配置
2970
2985
  class IntentionActionConfig < TencentCloud::Common::AbstractModel
2971
- # @param Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为150个字符。
2986
+ # @param Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为250个字符。
2972
2987
  # @type Text: String
2973
2988
 
2974
2989
  attr_accessor :Text
@@ -3062,7 +3077,7 @@ module TencentCloud
3062
3077
  # 意愿核身过程中播报的问题文本、用户回答的标准文本。
3063
3078
  class IntentionQuestion < TencentCloud::Common::AbstractModel
3064
3079
  # @param Question: 当选择语音问答模式时,系统自动播报的问题文本。
3065
- # - 最大长度为150个字符。
3080
+ # - 最大长度为250个字符。
3066
3081
  # @type Question: String
3067
3082
  # @param Answers: 当选择语音问答模式时,用于判断用户回答是否通过的标准答案列表。
3068
3083
  # - 传入后可自动判断用户回答文本是否在标准文本列表中。
@@ -3188,19 +3203,24 @@ module TencentCloud
3188
3203
  # @param AsrResultSimilarity: 本次流程用户语音与传入文本比对的相似度分值,取值范围 [0.00, 100.00]。只有配置了相似度阈值后才进行语音校验并返回相似度分值。
3189
3204
  # 注意:此字段可能返回 null,表示取不到有效值。
3190
3205
  # @type AsrResultSimilarity: String
3206
+ # @param IntentionVerifyAudio: 意愿确认环节中录制的音频(base64)。
3207
+ # - 若不存在则为空字符串。
3208
+ # 注意:此字段可能返回 null,表示取不到有效值。
3209
+ # @type IntentionVerifyAudio: String
3191
3210
 
3192
- attr_accessor :IntentionVerifyVideo, :AsrResult, :ErrorCode, :ErrorMessage, :IntentionVerifyBestFrame, :AsrResultSimilarity
3211
+ attr_accessor :IntentionVerifyVideo, :AsrResult, :ErrorCode, :ErrorMessage, :IntentionVerifyBestFrame, :AsrResultSimilarity, :IntentionVerifyAudio
3193
3212
  extend Gem::Deprecate
3194
- deprecate :AsrResultSimilarity, :none, 2025, 8
3195
- deprecate :AsrResultSimilarity=, :none, 2025, 8
3213
+ deprecate :AsrResultSimilarity, :none, 2025, 11
3214
+ deprecate :AsrResultSimilarity=, :none, 2025, 11
3196
3215
 
3197
- def initialize(intentionverifyvideo=nil, asrresult=nil, errorcode=nil, errormessage=nil, intentionverifybestframe=nil, asrresultsimilarity=nil)
3216
+ def initialize(intentionverifyvideo=nil, asrresult=nil, errorcode=nil, errormessage=nil, intentionverifybestframe=nil, asrresultsimilarity=nil, intentionverifyaudio=nil)
3198
3217
  @IntentionVerifyVideo = intentionverifyvideo
3199
3218
  @AsrResult = asrresult
3200
3219
  @ErrorCode = errorcode
3201
3220
  @ErrorMessage = errormessage
3202
3221
  @IntentionVerifyBestFrame = intentionverifybestframe
3203
3222
  @AsrResultSimilarity = asrresultsimilarity
3223
+ @IntentionVerifyAudio = intentionverifyaudio
3204
3224
  end
3205
3225
 
3206
3226
  def deserialize(params)
@@ -3210,6 +3230,7 @@ module TencentCloud
3210
3230
  @ErrorMessage = params['ErrorMessage']
3211
3231
  @IntentionVerifyBestFrame = params['IntentionVerifyBestFrame']
3212
3232
  @AsrResultSimilarity = params['AsrResultSimilarity']
3233
+ @IntentionVerifyAudio = params['IntentionVerifyAudio']
3213
3234
  end
3214
3235
  end
3215
3236
 
@@ -3427,75 +3448,6 @@ module TencentCloud
3427
3448
  end
3428
3449
  end
3429
3450
 
3430
- # Liveness请求参数结构体
3431
- class LivenessRequest < TencentCloud::Common::AbstractModel
3432
- # @param VideoBase64: 用于活体检测的视频,视频的BASE64值;
3433
- # BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
3434
- # @type VideoBase64: String
3435
- # @param LivenessType: 活体检测类型,取值:LIP/ACTION/SILENT。
3436
- # LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
3437
- # @type LivenessType: String
3438
- # @param ValidateData: 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
3439
- # 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
3440
- # 静默模式传参:不需要传递此参数。
3441
- # @type ValidateData: String
3442
- # @param Optional: 额外配置,传入JSON字符串。
3443
- # {
3444
- # "BestFrameNum": 2 //需要返回多张最佳截图,取值范围1-10
3445
- # }
3446
- # @type Optional: String
3447
-
3448
- attr_accessor :VideoBase64, :LivenessType, :ValidateData, :Optional
3449
-
3450
- def initialize(videobase64=nil, livenesstype=nil, validatedata=nil, optional=nil)
3451
- @VideoBase64 = videobase64
3452
- @LivenessType = livenesstype
3453
- @ValidateData = validatedata
3454
- @Optional = optional
3455
- end
3456
-
3457
- def deserialize(params)
3458
- @VideoBase64 = params['VideoBase64']
3459
- @LivenessType = params['LivenessType']
3460
- @ValidateData = params['ValidateData']
3461
- @Optional = params['Optional']
3462
- end
3463
- end
3464
-
3465
- # Liveness返回参数结构体
3466
- class LivenessResponse < TencentCloud::Common::AbstractModel
3467
- # @param BestFrameBase64: 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
3468
- # 注意:此字段可能返回 null,表示取不到有效值。
3469
- # @type BestFrameBase64: String
3470
- # @param Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
3471
- # @type Result: String
3472
- # @param Description: 业务结果描述。
3473
- # @type Description: String
3474
- # @param BestFrameList: 最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
3475
- # 注意:此字段可能返回 null,表示取不到有效值。
3476
- # @type BestFrameList: Array
3477
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3478
- # @type RequestId: String
3479
-
3480
- attr_accessor :BestFrameBase64, :Result, :Description, :BestFrameList, :RequestId
3481
-
3482
- def initialize(bestframebase64=nil, result=nil, description=nil, bestframelist=nil, requestid=nil)
3483
- @BestFrameBase64 = bestframebase64
3484
- @Result = result
3485
- @Description = description
3486
- @BestFrameList = bestframelist
3487
- @RequestId = requestid
3488
- end
3489
-
3490
- def deserialize(params)
3491
- @BestFrameBase64 = params['BestFrameBase64']
3492
- @Result = params['Result']
3493
- @Description = params['Description']
3494
- @BestFrameList = params['BestFrameList']
3495
- @RequestId = params['RequestId']
3496
- end
3497
- end
3498
-
3499
3451
  # MinorsVerification请求参数结构体
3500
3452
  class MinorsVerificationRequest < TencentCloud::Common::AbstractModel
3501
3453
  # @param Type: 参与校验的参数类型。
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.1127
4
+ version: 3.0.1173
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-22 00:00:00.000000000 Z
11
+ date: 2025-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - lib/tencentcloud-sdk-faceid.rb
36
37
  - lib/v20180301/client.rb
37
38
  - lib/v20180301/models.rb
38
- - lib/tencentcloud-sdk-faceid.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: