tencentcloud-sdk-faceid 3.0.1137 → 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: e903d419ee6c61689a9c5d612a13085bac90347a
4
- data.tar.gz: 9ce933fd4aa25d9d2a1b728323b66fe19ee3d57d
3
+ metadata.gz: bd40d2dec1589ef65ef8dbcb06b7fb45bbed67ba
4
+ data.tar.gz: a44b904fe1075ad07656aeaa9300160f60ba7e80
5
5
  SHA512:
6
- metadata.gz: 7f1b4033f219ad7f6aa1fe124b4b89bdfd1ea6b57af0204aefe281992623764667698b73ff349abb97606de6cd0dc60ed292f4205bdbf1814edb044912b9bfdc
7
- data.tar.gz: c8bc12344e9b4d7b3579043d65a2549c83a9b2253bf2b104106b63b9eae429bd6d9843c77eca8861e3e5447e61f33d3fc45b4fb74b8b5550fa1779b48f76872c
6
+ metadata.gz: 76bf41c4dad895ca2ad5e1e36767e38553e54eb0fb2b9fd2c68cd6d347c0d5224694d2d1fb5899afa2bfe0551e1a3f579c600149cd4c8ee5ab747298c0d6b06c
7
+ data.tar.gz: 1586dcaa5812865d7e93f876598050a9973cba1e701c856ccb0d7d5352856460c3e7c8a7b41d24cd04db9769cb3b8d696ab7b2213ac0043898091b5ef74a2b7e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1137
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, 9
323
- deprecate :Idcard=, :none, 2025, 9
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
  # - 传入后可自动判断用户回答文本是否在标准文本列表中。
@@ -3195,8 +3210,8 @@ module TencentCloud
3195
3210
 
3196
3211
  attr_accessor :IntentionVerifyVideo, :AsrResult, :ErrorCode, :ErrorMessage, :IntentionVerifyBestFrame, :AsrResultSimilarity, :IntentionVerifyAudio
3197
3212
  extend Gem::Deprecate
3198
- deprecate :AsrResultSimilarity, :none, 2025, 9
3199
- deprecate :AsrResultSimilarity=, :none, 2025, 9
3213
+ deprecate :AsrResultSimilarity, :none, 2025, 11
3214
+ deprecate :AsrResultSimilarity=, :none, 2025, 11
3200
3215
 
3201
3216
  def initialize(intentionverifyvideo=nil, asrresult=nil, errorcode=nil, errormessage=nil, intentionverifybestframe=nil, asrresultsimilarity=nil, intentionverifyaudio=nil)
3202
3217
  @IntentionVerifyVideo = intentionverifyvideo
@@ -3433,75 +3448,6 @@ module TencentCloud
3433
3448
  end
3434
3449
  end
3435
3450
 
3436
- # Liveness请求参数结构体
3437
- class LivenessRequest < TencentCloud::Common::AbstractModel
3438
- # @param VideoBase64: 用于活体检测的视频,视频的BASE64值;
3439
- # BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
3440
- # @type VideoBase64: String
3441
- # @param LivenessType: 活体检测类型,取值:LIP/ACTION/SILENT。
3442
- # LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
3443
- # @type LivenessType: String
3444
- # @param ValidateData: 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
3445
- # 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
3446
- # 静默模式传参:不需要传递此参数。
3447
- # @type ValidateData: String
3448
- # @param Optional: 额外配置,传入JSON字符串。
3449
- # {
3450
- # "BestFrameNum": 2 //需要返回多张最佳截图,取值范围1-10
3451
- # }
3452
- # @type Optional: String
3453
-
3454
- attr_accessor :VideoBase64, :LivenessType, :ValidateData, :Optional
3455
-
3456
- def initialize(videobase64=nil, livenesstype=nil, validatedata=nil, optional=nil)
3457
- @VideoBase64 = videobase64
3458
- @LivenessType = livenesstype
3459
- @ValidateData = validatedata
3460
- @Optional = optional
3461
- end
3462
-
3463
- def deserialize(params)
3464
- @VideoBase64 = params['VideoBase64']
3465
- @LivenessType = params['LivenessType']
3466
- @ValidateData = params['ValidateData']
3467
- @Optional = params['Optional']
3468
- end
3469
- end
3470
-
3471
- # Liveness返回参数结构体
3472
- class LivenessResponse < TencentCloud::Common::AbstractModel
3473
- # @param BestFrameBase64: 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
3474
- # 注意:此字段可能返回 null,表示取不到有效值。
3475
- # @type BestFrameBase64: String
3476
- # @param Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
3477
- # @type Result: String
3478
- # @param Description: 业务结果描述。
3479
- # @type Description: String
3480
- # @param BestFrameList: 最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
3481
- # 注意:此字段可能返回 null,表示取不到有效值。
3482
- # @type BestFrameList: Array
3483
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3484
- # @type RequestId: String
3485
-
3486
- attr_accessor :BestFrameBase64, :Result, :Description, :BestFrameList, :RequestId
3487
-
3488
- def initialize(bestframebase64=nil, result=nil, description=nil, bestframelist=nil, requestid=nil)
3489
- @BestFrameBase64 = bestframebase64
3490
- @Result = result
3491
- @Description = description
3492
- @BestFrameList = bestframelist
3493
- @RequestId = requestid
3494
- end
3495
-
3496
- def deserialize(params)
3497
- @BestFrameBase64 = params['BestFrameBase64']
3498
- @Result = params['Result']
3499
- @Description = params['Description']
3500
- @BestFrameList = params['BestFrameList']
3501
- @RequestId = params['RequestId']
3502
- end
3503
- end
3504
-
3505
3451
  # MinorsVerification请求参数结构体
3506
3452
  class MinorsVerificationRequest < TencentCloud::Common::AbstractModel
3507
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.1137
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-09-07 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
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-faceid.rb
37
- - lib/v20180301/models.rb
38
37
  - lib/v20180301/client.rb
38
+ - lib/v20180301/models.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: