tccli 3.0.1083.1__py2.py3-none-any.whl → 3.0.1085.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/aiart/v20221229/QueryTextToImageProJob.md +30 -0
- tccli/examples/aiart/v20221229/SubmitTextToImageProJob.md +22 -0
- tccli/examples/billing/v20180709/DescribeCostDetail.md +36 -33
- tccli/examples/billing/v20180709/DescribeCostSummaryByProject.md +25 -80
- tccli/examples/billing/v20180709/DescribeCostSummaryByRegion.md +23 -14
- tccli/examples/billing/v20180709/DescribeCostSummaryByResource.md +53 -27
- tccli/examples/ccc/v20200210/CreateCompanyApply.md +36 -0
- tccli/examples/ccc/v20200210/DescribeCompanyList.md +33 -0
- tccli/examples/ccc/v20200210/ModifyCompanyApply.md +36 -0
- tccli/examples/cdb/v20170320/CreateCloneInstance.md +5 -5
- tccli/examples/ckafka/v20190819/CreateInstancePost.md +9 -6
- tccli/examples/ckafka/v20190819/CreatePrometheus.md +29 -0
- tccli/examples/ckafka/v20190819/DescribeGroupInfo.md +2 -2
- tccli/examples/ckafka/v20190819/DescribePrometheus.md +25 -0
- tccli/examples/ckafka/v20190819/ModifyAclRule.md +1 -1
- tccli/examples/cynosdb/v20190107/RollbackToNewCluster.md +62 -0
- tccli/examples/dlc/v20210125/QueryTaskCostDetail.md +20 -0
- tccli/examples/ess/v20201111/CreateFlowApprovers.md +34 -0
- tccli/examples/ess/v20201111/CreateFlowGroupByFiles.md +168 -0
- tccli/examples/ess/v20201111/CreateFlowGroupByTemplates.md +98 -0
- tccli/examples/ess/v20201111/CreateSchemeUrl.md +31 -3
- tccli/examples/essbasic/v20210526/ChannelCreateFlowApprovers.md +41 -0
- tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByFiles.md +171 -0
- tccli/examples/essbasic/v20210526/ChannelCreateFlowGroupByTemplates.md +92 -0
- tccli/examples/essbasic/v20210526/ChannelCreateReleaseFlow.md +1 -1
- tccli/examples/essbasic/v20210526/CreateSignUrls.md +52 -0
- tccli/examples/faceid/v20180301/GetFaceIdResult.md +4 -4
- tccli/examples/faceid/v20180301/GetFaceIdRiskInfo.md +26 -0
- tccli/examples/faceid/v20180301/GetFaceidRiskInfoToken.md +22 -0
- tccli/examples/iotexplorer/v20190423/BindCloudStorageUser.md +22 -0
- tccli/examples/iotexplorer/v20190423/CreateIotVideoCloudStorage.md +22 -0
- tccli/examples/iotexplorer/v20190423/DeleteCloudStorageEvent.md +26 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorage.md +27 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageDate.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageEvents.md +87 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageMultiThumbnail.md +28 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageOrder.md +25 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeDetails.md +21 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStoragePackageConsumeStats.md +44 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageStreamData.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnail.md +24 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageThumbnailList.md +28 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageTime.md +43 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageUsers.md +29 -0
- tccli/examples/iotexplorer/v20190423/DescribeDevicePackages.md +37 -0
- tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTask.md +21 -0
- tccli/examples/iotexplorer/v20190423/DescribePackageConsumeTasks.md +39 -0
- tccli/examples/iotexplorer/v20190423/GenerateSignedVideoURL.md +22 -0
- tccli/examples/iotexplorer/v20190423/InheritCloudStorageUser.md +23 -0
- tccli/examples/iotexplorer/v20190423/ResetCloudStorage.md +21 -0
- tccli/examples/iotexplorer/v20190423/ResetCloudStorageEvent.md +22 -0
- tccli/examples/iotexplorer/v20190423/TransferCloudStorage.md +22 -0
- tccli/examples/live/v20180801/CreateLiveTimeShiftTemplate.md +8 -8
- tccli/examples/monitor/v20180724/CreateExporterIntegration.md +626 -2
- tccli/examples/ocr/v20181119/ReconstructDocument.md +2263 -0
- tccli/examples/pts/v20210728/CreateEnvironment.md +18 -0
- tccli/examples/pts/v20210728/DeleteEnvironments.md +18 -0
- tccli/examples/pts/v20210728/DescribeEnvironments.md +18 -0
- tccli/examples/pts/v20210728/UpdateEnvironment.md +18 -0
- tccli/examples/ssl/v20191205/UploadCertificate.md +48 -3
- tccli/examples/tag/v20180813/DescribeProjects.md +1 -1
- tccli/examples/tione/v20211111/CreateModelService.md +3 -1
- tccli/examples/tione/v20211111/ModifyModelService.md +62 -228
- tccli/examples/wedata/v20210820/BatchCreateIntegrationTaskAlarms.md +11 -11
- tccli/examples/wedata/v20210820/BatchForceSuccessIntegrationTaskInstances.md +2 -2
- tccli/examples/wedata/v20210820/BatchKillIntegrationTaskInstances.md +2 -2
- tccli/examples/wedata/v20210820/BatchMakeUpIntegrationTasks.md +2 -2
- tccli/examples/wedata/v20210820/BatchRerunIntegrationTaskInstances.md +5 -2
- tccli/examples/wedata/v20210820/CheckDuplicateRuleName.md +5 -5
- tccli/examples/wedata/v20210820/CheckDuplicateTemplateName.md +4 -4
- tccli/examples/wedata/v20210820/CheckIntegrationNodeNameExists.md +4 -4
- tccli/examples/wedata/v20210820/CheckIntegrationTaskNameExists.md +4 -4
- tccli/examples/wedata/v20210820/CheckTaskNameExist.md +3 -3
- tccli/examples/wedata/v20210820/CommitExportTask.md +4 -4
- tccli/examples/wedata/v20210820/CreateInLongAgent.md +6 -6
- tccli/examples/wedata/v20210820/CreateOrUpdateResource.md +2 -1
- tccli/examples/wedata/v20210820/CreateRuleTemplate.md +1 -1
- tccli/examples/wedata/v20210820/CreateTaskAlarmRegular.md +11 -11
- tccli/examples/wedata/v20210820/DeleteInLongAgent.md +3 -3
- tccli/examples/wedata/v20210820/DeleteIntegrationNode.md +2 -2
- tccli/examples/wedata/v20210820/DeleteOfflineTask.md +4 -4
- tccli/examples/wedata/v20210820/DeleteRule.md +1 -1
- tccli/examples/wedata/v20210820/DeleteRuleTemplate.md +1 -1
- tccli/examples/wedata/v20210820/DescribeClusterNamespaceList.md +6 -6
- tccli/examples/wedata/v20210820/DescribeDataBases.md +12 -8
- tccli/examples/wedata/v20210820/DescribeDataCheckStat.md +5 -5
- tccli/examples/wedata/v20210820/DescribeDataObjects.md +6 -3
- tccli/examples/wedata/v20210820/DescribeExecStrategy.md +20 -16
- tccli/examples/wedata/v20210820/DescribeInLongAgentTaskList.md +6 -6
- tccli/examples/wedata/v20210820/DescribeInLongAgentVpcList.md +3 -3
- tccli/examples/wedata/v20210820/DescribeInstances.md +6 -6
- tccli/examples/wedata/v20210820/DescribeIntegrationNode.md +61 -43
- tccli/examples/wedata/v20210820/DescribeIntegrationStatistics.md +13 -13
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsAgentStatus.md +6 -6
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsInstanceTrend.md +8 -10
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsRecordsTrend.md +1 -1
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatus.md +5 -5
- tccli/examples/wedata/v20210820/DescribeIntegrationStatisticsTaskStatusTrend.md +8 -10
- tccli/examples/wedata/v20210820/DescribeMonitorsByPage.md +7 -7
- tccli/examples/wedata/v20210820/DescribeOfflineTaskToken.md +3 -3
- tccli/examples/wedata/v20210820/DescribeProdTasks.md +6 -5
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskInstanceNodeInfo.md +9 -9
- tccli/examples/wedata/v20210820/DescribeRealTimeTaskSpeed.md +32 -26
- tccli/examples/wedata/v20210820/DescribeRule.md +118 -23
- tccli/examples/wedata/v20210820/DescribeRuleDataSources.md +11 -8
- tccli/examples/wedata/v20210820/DescribeRuleDimStat.md +3 -3
- tccli/examples/wedata/v20210820/DescribeRuleExecDetail.md +48 -41
- tccli/examples/wedata/v20210820/DescribeRuleExecExportResult.md +15 -10
- tccli/examples/wedata/v20210820/DescribeRuleExecLog.md +2 -2
- tccli/examples/wedata/v20210820/DescribeRuleExecResults.md +72 -4
- tccli/examples/wedata/v20210820/DescribeRuleExecResultsByPage.md +38 -33
- tccli/examples/wedata/v20210820/DescribeRuleExecStat.md +14 -14
- tccli/examples/wedata/v20210820/DescribeRuleGroup.md +50 -23
- tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPage.md +87 -14
- tccli/examples/wedata/v20210820/DescribeRuleGroupExecResultsByPageWithoutAuth.md +81 -12
- tccli/examples/wedata/v20210820/DescribeRuleGroupSubscription.md +12 -6
- tccli/examples/wedata/v20210820/DescribeRuleGroupTable.md +35 -27
- tccli/examples/wedata/v20210820/DescribeRuleGroupsByPage.md +51 -21
- tccli/examples/wedata/v20210820/DescribeRuleHistoryByPage.md +9 -9
- tccli/examples/wedata/v20210820/DescribeRuleTablesByPage.md +52 -35
- tccli/examples/wedata/v20210820/DescribeRuleTemplate.md +33 -16
- tccli/examples/wedata/v20210820/DescribeRuleTemplates.md +8 -8
- tccli/examples/wedata/v20210820/DescribeRuleTemplatesByPage.md +13 -13
- tccli/examples/wedata/v20210820/DescribeRulesByPage.md +123 -28
- tccli/examples/wedata/v20210820/DescribeStandardRuleDetailInfoList.md +3 -3
- tccli/examples/wedata/v20210820/DescribeTableInfoList.md +9 -2
- tccli/examples/wedata/v20210820/DescribeTaskInstance.md +35 -35
- tccli/examples/wedata/v20210820/DescribeTaskInstanceReportDetail.md +28 -26
- tccli/examples/wedata/v20210820/DescribeTaskLockStatus.md +7 -7
- tccli/examples/wedata/v20210820/DescribeTaskReport.md +6 -6
- tccli/examples/wedata/v20210820/DescribeTaskReportDetailList.md +17 -17
- tccli/examples/wedata/v20210820/DescribeTopTableStat.md +9 -9
- tccli/examples/wedata/v20210820/DescribeTrendStat.md +2 -2
- tccli/examples/wedata/v20210820/DryRunDIOfflineTask.md +10 -9
- tccli/examples/wedata/v20210820/GetIntegrationNodeColumnSchema.md +13 -11
- tccli/examples/wedata/v20210820/GetOfflineDIInstanceList.md +26 -26
- tccli/examples/wedata/v20210820/LockIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/ModifyIntegrationNode.md +42 -41
- tccli/examples/wedata/v20210820/ModifyIntegrationTask.md +110 -58
- tccli/examples/wedata/v20210820/ModifyMonitorStatus.md +4 -4
- tccli/examples/wedata/v20210820/ModifyRule.md +24 -24
- tccli/examples/wedata/v20210820/ModifyRuleGroupSubscription.md +11 -13
- tccli/examples/wedata/v20210820/ModifyTaskAlarmRegular.md +45 -16
- tccli/examples/wedata/v20210820/ModifyTaskInfo.md +79 -29
- tccli/examples/wedata/v20210820/ModifyTaskName.md +5 -5
- tccli/examples/wedata/v20210820/RestartInLongAgent.md +3 -3
- tccli/examples/wedata/v20210820/RobAndLockIntegrationTask.md +7 -7
- tccli/examples/wedata/v20210820/StopIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/TaskLog.md +5 -15
- tccli/examples/wedata/v20210820/UnlockIntegrationTask.md +4 -4
- tccli/examples/wedata/v20210820/UpdateInLongAgent.md +5 -5
- tccli/services/aiart/aiart_client.py +106 -0
- tccli/services/aiart/v20221229/api.json +174 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/asr/v20190614/api.json +4 -4
- tccli/services/bi/v20220105/api.json +27 -0
- tccli/services/billing/v20180709/api.json +365 -130
- tccli/services/billing/v20180709/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +159 -0
- tccli/services/ccc/v20200210/api.json +442 -0
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/v20170320/api.json +78 -24
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/cdwpg/v20201230/api.json +9 -0
- tccli/services/ckafka/ckafka_client.py +106 -0
- tccli/services/ckafka/v20190819/api.json +211 -32
- tccli/services/ckafka/v20190819/examples.json +19 -3
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cloudstudio/v20230508/api.json +40 -4
- tccli/services/cls/v20201016/api.json +30 -30
- tccli/services/csip/v20221121/api.json +76 -76
- tccli/services/cwp/v20180228/api.json +124 -8
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +255 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +103 -4
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/dsgc/v20190723/api.json +20 -0
- tccli/services/dts/v20211206/api.json +56 -2
- tccli/services/es/v20180416/api.json +127 -24
- tccli/services/ess/v20201111/api.json +143 -31
- tccli/services/ess/v20201111/examples.json +26 -2
- tccli/services/essbasic/v20210526/api.json +134 -13
- tccli/services/essbasic/v20210526/examples.json +25 -1
- tccli/services/faceid/faceid_client.py +136 -30
- tccli/services/faceid/v20180301/api.json +167 -10
- tccli/services/faceid/v20180301/examples.json +17 -1
- tccli/services/iotexplorer/iotexplorer_client.py +1453 -234
- tccli/services/iotexplorer/v20190423/api.json +2179 -117
- tccli/services/iotexplorer/v20190423/examples.json +184 -0
- tccli/services/lcic/v20220817/api.json +62 -4
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/live/v20180801/examples.json +2 -2
- tccli/services/monitor/v20180724/examples.json +111 -3
- tccli/services/mps/v20190612/api.json +53 -27
- tccli/services/ms/v20180408/api.json +14 -14
- tccli/services/oceanus/v20190422/api.json +1 -1
- tccli/services/ocr/ocr_client.py +53 -0
- tccli/services/ocr/v20181119/api.json +276 -0
- tccli/services/ocr/v20181119/examples.json +8 -0
- tccli/services/pts/pts_client.py +212 -0
- tccli/services/pts/v20210728/api.json +96 -0
- tccli/services/pts/v20210728/examples.json +32 -0
- tccli/services/ssl/v20191205/examples.json +9 -3
- tccli/services/tag/v20180813/examples.json +1 -1
- tccli/services/tione/v20211111/api.json +77 -3
- tccli/services/tione/v20211111/examples.json +2 -2
- tccli/services/tms/v20201229/api.json +1 -1
- tccli/services/trtc/v20190722/api.json +1 -1
- tccli/services/tts/v20190823/api.json +10 -1
- tccli/services/vod/v20180717/api.json +6 -6
- tccli/services/wedata/v20210820/api.json +650 -200
- tccli/services/wedata/v20210820/examples.json +154 -148
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/RECORD +220 -181
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1083.1.dist-info → tccli-3.0.1085.1.dist-info}/license_files/LICENSE +0 -0
@@ -69,7 +69,7 @@ def doGetLiveCode(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
-
def
|
72
|
+
def doGetFaceIdRiskInfo(args, parsed_globals):
|
73
73
|
g_param = parse_global_arg(parsed_globals)
|
74
74
|
|
75
75
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -98,11 +98,11 @@ def doGetActionSequence(args, parsed_globals):
|
|
98
98
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
99
99
|
client._sdkVersion += ("_CLI_" + __version__)
|
100
100
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
-
model = models.
|
101
|
+
model = models.GetFaceIdRiskInfoRequest()
|
102
102
|
model.from_json_string(json.dumps(args))
|
103
103
|
start_time = time.time()
|
104
104
|
while True:
|
105
|
-
rsp = client.
|
105
|
+
rsp = client.GetFaceIdRiskInfo(model)
|
106
106
|
result = rsp.to_json_string()
|
107
107
|
try:
|
108
108
|
json_obj = json.loads(result)
|
@@ -329,7 +329,7 @@ def doGetEidResult(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
-
def
|
332
|
+
def doBankCard4EVerification(args, parsed_globals):
|
333
333
|
g_param = parse_global_arg(parsed_globals)
|
334
334
|
|
335
335
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -358,11 +358,11 @@ def doPhoneVerificationCMCC(args, parsed_globals):
|
|
358
358
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
359
359
|
client._sdkVersion += ("_CLI_" + __version__)
|
360
360
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
-
model = models.
|
361
|
+
model = models.BankCard4EVerificationRequest()
|
362
362
|
model.from_json_string(json.dumps(args))
|
363
363
|
start_time = time.time()
|
364
364
|
while True:
|
365
|
-
rsp = client.
|
365
|
+
rsp = client.BankCard4EVerification(model)
|
366
366
|
result = rsp.to_json_string()
|
367
367
|
try:
|
368
368
|
json_obj = json.loads(result)
|
@@ -433,7 +433,7 @@ def doEncryptedPhoneVerification(args, parsed_globals):
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
434
434
|
|
435
435
|
|
436
|
-
def
|
436
|
+
def doGetActionSequence(args, parsed_globals):
|
437
437
|
g_param = parse_global_arg(parsed_globals)
|
438
438
|
|
439
439
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -462,11 +462,11 @@ def doGetFaceIdToken(args, parsed_globals):
|
|
462
462
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
463
463
|
client._sdkVersion += ("_CLI_" + __version__)
|
464
464
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
465
|
-
model = models.
|
465
|
+
model = models.GetActionSequenceRequest()
|
466
466
|
model.from_json_string(json.dumps(args))
|
467
467
|
start_time = time.time()
|
468
468
|
while True:
|
469
|
-
rsp = client.
|
469
|
+
rsp = client.GetActionSequence(model)
|
470
470
|
result = rsp.to_json_string()
|
471
471
|
try:
|
472
472
|
json_obj = json.loads(result)
|
@@ -485,7 +485,7 @@ def doGetFaceIdToken(args, parsed_globals):
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
486
486
|
|
487
487
|
|
488
|
-
def
|
488
|
+
def doGetFaceIdToken(args, parsed_globals):
|
489
489
|
g_param = parse_global_arg(parsed_globals)
|
490
490
|
|
491
491
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -514,11 +514,11 @@ def doCheckPhoneAndName(args, parsed_globals):
|
|
514
514
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
515
515
|
client._sdkVersion += ("_CLI_" + __version__)
|
516
516
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
517
|
-
model = models.
|
517
|
+
model = models.GetFaceIdTokenRequest()
|
518
518
|
model.from_json_string(json.dumps(args))
|
519
519
|
start_time = time.time()
|
520
520
|
while True:
|
521
|
-
rsp = client.
|
521
|
+
rsp = client.GetFaceIdToken(model)
|
522
522
|
result = rsp.to_json_string()
|
523
523
|
try:
|
524
524
|
json_obj = json.loads(result)
|
@@ -537,7 +537,7 @@ def doCheckPhoneAndName(args, parsed_globals):
|
|
537
537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
538
538
|
|
539
539
|
|
540
|
-
def
|
540
|
+
def doCheckPhoneAndName(args, parsed_globals):
|
541
541
|
g_param = parse_global_arg(parsed_globals)
|
542
542
|
|
543
543
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -566,11 +566,11 @@ def doBankCardVerification(args, parsed_globals):
|
|
566
566
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
567
567
|
client._sdkVersion += ("_CLI_" + __version__)
|
568
568
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
569
|
-
model = models.
|
569
|
+
model = models.CheckPhoneAndNameRequest()
|
570
570
|
model.from_json_string(json.dumps(args))
|
571
571
|
start_time = time.time()
|
572
572
|
while True:
|
573
|
-
rsp = client.
|
573
|
+
rsp = client.CheckPhoneAndName(model)
|
574
574
|
result = rsp.to_json_string()
|
575
575
|
try:
|
576
576
|
json_obj = json.loads(result)
|
@@ -589,7 +589,7 @@ def doBankCardVerification(args, parsed_globals):
|
|
589
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
590
590
|
|
591
591
|
|
592
|
-
def
|
592
|
+
def doBankCardVerification(args, parsed_globals):
|
593
593
|
g_param = parse_global_arg(parsed_globals)
|
594
594
|
|
595
595
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -618,11 +618,11 @@ def doImageRecognitionV2(args, parsed_globals):
|
|
618
618
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
619
619
|
client._sdkVersion += ("_CLI_" + __version__)
|
620
620
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
621
|
-
model = models.
|
621
|
+
model = models.BankCardVerificationRequest()
|
622
622
|
model.from_json_string(json.dumps(args))
|
623
623
|
start_time = time.time()
|
624
624
|
while True:
|
625
|
-
rsp = client.
|
625
|
+
rsp = client.BankCardVerification(model)
|
626
626
|
result = rsp.to_json_string()
|
627
627
|
try:
|
628
628
|
json_obj = json.loads(result)
|
@@ -641,7 +641,7 @@ def doImageRecognitionV2(args, parsed_globals):
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
642
|
|
643
643
|
|
644
|
-
def
|
644
|
+
def doImageRecognitionV2(args, parsed_globals):
|
645
645
|
g_param = parse_global_arg(parsed_globals)
|
646
646
|
|
647
647
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -670,11 +670,11 @@ def doLivenessCompare(args, parsed_globals):
|
|
670
670
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
671
671
|
client._sdkVersion += ("_CLI_" + __version__)
|
672
672
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
-
model = models.
|
673
|
+
model = models.ImageRecognitionV2Request()
|
674
674
|
model.from_json_string(json.dumps(args))
|
675
675
|
start_time = time.time()
|
676
676
|
while True:
|
677
|
-
rsp = client.
|
677
|
+
rsp = client.ImageRecognitionV2(model)
|
678
678
|
result = rsp.to_json_string()
|
679
679
|
try:
|
680
680
|
json_obj = json.loads(result)
|
@@ -693,7 +693,7 @@ def doLivenessCompare(args, parsed_globals):
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
694
|
|
695
695
|
|
696
|
-
def
|
696
|
+
def doLivenessCompare(args, parsed_globals):
|
697
697
|
g_param = parse_global_arg(parsed_globals)
|
698
698
|
|
699
699
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -722,11 +722,11 @@ def doDetectAuth(args, parsed_globals):
|
|
722
722
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
723
723
|
client._sdkVersion += ("_CLI_" + __version__)
|
724
724
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
725
|
-
model = models.
|
725
|
+
model = models.LivenessCompareRequest()
|
726
726
|
model.from_json_string(json.dumps(args))
|
727
727
|
start_time = time.time()
|
728
728
|
while True:
|
729
|
-
rsp = client.
|
729
|
+
rsp = client.LivenessCompare(model)
|
730
730
|
result = rsp.to_json_string()
|
731
731
|
try:
|
732
732
|
json_obj = json.loads(result)
|
@@ -745,7 +745,7 @@ def doDetectAuth(args, parsed_globals):
|
|
745
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
746
746
|
|
747
747
|
|
748
|
-
def
|
748
|
+
def doDetectAuth(args, parsed_globals):
|
749
749
|
g_param = parse_global_arg(parsed_globals)
|
750
750
|
|
751
751
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -774,11 +774,11 @@ def doBankCard4EVerification(args, parsed_globals):
|
|
774
774
|
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
775
775
|
client._sdkVersion += ("_CLI_" + __version__)
|
776
776
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
777
|
-
model = models.
|
777
|
+
model = models.DetectAuthRequest()
|
778
778
|
model.from_json_string(json.dumps(args))
|
779
779
|
start_time = time.time()
|
780
780
|
while True:
|
781
|
-
rsp = client.
|
781
|
+
rsp = client.DetectAuth(model)
|
782
782
|
result = rsp.to_json_string()
|
783
783
|
try:
|
784
784
|
json_obj = json.loads(result)
|
@@ -1161,6 +1161,58 @@ def doGetDetectInfo(args, parsed_globals):
|
|
1161
1161
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1162
1162
|
|
1163
1163
|
|
1164
|
+
def doPhoneVerificationCMCC(args, parsed_globals):
|
1165
|
+
g_param = parse_global_arg(parsed_globals)
|
1166
|
+
|
1167
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1168
|
+
cred = credential.CVMRoleCredential()
|
1169
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1170
|
+
cred = credential.STSAssumeRoleCredential(
|
1171
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1172
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1173
|
+
)
|
1174
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
1175
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1176
|
+
else:
|
1177
|
+
cred = credential.Credential(
|
1178
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1179
|
+
)
|
1180
|
+
http_profile = HttpProfile(
|
1181
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1182
|
+
reqMethod="POST",
|
1183
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1184
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1185
|
+
)
|
1186
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1187
|
+
if g_param[OptionsDefine.Language]:
|
1188
|
+
profile.language = g_param[OptionsDefine.Language]
|
1189
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1190
|
+
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
1191
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1192
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1193
|
+
model = models.PhoneVerificationCMCCRequest()
|
1194
|
+
model.from_json_string(json.dumps(args))
|
1195
|
+
start_time = time.time()
|
1196
|
+
while True:
|
1197
|
+
rsp = client.PhoneVerificationCMCC(model)
|
1198
|
+
result = rsp.to_json_string()
|
1199
|
+
try:
|
1200
|
+
json_obj = json.loads(result)
|
1201
|
+
except TypeError as e:
|
1202
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1203
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1204
|
+
break
|
1205
|
+
cur_time = time.time()
|
1206
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1207
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1208
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1209
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1210
|
+
else:
|
1211
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1212
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1213
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
|
+
|
1215
|
+
|
1164
1216
|
def doMinorsVerification(args, parsed_globals):
|
1165
1217
|
g_param = parse_global_arg(parsed_globals)
|
1166
1218
|
|
@@ -1213,6 +1265,58 @@ def doMinorsVerification(args, parsed_globals):
|
|
1213
1265
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1214
1266
|
|
1215
1267
|
|
1268
|
+
def doGetFaceidRiskInfoToken(args, parsed_globals):
|
1269
|
+
g_param = parse_global_arg(parsed_globals)
|
1270
|
+
|
1271
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1272
|
+
cred = credential.CVMRoleCredential()
|
1273
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1274
|
+
cred = credential.STSAssumeRoleCredential(
|
1275
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1276
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1277
|
+
)
|
1278
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
1279
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1280
|
+
else:
|
1281
|
+
cred = credential.Credential(
|
1282
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1283
|
+
)
|
1284
|
+
http_profile = HttpProfile(
|
1285
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1286
|
+
reqMethod="POST",
|
1287
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1288
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1289
|
+
)
|
1290
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1291
|
+
if g_param[OptionsDefine.Language]:
|
1292
|
+
profile.language = g_param[OptionsDefine.Language]
|
1293
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1294
|
+
client = mod.FaceidClient(cred, g_param[OptionsDefine.Region], profile)
|
1295
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1296
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1297
|
+
model = models.GetFaceidRiskInfoTokenRequest()
|
1298
|
+
model.from_json_string(json.dumps(args))
|
1299
|
+
start_time = time.time()
|
1300
|
+
while True:
|
1301
|
+
rsp = client.GetFaceidRiskInfoToken(model)
|
1302
|
+
result = rsp.to_json_string()
|
1303
|
+
try:
|
1304
|
+
json_obj = json.loads(result)
|
1305
|
+
except TypeError as e:
|
1306
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1307
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1308
|
+
break
|
1309
|
+
cur_time = time.time()
|
1310
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1311
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1312
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1313
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1314
|
+
else:
|
1315
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1316
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1317
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1318
|
+
|
1319
|
+
|
1216
1320
|
def doLiveness(args, parsed_globals):
|
1217
1321
|
g_param = parse_global_arg(parsed_globals)
|
1218
1322
|
|
@@ -1849,20 +1953,20 @@ MODELS_MAP = {
|
|
1849
1953
|
|
1850
1954
|
ACTION_MAP = {
|
1851
1955
|
"GetLiveCode": doGetLiveCode,
|
1852
|
-
"
|
1956
|
+
"GetFaceIdRiskInfo": doGetFaceIdRiskInfo,
|
1853
1957
|
"GetWeChatBillDetails": doGetWeChatBillDetails,
|
1854
1958
|
"CheckIdCardInformation": doCheckIdCardInformation,
|
1855
1959
|
"CheckEidTokenStatus": doCheckEidTokenStatus,
|
1856
1960
|
"GetEidResult": doGetEidResult,
|
1857
|
-
"
|
1961
|
+
"BankCard4EVerification": doBankCard4EVerification,
|
1858
1962
|
"EncryptedPhoneVerification": doEncryptedPhoneVerification,
|
1963
|
+
"GetActionSequence": doGetActionSequence,
|
1859
1964
|
"GetFaceIdToken": doGetFaceIdToken,
|
1860
1965
|
"CheckPhoneAndName": doCheckPhoneAndName,
|
1861
1966
|
"BankCardVerification": doBankCardVerification,
|
1862
1967
|
"ImageRecognitionV2": doImageRecognitionV2,
|
1863
1968
|
"LivenessCompare": doLivenessCompare,
|
1864
1969
|
"DetectAuth": doDetectAuth,
|
1865
|
-
"BankCard4EVerification": doBankCard4EVerification,
|
1866
1970
|
"IdCardOCRVerification": doIdCardOCRVerification,
|
1867
1971
|
"GetFaceIdResult": doGetFaceIdResult,
|
1868
1972
|
"ImageRecognition": doImageRecognition,
|
@@ -1870,7 +1974,9 @@ ACTION_MAP = {
|
|
1870
1974
|
"DetectAIFakeFaces": doDetectAIFakeFaces,
|
1871
1975
|
"PhoneVerification": doPhoneVerification,
|
1872
1976
|
"GetDetectInfo": doGetDetectInfo,
|
1977
|
+
"PhoneVerificationCMCC": doPhoneVerificationCMCC,
|
1873
1978
|
"MinorsVerification": doMinorsVerification,
|
1979
|
+
"GetFaceidRiskInfoToken": doGetFaceidRiskInfoToken,
|
1874
1980
|
"Liveness": doLiveness,
|
1875
1981
|
"PhoneVerificationCUCC": doPhoneVerificationCUCC,
|
1876
1982
|
"LivenessRecognition": doLivenessRecognition,
|
@@ -119,6 +119,13 @@
|
|
119
119
|
"output": "GetFaceIdResultResponse",
|
120
120
|
"status": "online"
|
121
121
|
},
|
122
|
+
"GetFaceIdRiskInfo": {
|
123
|
+
"document": "完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\\*24\\*3,600秒)可多次拉取。",
|
124
|
+
"input": "GetFaceIdRiskInfoRequest",
|
125
|
+
"name": "获取SDK设备风险信息",
|
126
|
+
"output": "GetFaceIdRiskInfoResponse",
|
127
|
+
"status": "online"
|
128
|
+
},
|
122
129
|
"GetFaceIdToken": {
|
123
130
|
"document": "每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。",
|
124
131
|
"input": "GetFaceIdTokenRequest",
|
@@ -126,6 +133,13 @@
|
|
126
133
|
"output": "GetFaceIdTokenResponse",
|
127
134
|
"status": "online"
|
128
135
|
},
|
136
|
+
"GetFaceidRiskInfoToken": {
|
137
|
+
"document": "每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。",
|
138
|
+
"input": "GetFaceidRiskInfoTokenRequest",
|
139
|
+
"name": "获取风险信息Token",
|
140
|
+
"output": "GetFaceidRiskInfoTokenResponse",
|
141
|
+
"status": "online"
|
142
|
+
},
|
129
143
|
"GetLiveCode": {
|
130
144
|
"document": "使用数字活体检测模式前,需调用本接口获取数字验证码。",
|
131
145
|
"input": "GetLiveCodeRequest",
|
@@ -2678,7 +2692,7 @@
|
|
2678
2692
|
"example": "23232323232",
|
2679
2693
|
"member": "string",
|
2680
2694
|
"name": "IdCard",
|
2681
|
-
"
|
2695
|
+
"output_required": true,
|
2682
2696
|
"type": "string",
|
2683
2697
|
"value_allowed_null": false
|
2684
2698
|
},
|
@@ -2688,7 +2702,7 @@
|
|
2688
2702
|
"example": "王五",
|
2689
2703
|
"member": "string",
|
2690
2704
|
"name": "Name",
|
2691
|
-
"
|
2705
|
+
"output_required": true,
|
2692
2706
|
"type": "string",
|
2693
2707
|
"value_allowed_null": false
|
2694
2708
|
},
|
@@ -2698,7 +2712,7 @@
|
|
2698
2712
|
"example": "0",
|
2699
2713
|
"member": "string",
|
2700
2714
|
"name": "Result",
|
2701
|
-
"
|
2715
|
+
"output_required": true,
|
2702
2716
|
"type": "string",
|
2703
2717
|
"value_allowed_null": false
|
2704
2718
|
},
|
@@ -2708,7 +2722,7 @@
|
|
2708
2722
|
"example": "成功",
|
2709
2723
|
"member": "string",
|
2710
2724
|
"name": "Description",
|
2711
|
-
"
|
2725
|
+
"output_required": true,
|
2712
2726
|
"type": "string",
|
2713
2727
|
"value_allowed_null": false
|
2714
2728
|
},
|
@@ -2718,7 +2732,7 @@
|
|
2718
2732
|
"example": "97.7",
|
2719
2733
|
"member": "float",
|
2720
2734
|
"name": "Similarity",
|
2721
|
-
"
|
2735
|
+
"output_required": true,
|
2722
2736
|
"type": "float",
|
2723
2737
|
"value_allowed_null": false
|
2724
2738
|
},
|
@@ -2728,7 +2742,7 @@
|
|
2728
2742
|
"example": "xx",
|
2729
2743
|
"member": "string",
|
2730
2744
|
"name": "VideoBase64",
|
2731
|
-
"
|
2745
|
+
"output_required": true,
|
2732
2746
|
"type": "string",
|
2733
2747
|
"value_allowed_null": true
|
2734
2748
|
},
|
@@ -2738,7 +2752,7 @@
|
|
2738
2752
|
"example": "xx",
|
2739
2753
|
"member": "string",
|
2740
2754
|
"name": "BestFrameBase64",
|
2741
|
-
"
|
2755
|
+
"output_required": true,
|
2742
2756
|
"type": "string",
|
2743
2757
|
"value_allowed_null": true
|
2744
2758
|
},
|
@@ -2748,17 +2762,17 @@
|
|
2748
2762
|
"example": "xx",
|
2749
2763
|
"member": "string",
|
2750
2764
|
"name": "Extra",
|
2751
|
-
"
|
2765
|
+
"output_required": true,
|
2752
2766
|
"type": "string",
|
2753
2767
|
"value_allowed_null": true
|
2754
2768
|
},
|
2755
2769
|
{
|
2756
2770
|
"disabled": false,
|
2757
2771
|
"document": "设备风险标签,仅错误码返回1007(设备疑似被劫持)时返回风险标签。标签说明:\n202、5001:设备疑似被Root\n203、5004:设备疑似被注入\n205:设备疑似被Hook\n206:设备疑似虚拟运行环境\n5007、1005:设备疑似摄像头被劫持\n8000:设备疑似存在异常篡改行为\n注意:此字段可能返回 null,表示取不到有效值。",
|
2758
|
-
"example": "
|
2772
|
+
"example": "01",
|
2759
2773
|
"member": "string",
|
2760
2774
|
"name": "DeviceInfoTag",
|
2761
|
-
"
|
2775
|
+
"output_required": true,
|
2762
2776
|
"type": "string",
|
2763
2777
|
"value_allowed_null": true
|
2764
2778
|
},
|
@@ -2768,7 +2782,94 @@
|
|
2768
2782
|
"example": "02",
|
2769
2783
|
"member": "string",
|
2770
2784
|
"name": "RiskInfoTag",
|
2785
|
+
"output_required": true,
|
2786
|
+
"type": "string",
|
2787
|
+
"value_allowed_null": true
|
2788
|
+
},
|
2789
|
+
{
|
2790
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2791
|
+
"member": "string",
|
2792
|
+
"name": "RequestId",
|
2793
|
+
"type": "string"
|
2794
|
+
}
|
2795
|
+
],
|
2796
|
+
"type": "object"
|
2797
|
+
},
|
2798
|
+
"GetFaceIdRiskInfoRequest": {
|
2799
|
+
"document": "GetFaceIdRiskInfo请求参数结构体",
|
2800
|
+
"members": [
|
2801
|
+
{
|
2802
|
+
"disabled": false,
|
2803
|
+
"document": "SDK人脸核身流程的标识,调用GetFaceidRiskInfoToken接口时生成。",
|
2804
|
+
"example": "CE661F1A-0F1E-45BD-BE13-34C05CEA7681",
|
2805
|
+
"member": "string",
|
2806
|
+
"name": "FaceIdToken",
|
2771
2807
|
"required": true,
|
2808
|
+
"type": "string"
|
2809
|
+
}
|
2810
|
+
],
|
2811
|
+
"type": "object"
|
2812
|
+
},
|
2813
|
+
"GetFaceIdRiskInfoResponse": {
|
2814
|
+
"document": "GetFaceIdRiskInfo返回参数结构体",
|
2815
|
+
"members": [
|
2816
|
+
{
|
2817
|
+
"disabled": false,
|
2818
|
+
"document": "描述当前请求所在设备的风险标签,详情如下: 01-设备疑似被Root/设备疑似越狱 02-设备疑似被注入 03-设备疑似为模拟器 04-设备疑似存在风险操作 05-摄像头疑似被劫持 06-疑似黑产设备\n注意:此字段可能返回 null,表示取不到有效值。",
|
2819
|
+
"example": "01_03",
|
2820
|
+
"member": "string",
|
2821
|
+
"name": "DeviceInfoTag",
|
2822
|
+
"output_required": true,
|
2823
|
+
"type": "string",
|
2824
|
+
"value_allowed_null": true
|
2825
|
+
},
|
2826
|
+
{
|
2827
|
+
"disabled": false,
|
2828
|
+
"document": "描述当前请求所在设备的风险等级,共4级,详情如下: 1 - 低风险 2 - 中风险 3 - 高风险 4 - 攻击 ,-1表示未获取到风险等级\n注意:此字段可能返回 null,表示取不到有效值。",
|
2829
|
+
"example": "1",
|
2830
|
+
"member": "int64",
|
2831
|
+
"name": "DeviceInfoLevel",
|
2832
|
+
"output_required": true,
|
2833
|
+
"type": "int",
|
2834
|
+
"value_allowed_null": true
|
2835
|
+
},
|
2836
|
+
{
|
2837
|
+
"disabled": false,
|
2838
|
+
"document": "设备id标识\n注意:此字段可能返回 null,表示取不到有效值。",
|
2839
|
+
"example": "无",
|
2840
|
+
"member": "string",
|
2841
|
+
"name": "OpenId",
|
2842
|
+
"output_required": true,
|
2843
|
+
"type": "string",
|
2844
|
+
"value_allowed_null": true
|
2845
|
+
},
|
2846
|
+
{
|
2847
|
+
"disabled": false,
|
2848
|
+
"document": "描述当前请求所在设备的相机指纹风险等级,共4级,详情如下: 1 - 低风险 2 - 中风险 3 - 高风险 4 - 攻击 ,-1表示未获取到风险等级\n注意:此字段可能返回 null,表示取不到有效值。",
|
2849
|
+
"example": "1",
|
2850
|
+
"member": "int64",
|
2851
|
+
"name": "CameraInfoLevel",
|
2852
|
+
"output_required": true,
|
2853
|
+
"type": "int",
|
2854
|
+
"value_allowed_null": true
|
2855
|
+
},
|
2856
|
+
{
|
2857
|
+
"disabled": false,
|
2858
|
+
"document": "描述当前请求所在设备的相机指纹风险标签,详情如下: 01-设备疑似被Root/设备疑似越狱 02-设备疑似被注入 03-设备疑似为模拟器 04-设备疑似存在风险操作 05-摄像头疑似被劫持 06-疑似黑产设备,空表示没有相机指纹风险\n注意:此字段可能返回 null,表示取不到有效值。",
|
2859
|
+
"example": "01_03",
|
2860
|
+
"member": "string",
|
2861
|
+
"name": "CameraInfoTag",
|
2862
|
+
"output_required": true,
|
2863
|
+
"type": "string",
|
2864
|
+
"value_allowed_null": true
|
2865
|
+
},
|
2866
|
+
{
|
2867
|
+
"disabled": false,
|
2868
|
+
"document": "获取token时透传的信息\t\n注意:此字段可能返回 null,表示取不到有效值。",
|
2869
|
+
"example": "无",
|
2870
|
+
"member": "string",
|
2871
|
+
"name": "Extra",
|
2872
|
+
"output_required": true,
|
2772
2873
|
"type": "string",
|
2773
2874
|
"value_allowed_null": true
|
2774
2875
|
},
|
@@ -2855,6 +2956,15 @@
|
|
2855
2956
|
"name": "Encryption",
|
2856
2957
|
"required": false,
|
2857
2958
|
"type": "object"
|
2959
|
+
},
|
2960
|
+
{
|
2961
|
+
"disabled": false,
|
2962
|
+
"document": "用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加腾讯云人脸核身小助手进行咨询。\n示例值:1",
|
2963
|
+
"example": "1",
|
2964
|
+
"member": "string",
|
2965
|
+
"name": "RuleId",
|
2966
|
+
"required": false,
|
2967
|
+
"type": "string"
|
2858
2968
|
}
|
2859
2969
|
],
|
2860
2970
|
"type": "object"
|
@@ -2868,6 +2978,53 @@
|
|
2868
2978
|
"example": "asdasdadasdasd",
|
2869
2979
|
"member": "string",
|
2870
2980
|
"name": "FaceIdToken",
|
2981
|
+
"output_required": true,
|
2982
|
+
"type": "string",
|
2983
|
+
"value_allowed_null": false
|
2984
|
+
},
|
2985
|
+
{
|
2986
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2987
|
+
"member": "string",
|
2988
|
+
"name": "RequestId",
|
2989
|
+
"type": "string"
|
2990
|
+
}
|
2991
|
+
],
|
2992
|
+
"type": "object"
|
2993
|
+
},
|
2994
|
+
"GetFaceidRiskInfoTokenRequest": {
|
2995
|
+
"document": "GetFaceidRiskInfoToken请求参数结构体",
|
2996
|
+
"members": [
|
2997
|
+
{
|
2998
|
+
"disabled": false,
|
2999
|
+
"document": "SDK中生成的Meta字符串",
|
3000
|
+
"example": "1",
|
3001
|
+
"member": "string",
|
3002
|
+
"name": "Meta",
|
3003
|
+
"required": false,
|
3004
|
+
"type": "string"
|
3005
|
+
},
|
3006
|
+
{
|
3007
|
+
"disabled": false,
|
3008
|
+
"document": "透传参数 1000长度字符串",
|
3009
|
+
"example": "1",
|
3010
|
+
"member": "string",
|
3011
|
+
"name": "Extra",
|
3012
|
+
"required": false,
|
3013
|
+
"type": "string"
|
3014
|
+
}
|
3015
|
+
],
|
3016
|
+
"type": "object"
|
3017
|
+
},
|
3018
|
+
"GetFaceidRiskInfoTokenResponse": {
|
3019
|
+
"document": "GetFaceidRiskInfoToken返回参数结构体",
|
3020
|
+
"members": [
|
3021
|
+
{
|
3022
|
+
"disabled": false,
|
3023
|
+
"document": "有效期 10分钟。只能完成1次核身。",
|
3024
|
+
"example": "9C6677E5-053C-425C-B5C3-D378427DFE28",
|
3025
|
+
"member": "string",
|
3026
|
+
"name": "FaceIdToken",
|
3027
|
+
"output_required": true,
|
2871
3028
|
"type": "string",
|
2872
3029
|
"value_allowed_null": false
|
2873
3030
|
},
|
@@ -162,10 +162,18 @@
|
|
162
162
|
{
|
163
163
|
"document": "",
|
164
164
|
"input": "https://faceid.tencentcloudapi.com/?Action=GetFaceIdResult\n&FaceIdToken=CE661F1A-0F1E-45BD-BE13-34C05CEA7681\n&<公共请求参数>",
|
165
|
-
"output": "{\n \"Response\": {\n \"Result\": \"0\",\n \"Description\": \"成功\",\n \"IdCard\": \"23232323232\",\n \"Name\": \"王五\",\n \"Similarity\": 97.7,\n \"RequestId\": \"0f96cf39-a183-485c-ab29-8427ab81f9ae\",\n \"Extra\": \"
|
165
|
+
"output": "{\n \"Response\": {\n \"Result\": \"0\",\n \"Description\": \"成功\",\n \"IdCard\": \"23232323232\",\n \"Name\": \"王五\",\n \"Similarity\": 97.7,\n \"RequestId\": \"0f96cf39-a183-485c-ab29-8427ab81f9ae\",\n \"Extra\": \"\",\n \"VideoBase64\": \"\",\n \"BestFrameBase64\": \"\",\n \"DeviceInfoTag\": \"01\",\n \"RiskInfoTag\": \"02\"\n }\n}",
|
166
166
|
"title": "获取结果成功时"
|
167
167
|
}
|
168
168
|
],
|
169
|
+
"GetFaceIdRiskInfo": [
|
170
|
+
{
|
171
|
+
"document": "获取结果成功",
|
172
|
+
"input": "POST / HTTP/1.1\nHost: faceid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetFaceIdRiskInfo\n<公共请求参数>\n\n{\n \"FaceIdToken\": \"CE661F1A-0F1E-45BD-BE13-34C05CEA7681\"\n}",
|
173
|
+
"output": "{\n \"Response\": {\n \"CameraInfoLevel\": null,\n \"CameraInfoTag\": null,\n \"DeviceInfoLevel\": 1,\n \"DeviceInfoTag\": null,\n \"Extra\": null,\n \"OpenId\": \"9B0104204DAB86054F6C9E38\",\n \"RequestId\": \"dbabb231-4adc-4e88-b763-b3dfd9476923\"\n }\n}",
|
174
|
+
"title": "获取结果成功"
|
175
|
+
}
|
176
|
+
],
|
169
177
|
"GetFaceIdToken": [
|
170
178
|
{
|
171
179
|
"document": "获取 SDK 核验 token",
|
@@ -174,6 +182,14 @@
|
|
174
182
|
"title": "获取token成功"
|
175
183
|
}
|
176
184
|
],
|
185
|
+
"GetFaceidRiskInfoToken": [
|
186
|
+
{
|
187
|
+
"document": "获取 SDK 核验 token",
|
188
|
+
"input": "POST / HTTP/1.1\nHost: faceid.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetFaceidRiskInfoToken\n<公共请求参数>\n\n{\n \"Meta\": \"\",\n \"Extra\": \"\"\n}",
|
189
|
+
"output": "{\n \"Response\": {\n \"FaceIdToken\": \"224C8901-0D1B-4350-914A-CFD74E54D940\",\n \"RequestId\": \"63013220-4d82-4e2f-b508-a34286baac26\"\n }\n}",
|
190
|
+
"title": "获取 SDK 核验 token"
|
191
|
+
}
|
192
|
+
],
|
177
193
|
"GetLiveCode": [
|
178
194
|
{
|
179
195
|
"document": "",
|