tencentcloud-sdk-faceid 1.0.364 → 3.0.371

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 +111 -10
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0839d8934e87b4e4d5d3f5dd1e553c0e84df8a6e
4
- data.tar.gz: afeb6427ac47c14785db685104951945ac99c7bf
3
+ metadata.gz: 6a8ed386f8b17f644de4b02fe77a8315f700df9c
4
+ data.tar.gz: d428631176467d88f30d20dfaf052995b0ab7a77
5
5
  SHA512:
6
- metadata.gz: 5dae4d00d23838cdad61ba5bfb5eb3accb1a52a7a64e1451023276c9e5929c412d2d91cb711a54c1b6dffea3bc8b00203e96dc811a48fa01c30e33214210ded1
7
- data.tar.gz: c63b903305a6406d8765031b7092c24bb158b685e5d2a20196efa6f86ebae111d0f90e19c778e4a6d528bc1327bd8e8b69736595a5036739ec03897df00be53e
6
+ metadata.gz: defca05c5cb99d678c75379671a44debb76fcf2cfffb66fe34f6530ff300e526802d50d7e66ce6d514ee5da26b8971b5958dbdd0857d462223f2727a592e9295
7
+ data.tar.gz: 63cdf16e8695e2ff943035451e6e793e7169ee8950784b02767ed493107f0154936599ffd2c78389a09183f9750a68585870d76ff55dbf5addf5deebb38a3836
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.364
1
+ 3.0.371
@@ -679,10 +679,12 @@ module TencentCloud
679
679
  # @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
680
680
  # @param IntentionVerifyText: 意愿核身使用的文案,若未使用意愿核身功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
681
681
  # @type IntentionVerifyText: String
682
+ # @param IntentionQuestions: 意愿核身过程中播报文本/问题、用户朗读/回答的文本,当前支持一个播报文本+回答文本。
683
+ # @type IntentionQuestions: Array
682
684
 
683
- attr_accessor :RuleId, :TerminalType, :IdCard, :Name, :RedirectUrl, :Extra, :ImageBase64, :Encryption, :IntentionVerifyText
685
+ attr_accessor :RuleId, :TerminalType, :IdCard, :Name, :RedirectUrl, :Extra, :ImageBase64, :Encryption, :IntentionVerifyText, :IntentionQuestions
684
686
 
685
- def initialize(ruleid=nil, terminaltype=nil, idcard=nil, name=nil, redirecturl=nil, extra=nil, imagebase64=nil, encryption=nil, intentionverifytext=nil)
687
+ def initialize(ruleid=nil, terminaltype=nil, idcard=nil, name=nil, redirecturl=nil, extra=nil, imagebase64=nil, encryption=nil, intentionverifytext=nil, intentionquestions=nil)
686
688
  @RuleId = ruleid
687
689
  @TerminalType = terminaltype
688
690
  @IdCard = idcard
@@ -692,6 +694,7 @@ module TencentCloud
692
694
  @ImageBase64 = imagebase64
693
695
  @Encryption = encryption
694
696
  @IntentionVerifyText = intentionverifytext
697
+ @IntentionQuestions = intentionquestions
695
698
  end
696
699
 
697
700
  def deserialize(params)
@@ -707,6 +710,14 @@ module TencentCloud
707
710
  @Encryption.deserialize(params['Encryption'])
708
711
  end
709
712
  @IntentionVerifyText = params['IntentionVerifyText']
713
+ unless params['IntentionQuestions'].nil?
714
+ @IntentionQuestions = []
715
+ params['IntentionQuestions'].each do |i|
716
+ intentionquestion_tmp = IntentionQuestion.new
717
+ intentionquestion_tmp.deserialize(i)
718
+ @IntentionQuestions << intentionquestion_tmp
719
+ end
720
+ end
710
721
  end
711
722
  end
712
723
 
@@ -855,22 +866,39 @@ module TencentCloud
855
866
  # @param Avatar: 身份证正面人像图base64编码。
856
867
  # 注意:此字段可能返回 null,表示取不到有效值。
857
868
  # @type Avatar: String
858
- # @param WarnInfos: 开启身份证防翻拍告警功能后才会返回,返回数组中可能出现的告警码如下:
859
- # -9102 身份证复印件告警。
860
- # -9103 身份证翻拍告警。
861
- # -9106 身份证 PS 告警。
869
+ # @param WarnInfos: 身份证人像面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
870
+ # -9100 身份证有效日期不合法告警,
871
+ # -9101 身份证边框不完整告警,
872
+ # -9102 身份证复印件告警,
873
+ # -9103 身份证翻拍告警,
874
+ # -9105 身份证框内遮挡告警,
875
+ # -9104 临时身份证告警,
876
+ # -9106 身份证 PS 告警,
877
+ # -9107 身份证反光告警。
862
878
  # 注意:此字段可能返回 null,表示取不到有效值。
863
879
  # @type WarnInfos: Array
880
+ # @param BackWarnInfos: 身份证国徽面告警码,开启身份证告警功能后才会返回,返回数组中可能出现的告警码如下:
881
+ # -9100 身份证有效日期不合法告警,
882
+ # -9101 身份证边框不完整告警,
883
+ # -9102 身份证复印件告警,
884
+ # -9103 身份证翻拍告警,
885
+ # -9105 身份证框内遮挡告警,
886
+ # -9104 临时身份证告警,
887
+ # -9106 身份证 PS 告警,
888
+ # -9107 身份证反光告警。
889
+ # 注意:此字段可能返回 null,表示取不到有效值。
890
+ # @type BackWarnInfos: Array
864
891
 
865
- attr_accessor :OcrFront, :OcrBack, :ProcessedFrontImage, :ProcessedBackImage, :Avatar, :WarnInfos
892
+ attr_accessor :OcrFront, :OcrBack, :ProcessedFrontImage, :ProcessedBackImage, :Avatar, :WarnInfos, :BackWarnInfos
866
893
 
867
- def initialize(ocrfront=nil, ocrback=nil, processedfrontimage=nil, processedbackimage=nil, avatar=nil, warninfos=nil)
894
+ def initialize(ocrfront=nil, ocrback=nil, processedfrontimage=nil, processedbackimage=nil, avatar=nil, warninfos=nil, backwarninfos=nil)
868
895
  @OcrFront = ocrfront
869
896
  @OcrBack = ocrback
870
897
  @ProcessedFrontImage = processedfrontimage
871
898
  @ProcessedBackImage = processedbackimage
872
899
  @Avatar = avatar
873
900
  @WarnInfos = warninfos
901
+ @BackWarnInfos = backwarninfos
874
902
  end
875
903
 
876
904
  def deserialize(params)
@@ -880,6 +908,7 @@ module TencentCloud
880
908
  @ProcessedBackImage = params['ProcessedBackImage']
881
909
  @Avatar = params['Avatar']
882
910
  @WarnInfos = params['WarnInfos']
911
+ @BackWarnInfos = params['BackWarnInfos']
883
912
  end
884
913
  end
885
914
 
@@ -1248,18 +1277,22 @@ module TencentCloud
1248
1277
  # @param IntentionVerifyData: 意愿核身相关信息。若未使用意愿核身功能,该字段返回值可以不处理。
1249
1278
  # 注意:此字段可能返回 null,表示取不到有效值。
1250
1279
  # @type IntentionVerifyData: :class:`Tencentcloud::Faceid.v20180301.models.IntentionVerifyData`
1280
+ # @param IntentionQuestionResult: 意愿核身问答模式结果。若未使用该意愿核身功能,该字段返回值可以不处理。
1281
+ # 注意:此字段可能返回 null,表示取不到有效值。
1282
+ # @type IntentionQuestionResult: :class:`Tencentcloud::Faceid.v20180301.models.IntentionQuestionResult`
1251
1283
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1252
1284
  # @type RequestId: String
1253
1285
 
1254
- attr_accessor :Text, :IdCardData, :BestFrame, :VideoData, :Encryption, :IntentionVerifyData, :RequestId
1286
+ attr_accessor :Text, :IdCardData, :BestFrame, :VideoData, :Encryption, :IntentionVerifyData, :IntentionQuestionResult, :RequestId
1255
1287
 
1256
- def initialize(text=nil, idcarddata=nil, bestframe=nil, videodata=nil, encryption=nil, intentionverifydata=nil, requestid=nil)
1288
+ def initialize(text=nil, idcarddata=nil, bestframe=nil, videodata=nil, encryption=nil, intentionverifydata=nil, intentionquestionresult=nil, requestid=nil)
1257
1289
  @Text = text
1258
1290
  @IdCardData = idcarddata
1259
1291
  @BestFrame = bestframe
1260
1292
  @VideoData = videodata
1261
1293
  @Encryption = encryption
1262
1294
  @IntentionVerifyData = intentionverifydata
1295
+ @IntentionQuestionResult = intentionquestionresult
1263
1296
  @RequestId = requestid
1264
1297
  end
1265
1298
 
@@ -1288,6 +1321,10 @@ module TencentCloud
1288
1321
  @IntentionVerifyData = IntentionVerifyData.new
1289
1322
  @IntentionVerifyData.deserialize(params['IntentionVerifyData'])
1290
1323
  end
1324
+ unless params['IntentionQuestionResult'].nil?
1325
+ @IntentionQuestionResult = IntentionQuestionResult.new
1326
+ @IntentionQuestionResult.deserialize(params['IntentionQuestionResult'])
1327
+ end
1291
1328
  @RequestId = params['RequestId']
1292
1329
  end
1293
1330
  end
@@ -2136,6 +2173,70 @@ module TencentCloud
2136
2173
  end
2137
2174
  end
2138
2175
 
2176
+ # 意愿核身过程中播报的问题文本、用户回答的标准文本。
2177
+ class IntentionQuestion < TencentCloud::Common::AbstractModel
2178
+ # @param Question: 系统播报的问题文本,问题最大长度为150个字符。
2179
+ # @type Question: String
2180
+ # @param Answers: 用户答案的标准文本列表,用于识别用户回答的语音与标准文本是否一致。列表长度最大为50,单个答案长度限制10个字符。
2181
+ # @type Answers: Array
2182
+
2183
+ attr_accessor :Question, :Answers
2184
+
2185
+ def initialize(question=nil, answers=nil)
2186
+ @Question = question
2187
+ @Answers = answers
2188
+ end
2189
+
2190
+ def deserialize(params)
2191
+ @Question = params['Question']
2192
+ @Answers = params['Answers']
2193
+ end
2194
+ end
2195
+
2196
+ # 意愿核身问答模式结果
2197
+ class IntentionQuestionResult < TencentCloud::Common::AbstractModel
2198
+ # @param FinalResultCode: 意愿核身最终结果:
2199
+ # 0:通过,-1:未通过
2200
+ # 注意:此字段可能返回 null,表示取不到有效值。
2201
+ # @type FinalResultCode: String
2202
+ # @param Video: 视频base64(其中包含全程问题和回答音频,mp4格式)
2203
+ # 注意:此字段可能返回 null,表示取不到有效值。
2204
+ # @type Video: String
2205
+ # @param ScreenShot: 屏幕截图base64列表
2206
+ # 注意:此字段可能返回 null,表示取不到有效值。
2207
+ # @type ScreenShot: Array
2208
+ # @param ResultCode: 和答案匹配结果列表
2209
+ # 0:成功,-1:不匹配
2210
+ # 注意:此字段可能返回 null,表示取不到有效值。
2211
+ # @type ResultCode: Array
2212
+ # @param AsrResult: 回答问题语音识别结果列表
2213
+ # 注意:此字段可能返回 null,表示取不到有效值。
2214
+ # @type AsrResult: Array
2215
+ # @param Audios: 答案录音音频
2216
+ # 注意:此字段可能返回 null,表示取不到有效值。
2217
+ # @type Audios: Array
2218
+
2219
+ attr_accessor :FinalResultCode, :Video, :ScreenShot, :ResultCode, :AsrResult, :Audios
2220
+
2221
+ def initialize(finalresultcode=nil, video=nil, screenshot=nil, resultcode=nil, asrresult=nil, audios=nil)
2222
+ @FinalResultCode = finalresultcode
2223
+ @Video = video
2224
+ @ScreenShot = screenshot
2225
+ @ResultCode = resultcode
2226
+ @AsrResult = asrresult
2227
+ @Audios = audios
2228
+ end
2229
+
2230
+ def deserialize(params)
2231
+ @FinalResultCode = params['FinalResultCode']
2232
+ @Video = params['Video']
2233
+ @ScreenShot = params['ScreenShot']
2234
+ @ResultCode = params['ResultCode']
2235
+ @AsrResult = params['AsrResult']
2236
+ @Audios = params['Audios']
2237
+ end
2238
+ end
2239
+
2139
2240
  # 意愿核身相关结果
2140
2241
  class IntentionVerifyData < TencentCloud::Common::AbstractModel
2141
2242
  # @param IntentionVerifyVideo: 意愿确认环节中录制的视频(base64)。若不存在则为空字符串。
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.364
4
+ version: 3.0.371
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-26 00:00:00.000000000 Z
11
+ date: 2022-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common