tencentcloud-sdk-faceid 3.0.637 → 3.0.638
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/models.rb +125 -9
- 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: 48466c6fd0de7befd4b94cdff40668c8f6b76a07
|
4
|
+
data.tar.gz: 74c573698673e72b707f54a2b1d64c6acad8538a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af229311769e1b50099e986b1a208f18b77623a7f59ec71c493ec1caace2c6938abde3073e7e93ba81d26cc65aaef29ef68d5b30044f879de2793f9059e759f4
|
7
|
+
data.tar.gz: fee71856ae18eff004b5805f5e400f41442713281ffab113e18511ba25bbc0ab919fe0d9e67df6fa1cf45604af4e29fe621270d41b4843590eff5c9f79decd93
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.638
|
data/lib/v20180301/models.rb
CHANGED
@@ -682,14 +682,16 @@ module TencentCloud
|
|
682
682
|
# @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
|
683
683
|
# @param IntentionVerifyText: 意愿核身(朗读模式)使用的文案,若未使用意愿核身(朗读模式),则该字段无需传入。默认为空,最长可接受120的字符串长度。
|
684
684
|
# @type IntentionVerifyText: String
|
685
|
-
# @param IntentionQuestions:
|
685
|
+
# @param IntentionQuestions: 意愿核身语音问答模式(即语音播报+语音回答)使用的文案,包括:系统语音播报的文本、需要核验的标准文本。当前仅支持1轮问答。
|
686
686
|
# @type IntentionQuestions: Array
|
687
687
|
# @param Config: RuleId相关配置
|
688
688
|
# @type Config: :class:`Tencentcloud::Faceid.v20180301.models.RuleIdConfig`
|
689
|
+
# @param IntentionActions: 意愿核身(点头确认模式)使用的文案,若未使用意愿核身(点头确认模式),则该字段无需传入。当前仅支持一个提示文本。
|
690
|
+
# @type IntentionActions: Array
|
689
691
|
|
690
|
-
attr_accessor :RuleId, :TerminalType, :IdCard, :Name, :RedirectUrl, :Extra, :ImageBase64, :Encryption, :IntentionVerifyText, :IntentionQuestions, :Config
|
692
|
+
attr_accessor :RuleId, :TerminalType, :IdCard, :Name, :RedirectUrl, :Extra, :ImageBase64, :Encryption, :IntentionVerifyText, :IntentionQuestions, :Config, :IntentionActions
|
691
693
|
|
692
|
-
def initialize(ruleid=nil, terminaltype=nil, idcard=nil, name=nil, redirecturl=nil, extra=nil, imagebase64=nil, encryption=nil, intentionverifytext=nil, intentionquestions=nil, config=nil)
|
694
|
+
def initialize(ruleid=nil, terminaltype=nil, idcard=nil, name=nil, redirecturl=nil, extra=nil, imagebase64=nil, encryption=nil, intentionverifytext=nil, intentionquestions=nil, config=nil, intentionactions=nil)
|
693
695
|
@RuleId = ruleid
|
694
696
|
@TerminalType = terminaltype
|
695
697
|
@IdCard = idcard
|
@@ -701,6 +703,7 @@ module TencentCloud
|
|
701
703
|
@IntentionVerifyText = intentionverifytext
|
702
704
|
@IntentionQuestions = intentionquestions
|
703
705
|
@Config = config
|
706
|
+
@IntentionActions = intentionactions
|
704
707
|
end
|
705
708
|
|
706
709
|
def deserialize(params)
|
@@ -728,6 +731,14 @@ module TencentCloud
|
|
728
731
|
@Config = RuleIdConfig.new
|
729
732
|
@Config.deserialize(params['Config'])
|
730
733
|
end
|
734
|
+
unless params['IntentionActions'].nil?
|
735
|
+
@IntentionActions = []
|
736
|
+
params['IntentionActions'].each do |i|
|
737
|
+
intentionactionconfig_tmp = IntentionActionConfig.new
|
738
|
+
intentionactionconfig_tmp.deserialize(i)
|
739
|
+
@IntentionActions << intentionactionconfig_tmp
|
740
|
+
end
|
741
|
+
end
|
731
742
|
end
|
732
743
|
end
|
733
744
|
|
@@ -1369,12 +1380,15 @@ module TencentCloud
|
|
1369
1380
|
# @param IntentionQuestionResult: 意愿核身问答模式结果。若未使用该意愿核身功能,该字段返回值可以不处理。
|
1370
1381
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1371
1382
|
# @type IntentionQuestionResult: :class:`Tencentcloud::Faceid.v20180301.models.IntentionQuestionResult`
|
1383
|
+
# @param IntentionActionResult: 意愿核身点头确认模式的结果信息,若未使用该意愿核身功能,该字段返回值可以不处理。
|
1384
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1385
|
+
# @type IntentionActionResult: :class:`Tencentcloud::Faceid.v20180301.models.IntentionActionResult`
|
1372
1386
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1373
1387
|
# @type RequestId: String
|
1374
1388
|
|
1375
|
-
attr_accessor :Text, :IdCardData, :BestFrame, :VideoData, :Encryption, :IntentionVerifyData, :IntentionQuestionResult, :RequestId
|
1389
|
+
attr_accessor :Text, :IdCardData, :BestFrame, :VideoData, :Encryption, :IntentionVerifyData, :IntentionQuestionResult, :IntentionActionResult, :RequestId
|
1376
1390
|
|
1377
|
-
def initialize(text=nil, idcarddata=nil, bestframe=nil, videodata=nil, encryption=nil, intentionverifydata=nil, intentionquestionresult=nil, requestid=nil)
|
1391
|
+
def initialize(text=nil, idcarddata=nil, bestframe=nil, videodata=nil, encryption=nil, intentionverifydata=nil, intentionquestionresult=nil, intentionactionresult=nil, requestid=nil)
|
1378
1392
|
@Text = text
|
1379
1393
|
@IdCardData = idcarddata
|
1380
1394
|
@BestFrame = bestframe
|
@@ -1382,6 +1396,7 @@ module TencentCloud
|
|
1382
1396
|
@Encryption = encryption
|
1383
1397
|
@IntentionVerifyData = intentionverifydata
|
1384
1398
|
@IntentionQuestionResult = intentionquestionresult
|
1399
|
+
@IntentionActionResult = intentionactionresult
|
1385
1400
|
@RequestId = requestid
|
1386
1401
|
end
|
1387
1402
|
|
@@ -1414,6 +1429,10 @@ module TencentCloud
|
|
1414
1429
|
@IntentionQuestionResult = IntentionQuestionResult.new
|
1415
1430
|
@IntentionQuestionResult.deserialize(params['IntentionQuestionResult'])
|
1416
1431
|
end
|
1432
|
+
unless params['IntentionActionResult'].nil?
|
1433
|
+
@IntentionActionResult = IntentionActionResult.new
|
1434
|
+
@IntentionActionResult.deserialize(params['IntentionActionResult'])
|
1435
|
+
end
|
1417
1436
|
@RequestId = params['RequestId']
|
1418
1437
|
end
|
1419
1438
|
end
|
@@ -2208,11 +2227,102 @@ module TencentCloud
|
|
2208
2227
|
end
|
2209
2228
|
end
|
2210
2229
|
|
2230
|
+
# 意愿核身(点头确认模式)配置
|
2231
|
+
class IntentionActionConfig < TencentCloud::Common::AbstractModel
|
2232
|
+
# @param Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为150个字符。
|
2233
|
+
# @type Text: String
|
2234
|
+
|
2235
|
+
attr_accessor :Text
|
2236
|
+
|
2237
|
+
def initialize(text=nil)
|
2238
|
+
@Text = text
|
2239
|
+
end
|
2240
|
+
|
2241
|
+
def deserialize(params)
|
2242
|
+
@Text = params['Text']
|
2243
|
+
end
|
2244
|
+
end
|
2245
|
+
|
2246
|
+
# 意愿核身点头确认模式结果
|
2247
|
+
class IntentionActionResult < TencentCloud::Common::AbstractModel
|
2248
|
+
# @param FinalResultDetailCode: 意愿核身错误码:
|
2249
|
+
# 0: "成功"
|
2250
|
+
# -1: "参数错误"
|
2251
|
+
# -2: "系统异常"
|
2252
|
+
# -101: "请保持人脸在框内"
|
2253
|
+
# -102: "检测到多张人脸"
|
2254
|
+
# -103: "人脸检测失败"
|
2255
|
+
# -104: "人脸检测不完整"
|
2256
|
+
# -105: "请勿遮挡眼睛"
|
2257
|
+
# -106: "请勿遮挡嘴巴"
|
2258
|
+
# -107: "请勿遮挡鼻子"
|
2259
|
+
# -201: "人脸比对相似度低"
|
2260
|
+
# -202: "人脸比对失败"
|
2261
|
+
# -301: "意愿核验不通过"
|
2262
|
+
# -800: "前端不兼容错误"
|
2263
|
+
# -801: "用户未授权摄像头和麦克风权限"
|
2264
|
+
# -802: "获取视频流失败"
|
2265
|
+
# -803: "用户主动关闭链接/异常断开链接"
|
2266
|
+
# -998: "系统数据异常"
|
2267
|
+
# -999: "系统未知错误,请联系人工核实"
|
2268
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2269
|
+
# @type FinalResultDetailCode: Integer
|
2270
|
+
# @param FinalResultMessage: 意愿核身错误信息
|
2271
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2272
|
+
# @type FinalResultMessage: String
|
2273
|
+
# @param Details: 意愿核身结果详细数据,与每段点头确认过程一一对应
|
2274
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2275
|
+
# @type Details: Array
|
2276
|
+
|
2277
|
+
attr_accessor :FinalResultDetailCode, :FinalResultMessage, :Details
|
2278
|
+
|
2279
|
+
def initialize(finalresultdetailcode=nil, finalresultmessage=nil, details=nil)
|
2280
|
+
@FinalResultDetailCode = finalresultdetailcode
|
2281
|
+
@FinalResultMessage = finalresultmessage
|
2282
|
+
@Details = details
|
2283
|
+
end
|
2284
|
+
|
2285
|
+
def deserialize(params)
|
2286
|
+
@FinalResultDetailCode = params['FinalResultDetailCode']
|
2287
|
+
@FinalResultMessage = params['FinalResultMessage']
|
2288
|
+
unless params['Details'].nil?
|
2289
|
+
@Details = []
|
2290
|
+
params['Details'].each do |i|
|
2291
|
+
intentionactionresultdetail_tmp = IntentionActionResultDetail.new
|
2292
|
+
intentionactionresultdetail_tmp.deserialize(i)
|
2293
|
+
@Details << intentionactionresultdetail_tmp
|
2294
|
+
end
|
2295
|
+
end
|
2296
|
+
end
|
2297
|
+
end
|
2298
|
+
|
2299
|
+
# 意愿核身点头确认模式结果详细数据
|
2300
|
+
class IntentionActionResultDetail < TencentCloud::Common::AbstractModel
|
2301
|
+
# @param Video: 视频base64编码(其中包含全程提示文本和点头音频,mp4格式)
|
2302
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2303
|
+
# @type Video: String
|
2304
|
+
# @param ScreenShot: 屏幕截图base64编码列表
|
2305
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2306
|
+
# @type ScreenShot: Array
|
2307
|
+
|
2308
|
+
attr_accessor :Video, :ScreenShot
|
2309
|
+
|
2310
|
+
def initialize(video=nil, screenshot=nil)
|
2311
|
+
@Video = video
|
2312
|
+
@ScreenShot = screenshot
|
2313
|
+
end
|
2314
|
+
|
2315
|
+
def deserialize(params)
|
2316
|
+
@Video = params['Video']
|
2317
|
+
@ScreenShot = params['ScreenShot']
|
2318
|
+
end
|
2319
|
+
end
|
2320
|
+
|
2211
2321
|
# 意愿核身过程中播报的问题文本、用户回答的标准文本。
|
2212
2322
|
class IntentionQuestion < TencentCloud::Common::AbstractModel
|
2213
|
-
# @param Question:
|
2323
|
+
# @param Question: 当选择语音问答模式时,系统自动播报的问题文本,最大长度为150个字符。
|
2214
2324
|
# @type Question: String
|
2215
|
-
# @param Answers:
|
2325
|
+
# @param Answers: 当选择语音问答模式时,用于判断用户回答是否通过的标准答案列表,传入后可自动判断用户回答文本是否在标准文本列表中。列表长度最大为50,单个答案长度限制10个字符。
|
2216
2326
|
# @type Answers: Array
|
2217
2327
|
|
2218
2328
|
attr_accessor :Question, :Answers
|
@@ -3235,15 +3345,21 @@ module TencentCloud
|
|
3235
3345
|
class RuleIdConfig < TencentCloud::Common::AbstractModel
|
3236
3346
|
# @param IntentionRecognition: 意愿核身过程中识别用户的回答意图,开启后除了IntentionQuestions的Answers列表中的标准回答会通过,近似意图的回答也会通过,默认不开启。
|
3237
3347
|
# @type IntentionRecognition: Boolean
|
3348
|
+
# @param IntentionType: 意愿核身类型,默认为0:
|
3349
|
+
# 0:问答模式,DetectAuth接口需要传入IntentionQuestions字段;
|
3350
|
+
# 1:点头模式,DetectAuth接口需要传入IntentionActions字段;
|
3351
|
+
# @type IntentionType: Integer
|
3238
3352
|
|
3239
|
-
attr_accessor :IntentionRecognition
|
3353
|
+
attr_accessor :IntentionRecognition, :IntentionType
|
3240
3354
|
|
3241
|
-
def initialize(intentionrecognition=nil)
|
3355
|
+
def initialize(intentionrecognition=nil, intentiontype=nil)
|
3242
3356
|
@IntentionRecognition = intentionrecognition
|
3357
|
+
@IntentionType = intentiontype
|
3243
3358
|
end
|
3244
3359
|
|
3245
3360
|
def deserialize(params)
|
3246
3361
|
@IntentionRecognition = params['IntentionRecognition']
|
3362
|
+
@IntentionType = params['IntentionType']
|
3247
3363
|
end
|
3248
3364
|
end
|
3249
3365
|
|
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.638
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|