tencentcloud-sdk-faceid 3.0.1067 → 3.0.1068

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20180301/models.rb +42 -20
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e634490dae6689c99f38a3c81b6d9b4cf2879a2f
4
- data.tar.gz: ff92861c7b1be26a97aed33382f142ee744379d4
3
+ metadata.gz: 5c185aa3b634e70ed53d70dd655c9ef69f11f91d
4
+ data.tar.gz: 72a8f2c6d8a1382ae4b6023d1deeeea3bd85b3f4
5
5
  SHA512:
6
- metadata.gz: dcfbacd344f00b161572b3e3617036dad9e53242e559048c911c594f4609abeafb78afa68c8844bd29f35057d747207457e9e31527211e0a8b33d373048954d3
7
- data.tar.gz: 267542e4f544eba8283caceaba08af8ef96f5c53307c2699ef12387138ca2e3c70e51a4bb0fcaa0b90b9bc9533e2958376567bfe76f2e8a8cf5bcfd8ff001d85
6
+ metadata.gz: e0be18da8cca799f6c7e953b8cb3b25f751b9acdcbbf8d784f2929a2bf8528281009eee185d6d4e9cd59d8d49a1ec25c3f5d9dd22c16d20c2805c2b0d375ff6b
7
+ data.tar.gz: eab9e12e5a2e064fb5e4a516069375358514c839b81c671cb6a21e4baf452063da29816458d83fb8f915f47b7b2dbeb26e8ad6757a92b1eff1d59d3bf336c0ec
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1067
1
+ 3.0.1068
@@ -316,8 +316,8 @@ module TencentCloud
316
316
 
317
317
  attr_accessor :ReqTime, :Seq, :IdCard, :Idcard, :Name, :Sim, :IsNeedCharge, :ChargeType, :ErrorCode, :ErrorMessage
318
318
  extend Gem::Deprecate
319
- deprecate :Idcard, :none, 2025, 2
320
- deprecate :Idcard=, :none, 2025, 2
319
+ deprecate :Idcard, :none, 2025, 5
320
+ deprecate :Idcard=, :none, 2025, 5
321
321
 
322
322
  def initialize(reqtime=nil, seq=nil, idcard=nil, name=nil, sim=nil, isneedcharge=nil, chargetype=nil, errorcode=nil, errormessage=nil)
323
323
  @ReqTime = reqtime
@@ -521,9 +521,7 @@ module TencentCloud
521
521
  # - 取值范围 [0.00, 100.00]。
522
522
  # - 推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
523
523
  # @type Sim: Float
524
- # @param Result: 业务错误码。
525
- # - 成功情况返回Success,。
526
- # - 错误情况请参考下方错误码 列表中FailedOperation部分
524
+ # @param Result: 业务错误码。- 成功情况返回Success。- 错误情况请参考下方错误码 列表中FailedOperation部分
527
525
  # @type Result: String
528
526
  # @param Description: 业务结果描述。
529
527
  # @type Description: String
@@ -748,17 +746,19 @@ module TencentCloud
748
746
 
749
747
  # DetectAIFakeFaces请求参数结构体
750
748
  class DetectAIFakeFacesRequest < TencentCloud::Common::AbstractModel
751
- # @param FaceInput: 传入需要进行检测的带有人脸的图片或视频,使用base64编码的形式。
749
+ # @param FaceInput: 传入需要进行检测的带有人脸的图片或视频(当前仅支持单人脸检测),使用base64编码的形式。
752
750
  # - 图片的Base64值:
753
751
  # 建议整体图像480x640的分辨率,脸部 大小 100X100 以上。
754
- # Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
752
+ # Base64编码后的图片数据大小建议不超过3M、最大不可超过10M,仅支持jpg、png格式。
755
753
  # 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
756
754
 
757
755
  # - 视频的Base64值:
758
- # Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
756
+ # Base64编码后的大小建议不超过8M、最大不可超过10M,支持mp4、avi、flv格式。
759
757
  # 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
760
758
  # 视频时长最大支持20s,建议时长2~5s。
761
759
  # 建议视频分辨率为480x640,帧率在25fps~30fps之间。
760
+
761
+ # 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
762
762
  # @type FaceInput: String
763
763
  # @param FaceInputType: 传入的类型。
764
764
  # - 取值范围:
@@ -857,6 +857,7 @@ module TencentCloud
857
857
  # - 最长长度1024位。
858
858
  # @type RedirectUrl: String
859
859
  # @param Extra: 透传字段,在获取验证结果时返回。
860
+ # - 最长长度1024位。
860
861
  # @type Extra: String
861
862
  # @param ImageBase64: 用于人脸比对的图像数据,使用base64编码。
862
863
  # - Base64编码后的图片数据大小不超过3M。
@@ -1260,6 +1261,7 @@ module TencentCloud
1260
1261
  # 2:动作活体
1261
1262
  # 3:静默活体
1262
1263
  # 4:一闪活体(动作+光线)
1264
+ # 5:远近活体
1263
1265
  # 注意:此字段可能返回 null,表示取不到有效值。
1264
1266
  # @type LivenessMode: Integer
1265
1267
  # @param NFCRequestIds: nfc重复计费requestId列表。
@@ -2134,19 +2136,31 @@ module TencentCloud
2134
2136
  # @param IsNeedBestFrame: 是否需要拉取截帧。
2135
2137
  # - 默认false:不需要。
2136
2138
  # @type IsNeedBestFrame: Boolean
2139
+ # @param IsEncryptResponse: 是否对回包整体进行加密。
2140
+ # @type IsEncryptResponse: Boolean
2141
+ # @param Encryption: 是否需要对返回中的敏感信息进行加密。
2142
+ # 只需指定加密算法Algorithm即可,其余字段传入默认值。
2143
+ # @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
2137
2144
 
2138
- attr_accessor :FaceIdToken, :IsNeedVideo, :IsNeedBestFrame
2145
+ attr_accessor :FaceIdToken, :IsNeedVideo, :IsNeedBestFrame, :IsEncryptResponse, :Encryption
2139
2146
 
2140
- def initialize(faceidtoken=nil, isneedvideo=nil, isneedbestframe=nil)
2147
+ def initialize(faceidtoken=nil, isneedvideo=nil, isneedbestframe=nil, isencryptresponse=nil, encryption=nil)
2141
2148
  @FaceIdToken = faceidtoken
2142
2149
  @IsNeedVideo = isneedvideo
2143
2150
  @IsNeedBestFrame = isneedbestframe
2151
+ @IsEncryptResponse = isencryptresponse
2152
+ @Encryption = encryption
2144
2153
  end
2145
2154
 
2146
2155
  def deserialize(params)
2147
2156
  @FaceIdToken = params['FaceIdToken']
2148
2157
  @IsNeedVideo = params['IsNeedVideo']
2149
2158
  @IsNeedBestFrame = params['IsNeedBestFrame']
2159
+ @IsEncryptResponse = params['IsEncryptResponse']
2160
+ unless params['Encryption'].nil?
2161
+ @Encryption = Encryption.new
2162
+ @Encryption.deserialize(params['Encryption'])
2163
+ end
2150
2164
  end
2151
2165
  end
2152
2166
 
@@ -2178,11 +2192,6 @@ module TencentCloud
2178
2192
  # @type Extra: String
2179
2193
  # @param DeviceInfoTag: plus版:描述当前请求所在设备的风险标签。
2180
2194
  # - 详情如下:
2181
- # 01-设备疑似被Root/设备疑似越狱。
2182
- # 02-设备疑似被注入。
2183
- # 03-设备疑似为模拟器。
2184
- # 04-设备疑似存在风险操作。
2185
- # 05-摄像头疑似被劫持。
2186
2195
  # 06-疑似黑产设备。
2187
2196
  # null-无设备风险。
2188
2197
  # - 增强版:此字段不生效,默认为null。
@@ -2223,12 +2232,18 @@ module TencentCloud
2223
2232
  # - 增强版:此字段不生效,默认为null。
2224
2233
  # 注意:此字段可能返回 null,表示取不到有效值。
2225
2234
  # @type DeviceInfoLevel: String
2235
+ # @param Encryption: 敏感数据加密信息。
2236
+ # 注意:此字段可能返回 null,表示取不到有效值。
2237
+ # @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
2238
+ # @param EncryptedBody: 加密后的数据。
2239
+ # 注意:此字段可能返回 null,表示取不到有效值。
2240
+ # @type EncryptedBody: String
2226
2241
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2227
2242
  # @type RequestId: String
2228
2243
 
2229
- attr_accessor :IdCard, :Name, :Result, :Description, :Similarity, :VideoBase64, :BestFrameBase64, :Extra, :DeviceInfoTag, :RiskInfoTag, :LivenessInfoTag, :DeviceInfoLevel, :RequestId
2244
+ attr_accessor :IdCard, :Name, :Result, :Description, :Similarity, :VideoBase64, :BestFrameBase64, :Extra, :DeviceInfoTag, :RiskInfoTag, :LivenessInfoTag, :DeviceInfoLevel, :Encryption, :EncryptedBody, :RequestId
2230
2245
 
2231
- def initialize(idcard=nil, name=nil, result=nil, description=nil, similarity=nil, videobase64=nil, bestframebase64=nil, extra=nil, deviceinfotag=nil, riskinfotag=nil, livenessinfotag=nil, deviceinfolevel=nil, requestid=nil)
2246
+ def initialize(idcard=nil, name=nil, result=nil, description=nil, similarity=nil, videobase64=nil, bestframebase64=nil, extra=nil, deviceinfotag=nil, riskinfotag=nil, livenessinfotag=nil, deviceinfolevel=nil, encryption=nil, encryptedbody=nil, requestid=nil)
2232
2247
  @IdCard = idcard
2233
2248
  @Name = name
2234
2249
  @Result = result
@@ -2241,6 +2256,8 @@ module TencentCloud
2241
2256
  @RiskInfoTag = riskinfotag
2242
2257
  @LivenessInfoTag = livenessinfotag
2243
2258
  @DeviceInfoLevel = deviceinfolevel
2259
+ @Encryption = encryption
2260
+ @EncryptedBody = encryptedbody
2244
2261
  @RequestId = requestid
2245
2262
  end
2246
2263
 
@@ -2257,6 +2274,11 @@ module TencentCloud
2257
2274
  @RiskInfoTag = params['RiskInfoTag']
2258
2275
  @LivenessInfoTag = params['LivenessInfoTag']
2259
2276
  @DeviceInfoLevel = params['DeviceInfoLevel']
2277
+ unless params['Encryption'].nil?
2278
+ @Encryption = Encryption.new
2279
+ @Encryption.deserialize(params['Encryption'])
2280
+ end
2281
+ @EncryptedBody = params['EncryptedBody']
2260
2282
  @RequestId = params['RequestId']
2261
2283
  end
2262
2284
  end
@@ -2380,7 +2402,7 @@ module TencentCloud
2380
2402
  # - 开通地址见https://console.cloud.tencent.com/faceid/cos
2381
2403
  # - 【注意】选择该参数为true后将不返回base64数据,请根据接入情况谨慎修改。
2382
2404
  # @type UseCos: Boolean
2383
- # @param Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
2405
+ # @param Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号、自传照片)有加密需求的用户可使用此参数,详情请点击左侧链接。
2384
2406
  # @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
2385
2407
  # @param RuleId: 用于细分客户使用场景。
2386
2408
  # - 申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。
@@ -3113,8 +3135,8 @@ module TencentCloud
3113
3135
 
3114
3136
  attr_accessor :IntentionVerifyVideo, :AsrResult, :ErrorCode, :ErrorMessage, :IntentionVerifyBestFrame, :AsrResultSimilarity
3115
3137
  extend Gem::Deprecate
3116
- deprecate :AsrResultSimilarity, :none, 2025, 2
3117
- deprecate :AsrResultSimilarity=, :none, 2025, 2
3138
+ deprecate :AsrResultSimilarity, :none, 2025, 5
3139
+ deprecate :AsrResultSimilarity=, :none, 2025, 5
3118
3140
 
3119
3141
  def initialize(intentionverifyvideo=nil, asrresult=nil, errorcode=nil, errormessage=nil, intentionverifybestframe=nil, asrresultsimilarity=nil)
3120
3142
  @IntentionVerifyVideo = intentionverifyvideo
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.1067
4
+ version: 3.0.1068
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-05-25 00:00:00.000000000 Z
11
+ date: 2025-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common