summaryrefslogtreecommitdiff
path: root/data/zh_cn/cloudauth-intl
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/zh_cn/cloudauth-intl
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/zh_cn/cloudauth-intl')
-rw-r--r--data/zh_cn/cloudauth-intl/2022-08-09/api-docs.php10096
1 files changed, 5115 insertions, 4981 deletions
diff --git a/data/zh_cn/cloudauth-intl/2022-08-09/api-docs.php b/data/zh_cn/cloudauth-intl/2022-08-09/api-docs.php
index 20e30d4..d4283e0 100644
--- a/data/zh_cn/cloudauth-intl/2022-08-09/api-docs.php
+++ b/data/zh_cn/cloudauth-intl/2022-08-09/api-docs.php
@@ -1,769 +1,732 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'Cloudauth-intl',
- 'version' => '2022-08-09',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'Cloudauth-intl', 'version' => '2022-08-09'],
'directories' => [
[
- 'id' => 349786,
- 'title' => '通用',
+ 'children' => ['Id2MetaVerifyIntl', 'Id2MetaPeriodVerifyIntl', 'BankMetaVerifyIntl', 'Mobile2MetaVerifyIntl', 'Mobile3MetaVerifyIntl'],
'type' => 'directory',
- 'children' => [
- 'Initialize',
- 'CheckResult',
- ],
- ],
- [
- 'id' => 182315,
- 'title' => '实人认证',
- 'type' => 'directory',
- 'children' => [
- 'EkycVerify',
- ],
- ],
- [
- 'id' => 349787,
- 'title' => '人脸检测',
- 'type' => 'directory',
- 'children' => [
- 'FaceLiveness',
- 'FaceDuplicationCheckIntl',
- 'DeepfakeDetectIntlStream',
- 'DeepfakeDetectIntl',
- 'FaceGuardRisk',
- 'FaceCompare',
- 'FaceCrossCompareIntl',
- ],
+ 'title' => '信息核验',
+ 'id' => 437041,
],
[
- 'id' => 207369,
- 'title' => '证件识别',
+ 'children' => ['CredentialRecognitionIntl', 'CredentialSubmitIntl', 'CredentialGetResultIntl', 'CredentialVerifyIntl'],
'type' => 'directory',
- 'children' => [
- 'DocOcrMax',
- 'DocOcr',
- ],
+ 'title' => '凭证检测',
+ 'id' => 437042,
],
[
- 'id' => 207370,
- 'title' => '信息核验',
+ 'children' => ['AddressVerifyV2Intl', 'AddressCompareIntl'],
'type' => 'directory',
- 'children' => [
- 'Id2MetaVerifyIntl',
- 'Id2MetaPeriodVerifyIntl',
- 'BankMetaVerifyIntl',
- 'Mobile2MetaVerifyIntl',
- 'Mobile3MetaVerifyIntl',
- ],
+ 'title' => '地址核验',
+ 'id' => 437043,
],
[
- 'id' => 207371,
- 'title' => '凭证检测',
+ 'children' => ['KeepaliveIntl', 'DeleteVerifyResult', 'CheckVerifyLog'],
'type' => 'directory',
- 'children' => [
- 'CredentialRecognitionIntl',
- 'CredentialSubmitIntl',
- 'CredentialGetResultIntl',
- 'CredentialVerifyIntl',
- ],
+ 'title' => '辅助接口',
+ 'id' => 437044,
],
[
- 'id' => 236783,
- 'title' => '地址核验',
+ 'children' => ['AddFaceRecord', 'DownloadVerifyRecordIntl', 'QueryFaceGroup', 'ModifyFaceGroup', 'DeleteFaceGroup', 'QueryFaceRecord', 'ModifyFaceRecord', 'DeleteFaceRecord', 'TempOssUrlIntl', 'TempAccessTokenIntl'],
'type' => 'directory',
- 'children' => [
- 'AddressVerifyV2Intl',
- 'AddressCompareIntl',
- ],
+ 'title' => '控制台',
+ 'id' => 437045,
],
[
- 'id' => 187491,
- 'title' => '辅助接口',
+ 'children' => ['CardOcr', 'FraudResultCallBack', 'AddressVerifyIntl'],
'type' => 'directory',
- 'children' => [
- 'KeepaliveIntl',
- 'DeleteVerifyResult',
- 'CheckVerifyLog',
- ],
+ 'title' => '已废弃',
+ 'id' => 437046,
],
[
- 'id' => 280922,
- 'title' => '控制台',
- 'type' => 'directory',
'children' => [
- 'AddFaceRecord',
- 'DownloadVerifyRecordIntl',
- 'QueryFaceGroup',
- 'ModifyFaceGroup',
- 'DeleteFaceGroup',
- 'QueryFaceRecord',
- 'ModifyFaceRecord',
- 'DeleteFaceRecord',
- 'TempOssUrlIntl',
- 'TempAccessTokenIntl',
+ 'DocOcrV2', 'CheckResult', 'DeepfakeDetectIntl', 'DeepfakeDetectIntlStream', 'DeleteFaceRecordV2', 'DocOcr', 'DocOcrMax', 'DocOcrMaxV2', 'EkycVerify', 'EkycVerifyV2', 'FaceCompare', 'FaceCompareV2', 'FaceCrossCompareIntl', 'FaceDuplicationCheckIntl', 'FaceGuardRisk', 'FaceLiveness', 'FaceLivenessV2', 'FaceVerifyIntl', 'IdnAuthorityVerifyIntl', 'Initialize',
+ 'InitializeV2',
],
- ],
- [
- 'id' => 349794,
- 'title' => '已废弃',
'type' => 'directory',
- 'children' => [
- 'CardOcr',
- 'FraudResultCallBack',
- 'AddressVerifyIntl',
- ],
+ 'title' => '其他',
+ 'id' => 437047,
],
],
'components' => [
'schemas' => [],
],
'apis' => [
- 'Initialize' => [
- 'summary' => '初始化。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'AddFaceRecord' => [
+ 'summary' => '添加人脸图片到指定人脸库',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '149600',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthCW0JNH',
- 'FEATUREcloudauth6RJHVQ',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
- 'name' => 'ProductCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '要接入的产品方案'."\n"
- .'>具体详见官方文档 :https://www.alibabacloud.com/help/zh/ekyc/latest/product-introduction?spm=a2c63.p38356.0.i1',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'eKYC',
- ],
+ 'name' => 'FaceGroupCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人脸库编码。', 'type' => 'string', 'required' => true, 'example' => 'sgl****7uc'],
],
[
- 'name' => 'MerchantBizId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e0c34a***353888',
- ],
+ 'name' => 'ProductCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => '产品code。', 'type' => 'string', 'required' => true, 'example' => 'FACE_ENROLL'],
],
[
- 'name' => 'MetaInfo',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'Metainfo环境参数,需要通过客户端SDK获取。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"bioMetaInfo\\":\\"4.1.0:2916352,0\\",\\"deviceType\\":\\"web\\",\\"ua\\":\\"Mozilla/5.0 (Macintosh',
- ],
+ 'name' => 'MerchantUserId',
+ 'in' => 'formData',
+ 'schema' => ['description' => '自定义的用户唯一ID,不能超过32位。'."\n"
+ .'- 若客户传入优先以该MerchantUserId注册;'."\n"
+ .'- 若未传入默认选图片名', 'type' => 'string', 'required' => false, 'example' => '130A2C10B9EE4D8488E35384FF03hst'],
],
[
- 'name' => 'DocType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '证件类型'."\n"
- .'>eKYC_PRO和ID_OCR_MAX方案,详见官方文档 https://www.alibabacloud.com/help/zh/ekyc/latest/certificate-code-table?spm=a2c63.p38356.help-menu-445633.d_2_8_2_0.279147abwKAWbr'."\n"
- ."\n"
- .'>ID_OCR,eKYC和eYKC_MIN方案,相见官方文档 证件类型列表 https://www.alibabacloud.com/help/zh/ekyc/latest/gnhekqy05ni51m4c?spm=a2c63.p38356.help-menu-445633.d_2_3_1_0_0_0.6243244777KoZ7',
- 'type' => 'string',
- 'required' => false,
- 'example' => '00000001'."\n",
- ],
+ 'name' => 'FacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '注册人脸图片base64', 'type' => 'string', 'required' => false, 'example' => 'base64'],
],
[
- 'name' => 'MerchantUserId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1221****6543',
- ],
+ 'name' => 'FacePictureUrl',
+ 'in' => 'formData',
+ 'schema' => ['description' => '注册人脸图片URL', 'type' => 'string', 'required' => false, 'example' => 'https://www.xxxxx.com/test.jpg'],
],
[
- 'name' => 'SceneCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '场景码。(IDV产品入参)',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123****123',
- ],
+ 'name' => 'FacePictureFile',
+ 'in' => 'formData',
+ 'schema' => ['description' => '注册人脸图片文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
],
[
- 'name' => 'Pages',
- 'in' => 'query',
+ 'name' => 'FaceQualityCheck',
+ 'in' => 'formData',
+ 'schema' => ['description' => '是否检测人脸图片质量'."\n"
+ .'- Y:开启'."\n"
+ .'- N:关闭(默认)', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '采集页配置,多页使用,连接。取值范围:'."\n"
- .'- **01**:证件人像面'."\n"
- ."\n"
- .'- **01,02**:证件人像面与背面'."\n"
- ."\n"
- .'> 此值传入01,02时,目前仅支持中国身份证和越南身份证。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '01',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '7A0D192A-CC0C-5DE5-A3B6-A14CF45508F2'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Passed' => ['description' => '认证是否通过'."\n"
+ ."\n"
+ .'- Y:通过'."\n"
+ .'- N:不通过', 'type' => 'string', 'example' => 'Y'],
+ 'ExtFaceInfo' => ['description' => '人脸结果信息', 'type' => 'string', 'example' => '{'."\n"
+ .'"faceQuality": "HIGH"'."\n"
+ .'}'."\n"
+ ."\n"],
+ ],
+ ],
+ ],
],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '添加人脸记录',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7A0D192A-CC0C-5DE5-A3B6-A14CF45508F2\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"ExtFaceInfo\\": \\"{\\\\n\\\\\\"faceQuality\\\\\\": \\\\\\"HIGH\\\\\\"\\\\n}\\\\n\\\\n\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'AddressCompareIntl' => [
+ 'summary' => '地址相似比对',
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'FacePictureBase64',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '照片Base64编码。如果您选择FacePictureBase64方式传入人脸照片,请注意检查照片大小,不要传入过大的照片。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Base64',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREcloudauthNOQ41U'],
+ ],
+ 'parameters' => [
[
- 'name' => 'FacePictureUrl',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '人脸照片地址。公网可访问的HTTP、HTTPS链接',
- 'type' => 'string',
- 'required' => false,
- 'example' => '***',
- ],
+ 'schema' => ['description' => 'ADD_VERIFY', 'type' => 'string', 'required' => true, 'example' => '固定值:ADD_VERIFY'],
],
[
- 'name' => 'Crop',
+ 'name' => 'Text1',
'in' => 'query',
- 'schema' => [
- 'description' => '是否裁剪。(IDV产品入参)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'N',
- ],
+ 'schema' => ['description' => '地址1', 'type' => 'string', 'required' => true, 'example' => '杭州市阿里巴巴西溪园区'],
],
[
- 'name' => 'Ocr',
+ 'name' => 'Text2',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启OCR。(IDV产品入参)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Y',
- ],
+ 'schema' => ['description' => '地址2', 'type' => 'string', 'required' => true, 'example' => '杭州市文一西路969号1号楼'],
],
[
- 'name' => 'IdFaceQuality',
+ 'name' => 'DefaultCountry',
'in' => 'query',
+ 'schema' => ['description' => '国家名称'."\n"
+ .'- 中国', 'type' => 'string', 'required' => true, 'example' => '固定值:中国'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '人脸图片质量。(IDV产品入参)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Y',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'."\n"],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Data' => ['description' => 'sameLevel取值包括:'."\n"
+ .'- all:完全相同'."\n"
+ .'- prov:省级 '."\n"
+ .'- city:市'."\n"
+ .'- district: 区'."\n"
+ .'- town:街道'."\n"
+ .'- road:道路'."\n"
+ .'- roadno:道路编号'."\n"
+ .'- poi:小区'."\n"
+ .'- roomno: 房号', 'type' => 'string', 'example' => '{'."\n"
+ .' sameLevel: "city", '."\n"
+ .' distance: 5997.34m, -- 地址相差距离'."\n"
+ .' same_info: { -- 相同信息'."\n"
+ .' prov: "浙江省",'."\n"
+ .' city: "杭州市",'."\n"
+ .' district: "西湖区"'."\n"
+ .' } '."\n"
+ .'}'],
+ ],
+ ],
+ ],
],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '地址相似比对',
+ 'description' => 'API地址,两个地址,地址标准化比对地址一致性。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\\\n\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Data\\": \\"{\\\\n sameLevel: \\\\\\"city\\\\\\", \\\\n distance: 5997.34m, -- 地址相差距离\\\\n same_info: { -- 相同信息\\\\n prov: \\\\\\"浙江省\\\\\\",\\\\n city: \\\\\\"杭州市\\\\\\",\\\\n district: \\\\\\"西湖区\\\\\\"\\\\n } \\\\n}\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'AddressVerifyIntl' => [
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'IdSpoof',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否启用证书防伪检测。(IDV产品入参)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Y',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREcloudauthZN5W38'],
+ ],
+ 'parameters' => [
[
- 'name' => 'ReturnUrl',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '端侧回调地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'http*****',
- ],
+ 'schema' => ['description' => '固定值:ADD_VERIFY_PRO', 'type' => 'string', 'required' => true, 'example' => 'ADD_VERIFY_PRO'],
],
[
- 'name' => 'Authorize',
+ 'name' => 'VerifyType',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启身份权威核验,目前仅适用于中国大陆二代身份证(IDV产品入参)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Y',
- ],
+ 'schema' => ['description' => '地址核验方式:'."\n"
+ .'- HOME:家庭地址核验'."\n"
+ .'- WORK:工作地址核验', 'type' => 'string', 'required' => true, 'example' => 'HOME'],
],
[
- 'name' => 'DocScanMode',
+ 'name' => 'Mobile',
'in' => 'query',
- 'schema' => [
- 'description' => '证件采集拍照模式。'."\n"
- ."\n"
- .'- manual:手动拍照。'."\n"
- .'- auto:自动拍照(默认)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'manual',
- ],
+ 'schema' => ['description' => '支持中国手机号码。', 'type' => 'string', 'required' => true, 'example' => '1872334****'],
],
[
- 'name' => 'ProductFlow',
+ 'name' => 'DefaultCountry',
'in' => 'query',
- 'schema' => [
- 'description' => '支持卡证和人脸顺序编排:'."\n"
- ."\n"
- .'- DOC_FACE(默认)'."\n"
- .'- FACE_DOC'."\n"
- ."\n"
- .'注:只有当ProductCode为KYC_GLOBAL需传',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'DOC_FACE',
- ],
+ 'schema' => ['description' => '国家名称,当前仅支持:中国', 'type' => 'string', 'required' => true, 'example' => '中国'],
],
[
- 'name' => 'CallbackUrl',
+ 'name' => 'AddressType',
'in' => 'query',
- 'schema' => [
- 'description' => '认证结果的回调通知地址,回调请求方式默认为GET,回调地址必须以https开头。平台在完成认证后会回调该地址,并自动添加transactionId、passed和subcode字段。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://www.aliyun.com?callbackToken=1000004826&transactionId=shaxxxx&passed=Y&subCode=200',
- ],
+ 'schema' => ['description' => '验证地址类型:'."\n"
+ .'- “0”:文本地址'."\n"
+ .'- “1”:经纬度', 'type' => 'string', 'required' => true, 'example' => '“0”'],
],
[
- 'name' => 'CallbackToken',
+ 'name' => 'Longitude',
'in' => 'query',
- 'schema' => [
- 'description' => '安全Token,用于防重复、防篡改校验。如果传入该参数会在回调地址显示CallbackToken字段。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '7ca5c68d869344ea8eeb30cdfd544544-6358700',
- ],
+ 'schema' => ['description' => '经度。', 'type' => 'string', 'required' => false, 'example' => '“121.4737”'],
],
[
- 'name' => 'LanguageConfig',
+ 'name' => 'Latitude',
'in' => 'query',
- 'schema' => [
- 'description' => '语言配置(IDV产品入参)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'en',
- ],
+ 'schema' => ['description' => '纬度。', 'type' => 'string', 'required' => false, 'example' => '“31.2304”'],
],
[
- 'name' => 'SecurityLevel',
+ 'name' => 'Text',
'in' => 'query',
- 'schema' => [
- 'description' => '代表认证流程不同安全水位的模式,可选值:'."\n"
- ."\n"
- .'01:普通模式(默认)。'."\n"
- .'02:安全模式,相对严格的模式,可用于高风险场景(IDV产品入参)',
- 'type' => 'string',
- 'required' => false,
- 'example' => '01',
- ],
+ 'schema' => ['description' => '详细地址文本内容', 'type' => 'string', 'required' => false, 'example' => '阿里巴巴西溪园区'],
],
[
- 'name' => 'StyleConfig',
+ 'name' => 'DefaultProvince',
'in' => 'query',
- 'schema' => [
- 'description' => '自定义UI配置。根据配置模板,将您自定义的UI配置转换为JSON字符串后,通过该接口传入实现。更多信息,请参见[IDV UI样式自定义](https://www.alibabacloud.com/help/zh/ekyc/latest/idv-kyc-custom-skin?spm=a2c63.p38356.0.i60)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{'."\n"
- .' "guidepage:": {****}, '."\n"
- .' "ocrPage": {****},'."\n"
- .' "ocrResultPage": [****],'."\n"
- .' "facePage": {****},'."\n"
- .'}',
- ],
+ 'schema' => ['description' => '默认省份', 'type' => 'string', 'required' => false, 'example' => '浙江省'],
],
[
- 'name' => 'ExperienceCode',
+ 'name' => 'DefaultCity',
'in' => 'query',
- 'schema' => [
- 'description' => '体验码',
- 'type' => 'string',
- 'required' => false,
- 'example' => '9be7b7d0180041219e5ab03ac6dab5fb',
- ],
+ 'schema' => ['description' => '默认城市', 'type' => 'string', 'required' => false, 'example' => '杭州市'],
],
[
- 'name' => 'DocVideo',
+ 'name' => 'DefaultDistrict',
'in' => 'query',
+ 'schema' => ['description' => '默认行政区', 'type' => 'string', 'required' => false, 'example' => '余杭区'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '是否需要存证视频。'."\n"
- ."\n"
- .'- N:不需要(默认)。'."\n"
- ."\n"
- .'- Y:认证过程中会同时采集用户的刷脸过程视频(1~2s视频文件),并通过查询接口返回。'."\n"
- ."\n"
- .'> 因为视频文件较大,当网络不稳定时系统会丢弃视频文件,优先保障认证必要图片传输。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'N',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'ResultObject' => [
+ 'description' => '返回的结果信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => 'hksb7ba1b28130d24e015d69********'],
+ 'Passed' => ['description' => '核验结果,取值:'."\n"
+ .'- Y:是,验证地址距离小于等于10KM。'."\n"
+ .'- N:否,验证地址距离大于10KM。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '认证结果描述。', 'type' => 'string', 'example' => '200'],
+ 'AddressInfo' => ['description' => '地址核验详情信息。', 'type' => 'string', 'example' => '0-3000'],
+ 'IspName' => ['description' => '运营商名称:'."\n"
+ .'- CMCC:中国移动'."\n"
+ .'- CTCC:中国电信'."\n"
+ .'- CUCC:中国联通', 'type' => 'string', 'example' => 'CMCC'],
+ ],
+ ],
+ ],
],
],
+ ],
+ 'staticInfo' => [
+ 'substitutions' => ['Cloudauth-intl::2022-08-09::AddressVerifyV2Intl'],
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '地址核验',
+ 'summary' => '常用地址核验 API 基于运营商能力,通过手机号码、地址(或经纬度),验证传入地址是否属于该用户的常住地址。',
+ 'description' => '基于运营商能力,输入手机号码、地址(或经纬度),验证传入地址是否属于该用户的常住地址。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddressVerifyIntl'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'Model',
- 'in' => 'query',
- 'schema' => [
- 'description' => '要进行活体检测的类型:'."\n"
- ."\n"
- .'- **LIVENESS**(默认):眨眼动作活体检测。'."\n"
- ."\n"
- .'- **PHOTINUS_LIVENESS**:眨眼动作活体+炫彩活体双重检测。'."\n"
- ."\n"
- .'> '."\n"
- .'> - 支持集成的SDK版本,请参见[SDK发布记录](https://www.alibabacloud.com/help/zh/ekyc/latest/sdk-publishing-record?spm=a2c63.p38356.0.i99)。'."\n"
- .'> - PC端不支持炫彩活体双重检测。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'PHOTINUS_LIVENESS',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:AddressVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"TransactionId\\": \\"hksb7ba1b28130d24e015d69********\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"AddressInfo\\": \\"0-3000\\",\\n \\"IspName\\": \\"CMCC\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'AddressVerifyV2Intl' => [
+ 'summary' => '地址核验',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'IdThreshold',
- 'in' => 'query',
- 'schema' => [
- 'description' => '自定义OCR质量检测阈值模式:'."\n"
- .'- **0**:标准模式'."\n"
- .'- **1**:严格模式'."\n"
- .'- **2**:宽松模式'."\n"
- .'- **3**(默认):关闭质量检测',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREcloudauthZN5W38'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
[
- 'name' => 'ShowAlbumIcon',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '证件OCR识别环节,是否展示相册上传入口:'."\n"
- ."\n"
- .'- **1**:展示(默认)'."\n"
- ."\n"
- .'- **0**:不展示',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '产品code(固定值:ADD_VERIFY_PRO)', 'type' => 'string', 'required' => true, 'example' => 'ADD_VERIFY_PRO'],
],
[
- 'name' => 'ShowOcrResult',
+ 'name' => 'VerifyType',
'in' => 'query',
- 'schema' => [
- 'description' => '证件OCR识别环节,是否展示识别结果页:'."\n"
- ."\n"
- .'- **1**:展示(默认)'."\n"
- ."\n"
- .'- **0**:不展示',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '地址核验方式:'."\n"
+ ."\n"
+ .'- HOME:家庭地址核验'."\n"
+ .'- WORK:工作地址核验', 'type' => 'string', 'required' => false, 'example' => 'HOME'],
],
[
- 'name' => 'ShowGuidePage',
+ 'name' => 'Mobile',
'in' => 'query',
- 'schema' => [
- 'description' => '是否展示引导页面开关:'."\n"
- ."\n"
- .'- **1**:展示(默认)'."\n"
- ."\n"
- .'- **0**:不展示',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '支持中国手机号码', 'type' => 'string', 'required' => false, 'example' => '1872334****'],
],
[
- 'name' => 'ProcedurePriority',
+ 'name' => 'RegCountry',
'in' => 'query',
- 'schema' => [
- 'description' => '当移动端H5方式认证出现兼容性问题时,是否允许展示降级的处理方式。'."\n"
- ."\n"
- .'- **url(默认)**:支持降级。页面展示认证URL,用户可复制URL打开或者切换浏览器继续认证。'."\n"
- ."\n"
- .'- **keep**:不支持降级。直接返回错误原因,并结束认证流程。'."\n"
- ."\n\n"
- .'> '."\n"
- .'> - PC端不支持此开关。'."\n"
- .'> - 若业务应用场景为App内嵌网页完成认证,建议此参数设置为keep,不允许降级URL。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'url',
- ],
+ 'schema' => ['description' => '禁止国家列表', 'type' => 'string', 'required' => true, 'example' => '目前仅支持:USA'],
],
[
- 'name' => 'AppQualityCheck',
+ 'name' => 'Text',
'in' => 'query',
- 'schema' => [
- 'description' => '<warning>该功能**Web SDK**暂不支持,如需使用请参考App SDK接入。</warning>'."\n"
- ."\n"
- .'是否开启人脸严格质量检测:'."\n"
- .'- Y:开启(默认)'."\n"
- .'- N:不开启',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'N',
- ],
+ 'schema' => ['description' => '详细地址文本内容', 'type' => 'string', 'required' => false, 'example' => '江苏省常州市*******小区'],
],
[
- 'name' => 'DocPageConfig',
+ 'name' => 'DeviceToken',
'in' => 'query',
- 'style' => 'json',
+ 'schema' => ['description' => '设备Token,用于风险识别。', 'type' => 'string', 'required' => true, 'example' => 'Tk9SSUQuMS*****************ZDNmNWY5NzQxOW1o'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '客户自定义传入是否要采集更多页面',
- 'type' => 'array',
- 'items' => [
- 'description' => '采集面',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OCR_ID_BACK',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '7F971622-38C0-5F56-B2EC-315367979B4F'],
+ 'Code' => ['description' => '接口返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'TransactionId' => ['description' => '认证ID', 'type' => 'string', 'example' => 'hksb7ba1b28130d24e015d69********'],
+ 'BizCode' => ['description' => '验证结果:'."\n"
+ .'- 1:通过'."\n"
+ .'- 2:不通过(设备位于禁止区域) '."\n"
+ .'- 3:无法判断', 'type' => 'string', 'example' => '1'],
+ 'Detail' => ['description' => '验证详情,包括:'."\n"
+ ."\n"
+ .'- distanceRange:位置区间 '."\n"
+ .'- ispName: 运营商名称 '."\n"
+ .'- phoneStatus:手机状态 0-非正常 1-正常 (未知)', 'type' => 'string', 'example' => '{'."\n"
+ .' "distanceRange": "0-3000",'."\n"
+ .' "ispName": "CTCC",'."\n"
+ .' "phoneStatus": "1"'."\n"
+ .'}'],
+ ],
+ ],
],
- 'required' => false,
],
],
- [
- 'name' => 'MRTDInput',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'MRTD校验参数输入来源。NFC读取证件芯片信息时依赖该参数解密信息。'."\n"
- ."\n"
- .'- **0**:用户输入'."\n"
- ."\n"
- .'- **1**:ocr读取'."\n"
- ."\n"
- .'- **2**:接口传入',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '地址核验',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:AddressVerifyV2Intl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7F971622-38C0-5F56-B2EC-315367979B4F\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"hksb7ba1b28130d24e015d69********\\",\\n \\"BizCode\\": \\"1\\",\\n \\"Detail\\": \\"{\\\\n \\\\\\"distanceRange\\\\\\": \\\\\\"0-3000\\\\\\",\\\\n \\\\\\"ispName\\\\\\": \\\\\\"CTCC\\\\\\",\\\\n \\\\\\"phoneStatus\\\\\\": \\\\\\"1\\\\\\"\\\\n}\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'BankMetaVerifyIntl' => [
+ 'summary' => '银行卡要素(银行卡二要素、银行卡三要素和银行卡四要素)API接口。',
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'DocumentNumber',
- 'in' => 'query',
- 'schema' => [
- 'description' => '证件号'."\n"
- ."\n"
- .'**MRTDInput = 2**时,必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '-',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREcloudauth883TGF'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
[
- 'name' => 'DateOfBirth',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '证件上的出生日期'."\n"
- ."\n"
- .'**MRTDInput = 2**时,必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '-',
- ],
+ 'schema' => ['description' => '固定值:BANK_CARD_N_META', 'type' => 'string', 'required' => true, 'example' => 'BANK_CARD_N_META'."\n"],
],
[
- 'name' => 'DateOfExpiry',
+ 'name' => 'ParamType',
'in' => 'query',
- 'schema' => [
- 'description' => '证件上的过期时间'."\n"
- ."\n"
- .'**MRTDInput** = 2时,必传。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '-',
- ],
+ 'schema' => ['description' => '加密方式:'."\n"
+ .'- normal:不加密'."\n"
+ .'- md5:md5加密'."\n"
+ ."\n"
+ .'重要:'."\n"
+ ."\n"
+ .'- 所有参数的密文均取32位小写MD5字符串形式。'."\n"
+ .'- 不同MD5工具得出的密文可能不同,如果加密前接口可以调通但加密后不行,请尝试更换MD5工具。', 'type' => 'string', 'required' => true, 'example' => 'normal'],
],
[
- 'name' => 'UseNFC',
+ 'name' => 'VerifyMode',
'in' => 'query',
- 'schema' => [
- 'description' => '当**DocType**=01000000(全球护照)时,可选是否启用NFC验证。'."\n"
- .'- **Y**(启用)'."\n"
- .'- **N**(不启用)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'N',
- ],
+ 'schema' => ['description' => 'VERIFY_BANK_CARD:银行卡认证模式。表示将传入的银行卡号和用户的真实姓名、身份证号,手机号是否匹配', 'type' => 'string', 'required' => true, 'example' => 'VERIFY_BANK_CARD'],
],
[
- 'name' => 'ChameleonFrameEnable',
+ 'name' => 'ProductType',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启自适应变色窗口边框'."\n"
- .'- **Y**:开启'."\n"
- .'- **N**:不开启',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'N',
- ],
+ 'schema' => ['description' => '调用产品类型:'."\n"
+ ."\n"
+ .'- BANK_CARD_2_META:银⾏卡号+姓名核验。'."\n"
+ .'- BANK_CARD_3_META:银⾏卡号+姓名+身份证号核验。'."\n"
+ .'- BANK_CARD_4_META:银⾏卡号+姓名+身份证号+⼿机号核验。', 'type' => 'string', 'required' => true, 'example' => 'BANK_CARD_4_META'],
],
[
- 'name' => 'DocNo',
+ 'name' => 'BankCard',
'in' => 'query',
- 'schema' => [
- 'description' => '用户的证件号码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '411xxxxxxxxxxx0001',
- ],
+ 'schema' => ['description' => '银行卡号。'."\n"
+ ."\n"
+ .'- 当paramType取值normal时,输入银行卡号明文。'."\n"
+ .'- 当paramType取值md5时,卡号除最后6位其他部分明文+最后6位md5值(32位小写)。', 'type' => 'string', 'required' => true, 'example' => '● 明文:12345678******'."\n"
+ .'● 密文:'."\n"
+ .'12345678f8ee21920e37807b43e7e912ab829b6e'],
],
[
- 'name' => 'DocName',
+ 'name' => 'UserName',
'in' => 'query',
- 'schema' => [
- 'description' => '用户的真实姓名。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '张三',
- ],
+ 'schema' => ['description' => '姓名。'."\n"
+ ."\n"
+ .'- 当paramType取值normal时,输入姓名明文。'."\n"
+ .'- 当paramType取值md5时,姓名第一个字MD5加密(32位小写MD5)+ 姓名其他部分明文。', 'type' => 'string', 'required' => true, 'example' => '张*'."\n"],
],
[
- 'name' => 'EditOcrResult',
+ 'name' => 'IdentityType',
'in' => 'query',
- 'schema' => [
- 'description' => '证件OCR识别环节,识别结果页是否可编辑:'."\n"
- ."\n"
- .'- **0**:不可编辑'."\n"
- ."\n"
- .'- **1**(默认):可编辑',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => '证件类型(传空值默认为身份证,其他证件类型详见下表)。', 'type' => 'string', 'required' => false, 'example' => '01'],
],
[
- 'name' => 'VerifyModel',
+ 'name' => 'IdentifyNum',
'in' => 'query',
- 'schema' => [
- 'title' => '验证的类型',
- 'description' => '验证的类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => '证件号:'."\n"
+ .'- paramType 传 normal 时:传入证件号明文。'."\n"
+ .'- paramType 传 md5 时:'."\n"
+ .' - 身份证号前6位(明文)+出生年月日(密文)+身份证号后4位(明文)。'."\n"
+ .' - 其他证件最后两位MD5加密。'."\n"
+ ."\n"
+ .'重要'."\n"
+ .'ProductType为以下取值时,此项必选。'."\n"
+ .'- BANK_CARD_3_META'."\n"
+ .'- BANK_CARD_4_META', 'type' => 'string', 'required' => false, 'example' => '● 明文:429001********8211'."\n"
+ .'● 密文:'."\n"
+ .'42900132fa7bcd874161bea8ec8fd98f390ec98211'],
],
[
- 'name' => 'FaceGroupCodes',
+ 'name' => 'Mobile',
'in' => 'query',
+ 'schema' => ['description' => '手机号:'."\n"
+ .'- paramType 传 normal 时:传入手机号明文。'."\n"
+ .'- paramType 传 md5 时:传入手机号密文。'."\n"
+ ."\n"
+ .'重要'."\n"
+ ."\n"
+ .'- ProductType = BANK_CARD_4_META时,此项必选。', 'type' => 'string', 'required' => false, 'example' => '● 明文:186****2055'."\n"
+ .'● 密文:'."\n"
+ .'849169cd3b20621c1c78bd61a11a4fc2'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => '需要比对的人脸库',
- 'description' => '需要比对的人脸库',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0e0c34a77f',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码:200为成功,其他为失败。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'ResultObject' => [
+ 'description' => '返回的结果信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'BizCode' => ['description' => '核验结果码。'."\n"
+ .'- 1:校验⼀致(计费)'."\n"
+ .'- 2:校验不⼀致(计费)'."\n"
+ .'- 3:查⽆记录(不计费)', 'type' => 'string', 'example' => '1'],
+ 'SubCode' => ['description' => '核验详情:'."\n"
+ ."\n"
+ .'- **101**:验证通过。'."\n"
+ .'- **201**:认证信息不一致,持卡人信息有误。'."\n"
+ .'- **202**:认证信息不一致,银行卡未开通认证支付。'."\n"
+ .'- **203**:认证信息不一致,银行卡已过期。'."\n"
+ .'- **204**:认证信息不一致,银行卡为受限制的卡。'."\n"
+ .'- **205**:认证信息不一致,此卡被没收。'."\n"
+ .'- **206**:认证信息不一致,银行卡无效。'."\n"
+ .'- **207**:认证信息不一致,此卡无对应发卡行。'."\n"
+ .'- **208**:认证信息不一致,该卡未初始化或睡眠卡。'."\n"
+ .'- **209**:认证信息不一致,此卡为作弊卡、吞卡。'."\n"
+ .'- **210**:认证信息不一致,此卡已挂失。'."\n"
+ .'- **211**:认证信息不一致,密码错误次数超限。'."\n"
+ .'- **212**:认证信息不一致,发卡行不支持此交易。'."\n"
+ .'- **213**:认证信息不一致,卡状态不正常或卡无效。'."\n"
+ .'- **214**:认证信息不一致,未预留手机号。'."\n"
+ .'- **215**:认证信息不一致,输入的密码、有效期或CVN2有误。'."\n"
+ .'- **216**:认证信息不一致,其他卡异常情况。'."\n"
+ .'- **301**:无法验证,银行卡不支持该业务。'."\n"
+ .'- **302**:无法验证,验证失败或银行拒绝验证,请联系发卡行。'."\n"
+ .'- **303**:无法验证,银行卡暂不支持手机号验证。'."\n"
+ .'- **304**:无法验证,银行卡号有误。'."\n"
+ .'- **305**:无法验证,其他原因。'."\n"
+ .'- **306**:无法验证,验证次数超限。', 'type' => 'string', 'example' => '101'],
+ ],
+ ],
+ ],
],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"BizCode\\": \\"1\\",\\n \\"SubCode\\": \\"101\\"\\n }\\n}","type":"json"}]',
+ 'title' => '银行卡要素核验',
+ 'description' => '银行卡核验, 包含:银行卡二要素(姓名+银行卡号),银行卡三要素(姓名+身份证号码+银行卡号)四要素(姓名+身份证号码+手机号+银行卡号)的一致性核验。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BankMetaVerifyIntl'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'TargetFacePicture',
- 'in' => 'query',
- 'schema' => [
- 'title' => '人像照片Base64编码。',
- 'description' => '人像照片Base64编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:BankMetaVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ ],
+ 'CardOcr' => [
+ 'summary' => '卡证Ocr纯服务端能力Api。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'TargetFacePictureUrl',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '178782',
+ 'abilityTreeNodes' => ['FEATUREcloudauthCW0JNH', 'FEATUREcloudauthHOSIED', 'FEATUREcloudauthWSJE4H'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'title' => '人像图片地址,公网可访问的HTTP、HTTPS链接。',
- 'description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://www.xxxxx.com/1.jpg',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一', 'type' => 'string', 'required' => false, 'example' => 'dso9322***dsjsd22'],
],
[
- 'name' => 'AutoRegistration',
+ 'name' => 'MerchantUserId',
'in' => 'query',
- 'schema' => [
- 'title' => '是否开启自动注册',
- 'description' => '是否开启自动注册',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => '商户用户ID,或可用于识别特定用户的其他标识符,例如手机号码、电子邮件地址等。强烈建议对userId字段的值进行预脱敏处理,例如对该值进行hash处理', 'type' => 'string', 'required' => false, 'example' => '123456789'],
],
[
- 'name' => 'FaceRegisterGroupCode',
+ 'name' => 'IdOcrPictureBase64',
+ 'in' => 'formData',
+ 'schema' => ['description' => '证件正面图片base64编码。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
+ ],
+ [
+ 'name' => 'IdOcrPictureUrl',
'in' => 'query',
- 'schema' => [
- 'title' => '注册人脸库。',
- 'description' => '注册人脸库。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0e0c34a77f',
- ],
+ 'schema' => ['description' => '证件正面图片URL', 'type' => 'string', 'required' => false, 'example' => 'https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n"],
],
[
- 'name' => 'SaveFacePicture',
+ 'name' => 'DocType',
'in' => 'query',
- 'schema' => [
- 'title' => '是否保存人脸图片',
- 'description' => '是否保存人脸图片',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => '证件类型。', 'type' => 'string', 'required' => false, 'example' => '00000006'],
],
[
- 'name' => 'FaceVerifyThreshold',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'title' => '人脸验证阈值',
- 'description' => '人脸验证阈值',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0.5',
- ],
+ 'schema' => ['description' => '产品code', 'type' => 'string', 'required' => false, 'example' => 'ID_OCR_MIN'],
],
[
- 'name' => 'ReturnFaces',
+ 'name' => 'Ocr',
'in' => 'query',
- 'schema' => [
- 'title' => '返回重复人脸数量',
- 'description' => '返回重复人脸数量',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '是否进行证件OCR'."\n"
+ .'- T:表示需要证件OCR(默认T)'."\n"
+ .'- F:表示不需要', 'type' => 'string', 'required' => false, 'example' => 'T'],
],
[
- 'name' => 'Mobile',
+ 'name' => 'IdFaceQuality',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '是否进行证脸质量检测'."\n"
+ .'- T:表示需要检测'."\n"
+ .'- F:表示需要检测(默认F)', 'type' => 'string', 'required' => false, 'example' => 'F'],
],
[
- 'name' => 'Email',
+ 'name' => 'Spoof',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['description' => '是否开启防伪检测'."\n"
+ .'- T:表示开启防伪'."\n"
+ .'- F:表示关闭(默认F)', 'type' => 'string', 'required' => false, 'example' => 'F'],
],
],
'responses' => [
@@ -773,66 +736,76 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'TransactionId' => [
- 'description' => '认证ID',
- 'type' => 'string',
- 'example' => '08573be80f944d95ac812e019e3655a8',
- ],
- 'ClientCfg' => [
- 'description' => '客户端配置',
- 'type' => 'string',
- 'example' => '***',
- ],
- 'TransactionUrl' => [
- 'description' => 'Web认证Url',
- 'type' => 'string',
- 'example' => 'http****',
- ],
- 'Protocol' => [
- 'description' => '认证标准加密协议。'."\n"
- ."\n"
- .'> H5网页接入,选择iframe内嵌集成时依赖该字段。',
- 'type' => 'string',
- 'example' => 'hksb7ba1b28130d24e015d*********',
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '08573be80f944d95ac812e019e3655a8'],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过。'."\n"
+ .'- N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '子结果码。', 'type' => 'string', 'example' => '200'],
+ 'ExtIdInfo' => ['description' => '额外结果信息', 'type' => 'string', 'example' => '**'],
+ 'ExtCardInfo' => ['description' => '卡证识别结果', 'type' => 'string', 'example' => '{'."\n"
+ .' "idFaceQualityScore": 98.90,'."\n"
+ .' "ocrIdInfo": {'."\n"
+ .' "expiryDate": "2024-04-20",'."\n"
+ .' "placeOfIssue": "广东",'."\n"
+ .' "englishName": "ZHENGJIAN,YANGBEN",'."\n"
+ .' "originOfIssue": "公安部出入境管理局",'."\n"
+ .' "sex": "女",'."\n"
+ .' "name": "证件样本",'."\n"
+ .' "idNumber": "C00000000",'."\n"
+ .' "issueDate": "2014-04-21",'."\n"
+ .' "birthDate": "1981-08-03"'."\n"
+ .' },'."\n"
+ .' "spoofInfo": {'."\n"
+ .' "spoofResult": "N",'."\n"
+ .' "spoofType": ['."\n"
+ .' "SCREEN_REMARK"'."\n"
+ .' ]'."\n"
+ .' }'."\n"
+ .'}'],
],
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"ClientCfg\\": \\"***\\",\\n \\"TransactionUrl\\": \\"http****\\",\\n \\"Protocol\\": \\"hksb7ba1b28130d24e015d*********\\"\\n }\\n}","type":"json"}]',
- 'title' => '认证初始化',
+ 'staticInfo' => [
+ 'substitutions' => ['Cloudauth-intl::2022-08-09::DocOcr'],
+ 'returnType' => 'synchronous',
+ ],
+ 'title' => '卡证Ocr纯服务端能力Api',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CardOcr'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CardOcr',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"**\\",\\n \\"ExtCardInfo\\": \\"{\\\\n \\\\\\"idFaceQualityScore\\\\\\": 98.90,\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"expiryDate\\\\\\": \\\\\\"2024-04-20\\\\\\",\\\\n \\\\\\"placeOfIssue\\\\\\": \\\\\\"广东\\\\\\",\\\\n \\\\\\"englishName\\\\\\": \\\\\\"ZHENGJIAN,YANGBEN\\\\\\",\\\\n \\\\\\"originOfIssue\\\\\\": \\\\\\"公安部出入境管理局\\\\\\",\\\\n \\\\\\"sex\\\\\\": \\\\\\"女\\\\\\",\\\\n \\\\\\"name\\\\\\": \\\\\\"证件样本\\\\\\",\\\\n \\\\\\"idNumber\\\\\\": \\\\\\"C00000000\\\\\\",\\\\n \\\\\\"issueDate\\\\\\": \\\\\\"2014-04-21\\\\\\",\\\\n \\\\\\"birthDate\\\\\\": \\\\\\"1981-08-03\\\\\\"\\\\n },\\\\n \\\\\\"spoofInfo\\\\\\": {\\\\n \\\\\\"spoofResult\\\\\\": \\\\\\"N\\\\\\",\\\\n \\\\\\"spoofType\\\\\\": [\\\\n \\\\\\"SCREEN_REMARK\\\\\\"\\\\n ]\\\\n }\\\\n}\\"\\n }\\n}","type":"json"}]',
],
'CheckResult' => [
'summary' => '查询认证结果。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -845,62 +818,35 @@
'riskType' => 'none',
'chargeType' => 'free',
'abilityTreeCode' => '149753',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthCS0SDG',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthCS0SDG'],
],
'parameters' => [
[
'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'djs20d***9-dsskc',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。', 'type' => 'string', 'required' => false, 'example' => 'djs20d***9-dsskc'],
],
[
'name' => 'TransactionId',
'in' => 'query',
- 'schema' => [
- 'description' => '认证ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '4ab0b***cbde97',
- ],
+ 'schema' => ['description' => '认证ID。', 'type' => 'string', 'required' => false, 'example' => '4ab0b***cbde97'],
],
[
'name' => 'IsReturnImage',
'in' => 'query',
- 'schema' => [
- 'description' => '是否返回图片。'."\n"
- .'- Y:返回'."\n"
- .'- N:不返回',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'N',
- ],
+ 'schema' => ['description' => '是否返回图片。'."\n"
+ .'- Y:返回'."\n"
+ .'- N:不返回', 'type' => 'string', 'required' => false, 'example' => 'N'],
],
[
'name' => 'ExtraImageControlList',
'in' => 'query',
- 'schema' => [
- 'description' => '返回附加信息。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '***',
- ],
+ 'schema' => ['description' => '返回附加信息。', 'type' => 'string', 'required' => false, 'example' => '***'],
],
[
'name' => 'ReturnFiveCategorySpoofResult',
'in' => 'query',
- 'schema' => [
- 'description' => '是否返回防伪检测结果。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Y',
- ],
+ 'schema' => ['description' => '是否返回防伪检测结果。', 'type' => 'string', 'required' => false, 'example' => 'Y'],
],
],
'responses' => [
@@ -910,253 +856,378 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'EkycResult' => [
- 'description' => '认证结果。',
- 'type' => 'string',
- 'example' => '**',
- ],
- 'ExtBasicInfo' => [
- 'description' => '扩展基础信息。',
- 'type' => 'string',
- 'example' => '**',
- ],
- 'ExtFaceInfo' => [
- 'description' => '人脸信息。',
- 'type' => 'string',
- 'example' => '**',
- ],
- 'ExtIdInfo' => [
- 'description' => 'ID信息。',
- 'type' => 'string',
- 'example' => '**',
- ],
- 'ExtRiskInfo' => [
- 'description' => '风险信息。',
- 'type' => 'string',
- 'example' => '**',
- ],
- 'Passed' => [
- 'description' => '认证是否通过。'."\n"
- ."\n"
- .'- Y:通过。'."\n"
- .'- N:不通过。',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'SubCode' => [
- 'description' => '子结果码。',
- 'type' => 'string',
- 'example' => '***',
- ],
- 'ExtInfo' => [
- 'description' => '扩展信息,json字符串。',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'ExtSourceInfo' => [
- 'type' => 'string',
- ],
+ 'EkycResult' => ['description' => '认证结果。', 'type' => 'string', 'example' => '**'],
+ 'ExtBasicInfo' => ['description' => '扩展基础信息。', 'type' => 'string', 'example' => '**'],
+ 'ExtFaceInfo' => ['description' => '人脸信息。', 'type' => 'string', 'example' => '**'],
+ 'ExtIdInfo' => ['description' => 'ID信息。', 'type' => 'string', 'example' => '**'],
+ 'ExtRiskInfo' => ['description' => '风险信息。', 'type' => 'string', 'example' => '**'],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过。'."\n"
+ .'- N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '子结果码。', 'type' => 'string', 'example' => '***'],
+ 'ExtInfo' => ['description' => '扩展信息,json字符串。', 'type' => 'string', 'example' => '{}'],
+ 'ExtSourceInfo' => ['description' => '数据源核验明细结果说明如下(以印尼数据源为例):'."\n"
+ .'-** govId、fullName、dob**:比对得分等于 1.0 表示与官方数据源信息完全一致;低于 1.0 表示不一致。 '."\n"
+ .'- **selfiePhoto**:比对得分大于 0.8 表示与官方数据源信息一致;低于或等于 0.8 表示不一致。 '."\n"
+ .'- **liveness**:得分高于 0.95 表示存在活体检测风险。 '."\n"
+ .'- **imgManipulationScore**:得分高于 0.95 表示存在图片篡改风险。', 'type' => 'string', 'example' => '{'."\n"
+ .' "govId": 1.0,'."\n"
+ .' "fullName": 1.0,'."\n"
+ .' "dob": 0.9,'."\n"
+ .' "selfiePhoto": 0.8777,'."\n"
+ .' "liveness": 0.1152,'."\n"
+ .' "imgManipulationScore": 0.2253'."\n"
+ .'}'],
],
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"EkycResult\\": \\"**\\",\\n \\"ExtBasicInfo\\": \\"**\\",\\n \\"ExtFaceInfo\\": \\"**\\",\\n \\"ExtIdInfo\\": \\"**\\",\\n \\"ExtRiskInfo\\": \\"**\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"***\\",\\n \\"ExtInfo\\": \\"{}\\",\\n \\"ExtSourceInfo\\": \\"\\"\\n }\\n}","type":"json"}]',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"EkycResult\\": \\"**\\",\\n \\"ExtBasicInfo\\": \\"**\\",\\n \\"ExtFaceInfo\\": \\"**\\",\\n \\"ExtIdInfo\\": \\"**\\",\\n \\"ExtRiskInfo\\": \\"**\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"***\\",\\n \\"ExtInfo\\": \\"{}\\",\\n \\"ExtSourceInfo\\": \\"{\\\\n \\\\\\"govId\\\\\\": 1.0,\\\\n \\\\\\"fullName\\\\\\": 1.0,\\\\n \\\\\\"dob\\\\\\": 0.9,\\\\n \\\\\\"selfiePhoto\\\\\\": 0.8777,\\\\n \\\\\\"liveness\\\\\\": 0.1152,\\\\n \\\\\\"imgManipulationScore\\\\\\": 0.2253\\\\n}\\"\\n }\\n}","type":"json"}]',
'title' => '查询认证结果',
- ],
- 'EkycVerify' => [
- 'summary' => 'ekyc方案纯服务端接口',
- 'methods' => [
- 'post',
- 'get',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckResult'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CheckResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'CheckVerifyLog' => [
+ 'summary' => '认证日志查询接口',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '190721',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '266432',
+ 'abilityTreeNodes' => ['FEATUREcloudauthCS0SDG'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ProductCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '产品code',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'eKYC_MIN',
- ],
- ],
- [
'name' => 'MerchantBizId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888',
- ],
+ 'in' => 'formData',
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。', 'type' => 'string', 'required' => false, 'example' => 'e0c34a***353888'],
],
[
- 'name' => 'MerchantUserId',
- 'in' => 'query',
+ 'name' => 'TransactionId',
+ 'in' => 'formData',
+ 'schema' => ['description' => '整个认证流程的唯一标识。该值需要调用Initialize获取。', 'type' => 'string', 'required' => false, 'example' => 'hksb7ba1b*********015d694361bee4'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123456',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '后端错误码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过。'."\n"
+ .'- N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '200'],
+ 'VerifyStatus' => ['description' => '认证状态,取值:'."\n"
+ ."\n"
+ .'- 0:finished认证完成'."\n"
+ .'- 1:unfinished 认证中断'."\n"
+ .'- 2: notstart 未开始认证', 'type' => 'string', 'example' => '1'],
+ 'InterruptPage' => ['description' => '记录认证中断最后停留页面'."\n"
+ ."\n"
+ .'- 页面未启动'."\n"
+ .'- OCR引导页面'."\n"
+ .'- OCR相机授权'."\n"
+ .'- OCR拍摄证件页面'."\n"
+ .'- OCR识别loading中'."\n"
+ .'- OCR识别结果编辑页面'."\n"
+ .'- OCR识别结果编辑loading中'."\n"
+ .'- 活体检测引导页面'."\n"
+ .'- 活体检测相机授权页面'."\n"
+ .'- 活体检测页面'."\n"
+ .'- 活体检测降级页面'."\n"
+ .'- 活体检测重试'."\n"
+ .'- 活体检测loading中', 'type' => 'string', 'example' => 'OCR拍摄证件页面'],
+ 'VerifyErrorCode' => ['description' => '认证中断错误码'."\n"
+ ."\n"
+ .'- 1000 用户完成了刷脸过程,认证建议结果为通过'."\n"
+ .'- 1001 用户完成了刷脸过程,认证建议结果为未通过'."\n"
+ .'- 1002 系统错误'."\n"
+ .'- 1003 SDK初始化失败,请确认客户端时间是否正确'."\n"
+ .'- 1004 相机权限错误'."\n"
+ .'- 1005 网络错误'."\n"
+ .'- 1006 用户退出'."\n"
+ .'- 1007 TransactionId无效'."\n"
+ .'- 1009 客户端时间戳错误'."\n"
+ .'- 1011 提交证件类型错误'."\n"
+ .'- 1012 识别出的证件关键信息缺失或格式校验失败'."\n"
+ .'- 1013 图片质量不佳'."\n"
+ .'- 1014 错误次数超出上限'."\n"
+ .'- 1015 安卓系统版本过低'."\n"
+ .'- 1016 未获取到相机权限'."\n"
+ .'- 9999 疑似认证进程中断', 'type' => 'string', 'example' => '1001'],
+ 'LogInfo' => [
+ 'description' => 'SDK运行日志详情',
+ 'type' => 'array',
+ 'items' => ['description' => '运行日志', 'type' => 'string', 'example' => '['."\n"
+ .' "2025-03-21 10:31:25 Loading阶段结束",'."\n"
+ .' "2025-03-21 10:31:25 用户进入OCR页面",'."\n"
+ .' "2025-03-21 10:31:39 OCR认证阶段点击相册选择按钮",'."\n"
+ .' "2025-03-21 10:31:39 OCR认证阶段点击OCR提交按钮",'."\n"
+ .' "2025-03-21 10:31:42 OCR认证阶段中断弹窗弹出",'."\n"
+ .' "2025-03-21 10:31:43 OCR认证阶段中断重试",'."\n"
+ .' "2025-03-21 10:31:43 OCR认证阶段中断弹窗关闭",'."\n"
+ .' "2025-03-21 10:31:59 OCR认证阶段点击相册选择按钮",'."\n"
+ .' "2025-03-21 10:31:59 OCR认证阶段点击OCR提交按钮",'."\n"
+ .' "2025-03-21 10:32:02 OCR认证阶段结束",'."\n"
+ .' "2025-03-21 10:32:02 用户进入OCR编辑页面",'."\n"
+ .' "2025-03-21 10:32:03 OCR编辑阶段点击OCR结果确认无误按钮",'."\n"
+ .' "2025-03-21 10:32:04 OCR编辑阶段结束",'."\n"
+ .' "2025-03-21 10:32:04 用户进入活体页面",'."\n"
+ .' "2025-03-21 10:32:12 活体检测阶段结束"'."\n"
+ .' ]'],
+ ],
+ 'ExtInfo' => ['description' => '扩展信息', 'type' => 'string', 'example' => '{}'],
+ 'LogStatisticsInfo' => ['description' => 'SDK运行日志统计详情', 'type' => 'string', 'example' => '{'."\n"
+ .' "faceOverTimes": 0,'."\n"
+ .' "hasFaceOverTimes": false,'."\n"
+ .' "hasFacePermissionRefuse": false,'."\n"
+ .' "hasOcrEdit": true,'."\n"
+ .' "hasOcrEditOverTimes": false,'."\n"
+ .' "hasOcrOverTimes": true,'."\n"
+ .' "hasOcrPermissionRefuse": false,'."\n"
+ .' "ocrEditOverTimes": 0,'."\n"
+ .' "ocrEditTimes": 1,'."\n"
+ .' "ocrOverTimes": 1,'."\n"
+ .' "pageStayTimeInfo": {'."\n"
+ .' "LOADING": "1615",'."\n"
+ .' "OCR_SCAN": "37446",'."\n"
+ .' "OCR_RESULT": "1338",'."\n"
+ .' "FACE": "8707"'."\n"
+ .' }'."\n"
+ .' }'],
+ 'LogInfoEn' => [
+ 'description' => 'SDK运行链路日志详情,英文取值。'."\n"
+ .'此字段格式同**LogInfo**。',
+ 'type' => 'array',
+ 'items' => ['description' => '运行日志', 'type' => 'string', 'example' => '['."\n"
+ .' "2025-03-21 10:31:25 LOADING_ENTER",'."\n"
+ .' "2025-03-21 10:31:25 LOADING_EXIT",'."\n"
+ .' "2025-03-21 10:31:39 GUIDE_PAGE_SHOW",'."\n"
+ .' "2025-03-21 10:31:39 GUIDE_PAGE_LEAVE",'."\n"
+ .' "2025-03-21 10:31:42 FACE_ENTER",'."\n"
+ .' "2025-03-21 10:31:43 FACE_EXIT"'."\n"
+ .']'],
+ ],
+ 'InterruptPageEn' => ['description' => '认证中断最后停留页面,英文取值:'."\n"
+ ."\n"
+ .'当然,以下是将这些取值转换为无序列表的形式:'."\n"
+ ."\n"
+ .'- LOADING'."\n"
+ ."\n"
+ .'- GUIDE'."\n"
+ ."\n"
+ .'- FACE'."\n"
+ ."\n"
+ .'- OCR_SCAN'."\n"
+ ."\n"
+ .'- OCR_RESULT'."\n"
+ ."\n"
+ .'- NFC_INPUT'."\n"
+ ."\n"
+ .'- NFC_READ', 'type' => 'string', 'example' => 'LOADING'],
+ ],
+ ],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"VerifyStatus\\": \\"1\\",\\n \\"InterruptPage\\": \\"OCR拍摄证件页面\\",\\n \\"VerifyErrorCode\\": \\"1001\\",\\n \\"LogInfo\\": [\\n \\"[\\\\n \\\\\\"2025-03-21 10:31:25 Loading阶段结束\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:25 用户进入OCR页面\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:39 OCR认证阶段点击相册选择按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:39 OCR认证阶段点击OCR提交按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:42 OCR认证阶段中断弹窗弹出\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:43 OCR认证阶段中断重试\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:43 OCR认证阶段中断弹窗关闭\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:59 OCR认证阶段点击相册选择按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:59 OCR认证阶段点击OCR提交按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:02 OCR认证阶段结束\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:02 用户进入OCR编辑页面\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:03 OCR编辑阶段点击OCR结果确认无误按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:04 OCR编辑阶段结束\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:04 用户进入活体页面\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:12 活体检测阶段结束\\\\\\"\\\\n ]\\"\\n ],\\n \\"ExtInfo\\": \\"{}\\",\\n \\"LogStatisticsInfo\\": \\"{\\\\n \\\\\\"faceOverTimes\\\\\\": 0,\\\\n \\\\\\"hasFaceOverTimes\\\\\\": false,\\\\n \\\\\\"hasFacePermissionRefuse\\\\\\": false,\\\\n \\\\\\"hasOcrEdit\\\\\\": true,\\\\n \\\\\\"hasOcrEditOverTimes\\\\\\": false,\\\\n \\\\\\"hasOcrOverTimes\\\\\\": true,\\\\n \\\\\\"hasOcrPermissionRefuse\\\\\\": false,\\\\n \\\\\\"ocrEditOverTimes\\\\\\": 0,\\\\n \\\\\\"ocrEditTimes\\\\\\": 1,\\\\n \\\\\\"ocrOverTimes\\\\\\": 1,\\\\n \\\\\\"pageStayTimeInfo\\\\\\": {\\\\n \\\\\\"LOADING\\\\\\": \\\\\\"1615\\\\\\",\\\\n \\\\\\"OCR_SCAN\\\\\\": \\\\\\"37446\\\\\\",\\\\n \\\\\\"OCR_RESULT\\\\\\": \\\\\\"1338\\\\\\",\\\\n \\\\\\"FACE\\\\\\": \\\\\\"8707\\\\\\"\\\\n }\\\\n }\\",\\n \\"LogInfoEn\\": [\\n \\"[\\\\n \\\\\\"2025-03-21 10:31:25 LOADING_ENTER\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:25 LOADING_EXIT\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:39 GUIDE_PAGE_SHOW\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:39 GUIDE_PAGE_LEAVE\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:42 FACE_ENTER\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:43 FACE_EXIT\\\\\\"\\\\n]\\"\\n ],\\n \\"InterruptPageEn\\": \\"LOADING\\"\\n }\\n}","type":"json"}]',
+ 'title' => '认证日志查询',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckVerifyLog'],
+ ],
+ ],
+ 'ramActions' => [
[
- 'name' => 'DocType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '证件类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => '00000001',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CheckVerifyLog',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ ],
+ 'CredentialGetResultIntl' => [
+ 'summary' => '凭证识别结果查询',
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'DocName',
- 'in' => 'query',
- 'schema' => [
- 'description' => '用户的真实姓名。当Authorize=\'T\'且证件类型为大陆身份证时,证件关键信息(DocName、DocNo)与证件图片(IdOcrPictureBase64/URL)必须至少输入其中一组'."\n"
- .'注:支持长度为1个汉字以上的汉字组合,无特殊字符,少数民族的点【·】除外',
- 'type' => 'string',
- 'required' => false,
- 'example' => '张**',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREcloudauthS6WIN6'],
+ ],
+ 'parameters' => [
[
- 'name' => 'DocNo',
+ 'name' => 'TransactionId',
'in' => 'query',
+ 'schema' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'required' => true, 'example' => '4ab0b***abde97'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '用户的证件号。当Authorize=\'T\'且证件类型为大陆身份证时,证件关键信息(DocName、DocNo)与证件图片(IdOcrPictureBase64/URL)必须至少输入其中一组'."\n"
- .'注:支持长度为18位的字母和数字组合',
- 'type' => 'string',
- 'required' => false,
- 'example' => '410***************',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => ['description' => '任务状态:'."\n"
+ .'- PROCESSING:执行中(请继续轮询)'."\n"
+ .'- SUCCESS:执行成功'."\n"
+ .'- FAILED:执行失败', 'type' => 'string', 'example' => 'SUCCESS'],
+ 'SubCode' => ['description' => '认证结果描述。更多信息,请参ResultObject.SubCode错误码说明。', 'type' => 'string', 'example' => '200'],
+ 'ExtIdInfo' => ['description' => '识别的关键信息,JSON格式。', 'type' => 'string', 'example' => '{'."\n"
+ .' "address": "",'."\n"
+ .' "name":""'."\n"
+ .'}'],
+ ],
+ ],
+ ],
],
],
- [
- 'name' => 'IdOcrPictureUrl',
- 'in' => 'query',
- 'schema' => [
- 'description' => '证件正面图片URL',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n",
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '凭证识别结果查询(异步)',
+ 'description' => '当您获取到TransactionId之后,可以在服务端通过该接口获取相应的认证结果。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CredentialGetResultIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"address\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"name\\\\\\":\\\\\\"\\\\\\"\\\\n}\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'CredentialRecognitionIntl' => [
+ 'summary' => 'API接口,上传凭证图片,包括:水电煤、信用卡账单等,通过通义VL智能提取账单地址及姓名',
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'IdOcrPictureBase64',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '卡证图片Base64编码。'."\n"
- .'说明'."\n"
- .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
- .'- IdOcrPictureBase64和IdOcrPictureUrl二选一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREcloudauthNYJI62'],
+ ],
+ 'parameters' => [
[
- 'name' => 'FacePictureUrl',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '人脸照片地址',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://digital-face-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg',
- ],
+ 'schema' => ['description' => '要接入的产品方案。取值CREDENTIAL_RECOGNITION。', 'type' => 'string', 'required' => true, 'example' => 'CREDENTIAL_RECOGNITION'],
],
[
- 'name' => 'FacePictureBase64',
+ 'name' => 'CredentialOcrPictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '人像图片Base64编码。'."\n"
- ."\n"
- .'说明'."\n"
- .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
- .'- FacePictureBase64和FacePictureUrl二选一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Base64',
- ],
+ 'schema' => ['description' => '图片Base64编码。如果您选择IdOcrPictureBase64(照片Base64编码)方式传入照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
],
[
- 'name' => 'Crop',
+ 'name' => 'CredentialOcrPictureUrl',
+ 'in' => 'formData',
+ 'schema' => ['description' => '图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://***'],
+ ],
+ [
+ 'name' => 'DocType',
'in' => 'query',
- 'schema' => [
- 'description' => '是否允许裁剪,默认不允许,T/F'."\n"
- ."\n"
- .'- T:表示需要检测'."\n"
- .'- F:表示需要检测(默认F)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'F',
- ],
+ 'schema' => ['description' => '凭证类型。'."\n"
+ .'- 交易凭据:01(包括:水、电、煤、信用卡等各类电子账单图片)', 'type' => 'string', 'required' => true, 'example' => '01'],
],
[
- 'name' => 'Authorize',
+ 'name' => 'OcrArea',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启身份权威核验,目前仅适用于中国大陆二代身份证',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'T',
- ],
+ 'schema' => ['description' => '提取类型:'."\n"
+ .'- 0101:电子账单地址&姓名模块(通过智能分析提取地址及姓名模块)', 'type' => 'string', 'required' => true, 'example' => '0101'],
],
[
- 'name' => 'IdThreshold',
+ 'name' => 'FraudCheck',
'in' => 'query',
- 'schema' => [
- 'description' => '自定义OCR质量检测阈值模式:'."\n"
- ."\n"
- .'- 0:系统默认'."\n"
- .'- 1:严格模式'."\n"
- .'- 2:宽松模式'."\n"
- .'- 3(默认):关闭质量检测',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => '是否开启篡改检测'."\n"
+ .'- true:开启'."\n"
+ .'- false:关闭', 'type' => 'string', 'required' => true, 'example' => 'true'],
],
],
'responses' => [
@@ -1166,92 +1237,54 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息的响应消息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识',
- 'type' => 'string',
- 'example' => '4ab0b***cbde97',
- ],
- 'SubCode' => [
- 'description' => '子结果码',
- 'type' => 'string',
- 'example' => '205',
- ],
- 'Passed' => [
- 'description' => '是否通过,通过为T,不通过为F。',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'ExtFaceInfo' => [
- 'description' => '人脸结果信息',
- 'type' => 'string',
- 'example' => '{'."\n"
- .'"faceAttack": "N",'."\n"
- .'"faceComparisonScore": 52.57,'."\n"
- .'"facePassed": "N",'."\n"
- .'"authorityComparisonScore": 80.39'."\n"
- .'}'."\n"
- ."\n",
- ],
- 'ExtIdInfo' => [
- 'description' => '卡证识别结果 只有当接口响应成功时返回',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "ocrIdInfo": {'."\n"
- .' "firstName": "**龙",'."\n"
- .' "lastName": "**",'."\n"
- .' "countryCode": "CHN",'."\n"
- .' "docType": "01560001",'."\n"
- .' "dateOfBirth": "2002-08-04",'."\n"
- .' "idNumber": "410************19"'."\n"
- .' },'."\n"
- .' "ocrIdPassed": "N",'."\n"
- .' "spoofInfo": {'."\n"
- .' "spoofResult": "Y",'."\n"
- .' }'."\n"
- .'}'."\n"
- ."\n",
- ],
+ 'Success' => ['description' => '提取结果。取值:'."\n"
+ .'- S:成功。'."\n"
+ .'- F:失败。', 'type' => 'string', 'example' => 'S'],
+ 'SubCode' => ['description' => '认证结果描述', 'type' => 'string', 'example' => '200'],
+ 'ExtIdInfo' => ['description' => '识别的关键信息,JSON格式。', 'type' => 'string', 'example' => '{'."\n"
+ .' "address": "",'."\n"
+ .' "name":""'."\n"
+ .'}'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '凭证识别',
+ 'description' => '通过AI技术检测凭证(如水、电、煤、信用卡等电子账单)是否存在伪造,并对凭证进行关键信息提取。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CredentialRecognitionIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\",\\n \\"SubCode\\": \\"205\\",\\n \\"Passed\\": \\"Y\\",\\n \\"ExtFaceInfo\\": \\"{\\\\n\\\\\\"faceAttack\\\\\\": \\\\\\"N\\\\\\",\\\\n\\\\\\"faceComparisonScore\\\\\\": 52.57,\\\\n\\\\\\"facePassed\\\\\\": \\\\\\"N\\\\\\",\\\\n\\\\\\"authorityComparisonScore\\\\\\": 80.39\\\\n}\\\\n\\\\n\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"firstName\\\\\\": \\\\\\"**龙\\\\\\",\\\\n \\\\\\"lastName\\\\\\": \\\\\\"**\\\\\\",\\\\n \\\\\\"countryCode\\\\\\": \\\\\\"CHN\\\\\\",\\\\n \\\\\\"docType\\\\\\": \\\\\\"01560001\\\\\\",\\\\n \\\\\\"dateOfBirth\\\\\\": \\\\\\"2002-08-04\\\\\\",\\\\n \\\\\\"idNumber\\\\\\": \\\\\\"410************19\\\\\\"\\\\n },\\\\n \\\\\\"ocrIdPassed\\\\\\": \\\\\\"N\\\\\\",\\\\n \\\\\\"spoofInfo\\\\\\": {\\\\n \\\\\\"spoofResult\\\\\\": \\\\\\"Y\\\\\\",\\\\n }\\\\n}\\\\n\\\\n\\"\\n }\\n}","type":"json"}]',
- 'title' => '纯服务端实人认证(eKYC_MIN)',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Success\\": \\"S\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"address\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"name\\\\\\":\\\\\\"\\\\\\"\\\\n}\\"\\n }\\n}","type":"json"}]',
],
- 'FaceLiveness' => [
- 'summary' => '静默活体纯服务端能力Api',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CredentialSubmitIntl' => [
+ 'summary' => '凭证识别信息提交',
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -1263,102 +1296,53 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeCode' => '175619',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthS6WIN6'],
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '产品code',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FACE_LIVENESS_MIN',
- ],
+ 'schema' => ['description' => '要接入的产品方案。取值CREDENTIAL_RECOGNITION。', 'type' => 'string', 'required' => true, 'example' => 'CREDENTIAL_RECOGNITION'],
],
[
- 'name' => 'MerchantBizId',
+ 'name' => 'SceneCode',
'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888',
- ],
+ 'schema' => ['description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。支持长度为10位的字母、数字或下划线的组合。', 'type' => 'string', 'required' => true, 'example' => '123****123'],
],
[
- 'name' => 'MerchantUserId',
+ 'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '商户用户ID,或可用于识别特定用户的其他标识符,例如手机号码、电子邮件地址等。强烈建议对userId字段的值进行预脱敏处理,例如对该值进行hash处理',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123456789',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。', 'type' => 'string', 'required' => true, 'example' => 'e0c34a***353888'],
],
[
- 'name' => 'FacePictureUrl',
- 'in' => 'query',
- 'schema' => [
- 'description' => '人脸照片地址',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://digital-face-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg',
- ],
+ 'name' => 'CredentialOcrPictureBase64',
+ 'in' => 'formData',
+ 'schema' => ['description' => '图片Base64编码。如果您选择此方式传入照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
],
[
- 'name' => 'FacePictureBase64',
+ 'name' => 'CredentialOcrPictureUrl',
'in' => 'formData',
- 'schema' => [
- 'description' => '照片Base64编码。'."\n"
- ."\n"
- .'说明:'."\n"
- .'- 如果您选择FacePictureBase64(照片Base64编码)方式传入人脸照片,请注意检查照片大小,不要传入过大的照片。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Base64',
- ],
+ 'schema' => ['description' => '图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://***'],
],
[
- 'name' => 'FaceQuality',
+ 'name' => 'DocType',
'in' => 'query',
- 'schema' => [
- 'description' => '是否输出人脸质量分,默认不允许,T/F'."\n"
- .'- T:表示需要检测'."\n"
- .'- F:表示需要检测(默认F)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'T',
- ],
+ 'schema' => ['description' => '凭证类型:'."\n"
+ .'- 02:车辆登记证明', 'type' => 'string', 'required' => true, 'example' => '02'],
],
[
- 'name' => 'Crop',
+ 'name' => 'OcrArea',
'in' => 'query',
- 'schema' => [
- 'description' => '是否允许裁剪,默认不允许,T/F'."\n"
- ."\n"
- .'- T:表示需要检测'."\n"
- .'- F:表示需要检测(默认F)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'T',
- ],
+ 'schema' => ['description' => '提取类型:'."\n"
+ ."\n"
+ .'- 0201:泰国车辆登记证明', 'type' => 'string', 'required' => true, 'example' => '0201'],
],
[
- 'name' => 'Occlusion',
+ 'name' => 'FraudCheck',
'in' => 'query',
- 'schema' => [
- 'description' => '是否进行遮挡检测,默认不允许T/F'."\n"
- ."\n"
- .'- T:表示需要检测'."\n"
- .'- F:表示需要检测(默认F)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'T',
- ],
+ 'schema' => ['description' => '是否开启篡改检测'."\n"
+ .'- true:开启'."\n"
+ .'- false:关闭', 'type' => 'string', 'required' => true, 'example' => 'false'],
],
],
'responses' => [
@@ -1368,101 +1352,47 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '阿里云为该请求生成的唯一标识符',
- 'type' => 'string',
- 'example' => '42EA58CA-5DF4-55D5-82C4-5E7A40DA62BA',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回结果的提示信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识',
- 'type' => 'string',
- 'example' => '08573be80f944d95ac812e019e3655a8',
- ],
- 'Passed' => [
- 'description' => '认证是否通过'."\n"
- ."\n"
- .'- Y:通过'."\n"
- .'- N:不通过',
- 'type' => 'string',
- 'example' => 'N',
- ],
- 'SubCode' => [
- 'description' => '子结果码',
- 'type' => 'string',
- 'example' => '205',
- ],
- 'ExtFaceInfo' => [
- 'description' => '人脸结果信息',
- 'type' => 'object',
- 'properties' => [
- 'FaceQualityScore' => [
- 'description' => '人脸质量分(0~100),当且仅当入参质量分开关打开时返回',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '87.19',
- ],
- 'OcclusionResult' => [
- 'description' => '遮挡检测结果,Y (遮挡) /N (无遮挡),当且仅当遮挡检测开关打开时返回',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'FaceAttack' => [
- 'description' => '活体检测结果,Y(攻击)/N(正常)',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'FaceGender' => [
- 'description' => '人脸图片预测的性别,可能存在预测失败无结果值的情况。'."\n"
- ."\n"
- .'- M:男'."\n"
- .'- F:女',
- 'type' => 'string',
- 'example' => 'M',
- ],
- 'FaceAge' => [
- 'description' => '人脸预测的参考年龄,可能存在预测失败无结果值的情况。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '18',
- ],
- ],
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => '4ab0b***cbde97'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '凭证识别任务提交(异步)',
+ 'description' => '凭证识别OCR初始化接口,通过本接口获取transactionId。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CredentialSubmitIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42EA58CA-5DF4-55D5-82C4-5E7A40DA62BA\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"Passed\\": \\"N\\",\\n \\"SubCode\\": \\"205\\",\\n \\"ExtFaceInfo\\": {\\n \\"FaceQualityScore\\": 87.19,\\n \\"OcclusionResult\\": \\"Y\\",\\n \\"FaceAttack\\": \\"Y\\",\\n \\"FaceGender\\": \\"M\\",\\n \\"FaceAge\\": 18\\n }\\n }\\n}","type":"json"}]',
- 'title' => '人脸静默活体(FACE_LIVENESS_MIN)',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\"\\n }\\n}","type":"json"}]',
],
- 'FaceDuplicationCheckIntl' => [
- 'summary' => '人脸重复性检测(FaceDuplicationCheckIntl)适用于无法集成 SDK 的场景,通过 API 接口传入人脸图片,实现以下功能:验证用户是否为真人、与留存人脸进行比对验证身份、在人脸库中进行检索判断是否存在、支持验证通过后自动将人脸注册到指定人脸库中。',
+ 'CredentialVerifyIntl' => [
+ 'summary' => '凭证核验服务的API接口。接口可以将传入的凭证图片通过大模型进行图片篡改及伪造检测、图片质量检测。',
'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -1474,190 +1404,174 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthNYJI62'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ProductCode',
+ 'name' => 'CredType',
'in' => 'query',
- 'schema' => [
- 'description' => '产品code',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'FACE_IDU_MIN',
- ],
- ],
- [
- 'name' => 'SceneCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '您自定义的认证场景ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1234567890',
- ],
+ 'schema' => ['description' => '凭证类型:'."\n"
+ ."\n"
+ .'- 03:企业资质类'."\n"
+ .'- 04:交易凭据类', 'type' => 'string', 'required' => true, 'example' => '03'],
],
[
- 'name' => 'MerchantBizId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e0c34a77f5ac40a5aa5e6ed20c35****',
- ],
+ 'name' => 'CredName',
+ 'in' => 'query',
+ 'schema' => ['description' => '凭证名称(取数字代码):'."\n"
+ ."\n"
+ .'- 03开头:企业资质类'."\n"
+ .' - 0301:中国内地工商营业执照'."\n"
+ .'- 04开头,交易凭据'."\n"
+ .' - 0401:银行流水'."\n"
+ .' - 0402:薪资条'."\n"
+ .' - 0403:水电账单'."\n"
+ .' - 0405:信用卡账单'."\n"
+ .' - 0499:其他', 'type' => 'string', 'required' => true, 'example' => '0301'],
],
[
- 'name' => 'MerchantUserId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1234567890',
- ],
+ 'name' => 'ImageUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '图片的地址。'."\n"
+ .'> ImageUrl和ImageFile任选其中一个。', 'type' => 'string', 'required' => false, 'example' => 'https://oss-bj01.avic.com/eavic-prod-commodity/pic/commodity/94677ee6-1067-4287-8ff4-6e030ef3a5a8.jpg'],
],
[
- 'name' => 'VerifyModel',
+ 'name' => 'ImageFile',
'in' => 'formData',
- 'schema' => [
- 'description' => '验证类型:'."\n"
- .'- 0:检索模式'."\n"
- .'> - 功能:传入人脸库和用户人脸图片(sourceFacePicture)系统自动检索人脸库中是否已经存该指定人脸图片(sourceFacePicture),且人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
- .'> - 建议场景:真人注册账号且不允许重复注册场景。'."\n"
- ."\n"
- .'- 1(默认):验证模式'."\n"
- .'> - 功能:传入指定人脸图片(sourceFacePicture)与留底人脸图片(TargetFacePicture),系统自动验证是否与人脸一致,且指定人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
- .'> - 建议场景:修改登录、账号等信息时需验证是否为本人操作的场景。'."\n"
- ."\n"
- .'- 2:综合模式'."\n"
- .'> - 功能:同时传入人脸库、指定人脸图片(sourceFacePicture)与留底人脸图片(TargetFacePicture),系统自动检索人脸库中是否存在指定人脸图片(sourceFacePicture),是否与留底人脸一致,且指定人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
- .'> - 建议场景:需要验证是新增用户且是本人操作场景。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '图片输入流。'."\n"
+ .'> ImageUrl和ImageFile任选其中一个。', 'type' => 'string', 'required' => false, 'example' => '无', 'isFileTransferUrl' => true],
],
[
- 'name' => 'Liveness',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '是否开启静默活体检测'."\n"
- .'- 0:不开启'."\n"
- .'- 1:开启',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'name' => 'ProductCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '调用模式:'."\n"
+ .'- ANTI_FAKE_CHECK:图片质量、篡改检测。', 'type' => 'string', 'required' => true, 'example' => '取值:ANTI_FAKE_CHECK'],
],
- [
- 'name' => 'FaceGroupCodes',
- 'in' => 'formData',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '客户通过控制台创建的人脸库编码,最大支持同时查询10个人脸库。当传入多个人脸库编码时,以逗号区分。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1232344,23444',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '130A2C10-B9EE-4D84-88E3-5384FF039795'],
+ 'Code' => ['description' => '返回码:200为成功,其他为失败。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'ResultObject' => [
+ 'description' => '返回的结果信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => ['description' => '风险结果:'."\n"
+ ."\n"
+ .'- **0**:低风险'."\n"
+ .'- **1**:高风险'."\n"
+ .'- **2**:可疑', 'type' => 'string', 'example' => '1'],
+ 'RiskTag' => ['description' => '风险标签,多个标签用半角逗号(,)隔开,包括:'."\n"
+ ."\n"
+ .'- PS:图片PS。'."\n"
+ .'- SCREEN_PHOTO:屏幕翻拍。'."\n"
+ .'- SCREENSHOT:屏幕截屏。'."\n"
+ .'- ORIGINAL_PHOTO:非原始图。', 'type' => 'string', 'example' => 'PS'],
+ 'RiskScore' => [
+ 'description' => '风险分值Map',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n"
+ .'"PS": "0.0211",'."\n"
+ .'"SCREEN_PHOTO": "0.0101",'."\n"
+ .'"SCREENSHOT": "0.0521"'."\n"
+ .'}', 'description' => '风险分值'],
+ ],
+ 'MaterialInfo' => ['description' => '其他信息,JSON格式。', 'type' => 'string', 'example' => '{'."\n"
+ .' "sameBackgroundDetail": {'."\n"
+ .' // 相似背景对于的原始图请求RequestId'."\n"
+ .' "originalRequestId": "130A2C10-B9EE-4D84-88E3-5384FF03****";'."\n"
+ .' // 相似背景对于的原始图请求商户ID '."\n"
+ .' "originalMerchantId": "xxxxxxxx" '."\n"
+ .' }'."\n"
+ .'}'],
+ ],
+ ],
+ ],
],
],
- [
- 'name' => 'SourceFacePicture',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '人像照片Base64编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"130A2C10-B9EE-4D84-88E3-5384FF039795\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"Result\\": \\"1\\",\\n \\"RiskTag\\": \\"PS\\",\\n \\"RiskScore\\": {\\n \\"key\\": \\"{\\\\n\\\\\\"PS\\\\\\": \\\\\\"0.0211\\\\\\",\\\\n\\\\\\"SCREEN_PHOTO\\\\\\": \\\\\\"0.0101\\\\\\",\\\\n\\\\\\"SCREENSHOT\\\\\\": \\\\\\"0.0521\\\\\\"\\\\n}\\"\\n },\\n \\"MaterialInfo\\": \\"{\\\\n \\\\\\"sameBackgroundDetail\\\\\\": {\\\\n // 相似背景对于的原始图请求RequestId\\\\n \\\\\\"originalRequestId\\\\\\": \\\\\\"130A2C10-B9EE-4D84-88E3-5384FF03****\\\\\\";\\\\n // 相似背景对于的原始图请求商户ID \\\\n \\\\\\"originalMerchantId\\\\\\": \\\\\\"xxxxxxxx\\\\\\" \\\\n }\\\\n}\\"\\n }\\n}","type":"json"}]',
+ 'title' => '凭证篡改检测',
+ 'description' => '传入凭证图片信息,执行图片质量、篡改及伪造检测,返回检测结果',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CredentialVerifyIntl'],
],
+ ],
+ 'ramActions' => [
[
- 'name' => 'SourceFacePictureUrl',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://***face1.jpeg',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CredentialVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ ],
+ 'DeepfakeDetectIntl' => [
+ 'summary' => '人脸Deepfake检测服务的API。',
+ 'path' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'TargetFacePicture',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '人像照片Base64编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREcloudauthNYJI62'],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
[
- 'name' => 'TargetFacePictureUrl',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://***face2.jpeg',
- ],
+ 'name' => 'ProductCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '要接入的产品方案。取值:**FACE_DEEPFAKE**', 'type' => 'string', 'required' => true, 'example' => 'FACE_DEEPFAKE'],
],
[
- 'name' => 'AutoRegistration',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '指检索未存在重复人脸,是否自动注册人脸到指定人脸库下。'."\n"
- .'- 0:自动注册'."\n"
- .'- 1:不注册(默认)',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'name' => 'SceneCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。支持长度为10位的字母、数字或下划线的组合。', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
],
[
- 'name' => 'FaceRegisterGroupCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '注册人脸库。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0e0c34a77f',
- ],
+ 'name' => 'MerchantBizId',
+ 'in' => 'query',
+ 'schema' => ['description' => '商户请求的唯一标识,值为32位长度的字母数字组合。其中前几位字符由商户自定义的简称组成,中间部分可以包含一段时间,而后段可以采用随机或递增序列。', 'type' => 'string', 'required' => true, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c******'],
],
[
- 'name' => 'SaveFacePicture',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '保存人脸图片区分是'."\n"
- .'- 0:人脸(默认)'."\n"
- .'- 1:特征'."\n"
- .'><warning>预留字段,暂无启用></warning>',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'name' => 'FaceInputType',
+ 'in' => 'query',
+ 'schema' => ['description' => '传入**IMAGE**,表示人脸图像。', 'type' => 'string', 'required' => false, 'example' => 'IMAGE'],
],
[
- 'name' => 'FaceVerifyThreshold',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '人脸匹配阈值。><warning>预留字段,暂无启用></warning>',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0.5',
- ],
+ 'name' => 'FaceUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '传入人脸图片URL地址。'."\n"
+ .'> FaceUrl和FaceBase64需选择传入其中一个。', 'type' => 'string', 'required' => false, 'example' => 'https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg'],
],
[
- 'name' => 'ReturnFaces',
+ 'name' => 'FaceBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '指匹配阈值之上存在多个人脸时,可通过该参数自定义返回数量'."\n"
- .'- 默认返回1'."\n"
- .'- 最大支持5',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '传入人脸图片的Base64格式编码。'."\n"
+ .'> FaceUrl和FaceBase64需选择传入其中一个。', 'type' => 'string', 'required' => false, 'example' => '/9j/4AAQSkZJRgABAQAASxxxxxxx'],
],
],
'responses' => [
@@ -1667,119 +1581,72 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Result' => [
- 'description' => '返回结果。',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '8FC3D6AC-9FED-4311-8DA7-C4BF47D9F260'],
+ 'Code' => ['description' => '返回码:返回200表示请求成功,其他均为失败。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'ResultObject' => [
+ 'description' => '返回的结果信息。',
'type' => 'object',
'properties' => [
- 'FacePassed' => [
- 'description' => '认证最终结果,取值:'."\n"
- .'- Y:通过'."\n"
- .'- N:不通过',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'FaceComparisonScore' => [
- 'description' => '当验证模式为1或2时返回1:1验证的比对分'."\n"
- .'比对分取值范围0~100。',
- 'type' => 'string',
- 'example' => '98',
- ],
- 'DuplicateFace' => [
- 'description' => '检测存在重复人脸时返回检索到的人脸库人脸ID和UserID。',
- 'type' => 'string',
- 'example' => '['."\n"
- .' {'."\n"
- .' "faceGroupCode": "sg7****uzt",'."\n"
- .' "faceId": "f5a921*******9e792ec84c8f0ca592a",'."\n"
- .' "merchantUserId": "fa****01"'."\n"
- .' }'."\n"
- .']',
- ],
- 'FaceRegistrationResult' => [
- 'description' => '人脸注册结果 '."\n"
- .'- 0 失败 '."\n"
- .'- 1成功',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'FaceRegistrationId' => [
- 'description' => '仅当客户设置自动注册,人脸注册成功时返回对应FACEID。',
- 'type' => 'string',
- 'example' => '9e792ec84c8f0ca592a',
- ],
- 'FaceAttack' => [
- 'description' => '采集人脸是否涉及活体攻击,攻击为Y,否则为N。'."\n"
- .'当开启静默活体检测时返回',
- 'type' => 'string',
- 'example' => 'N',
- ],
- 'FaceAttackScore' => [
- 'description' => '人脸静默活体检测攻击的概率。取值范围0~100。'."\n"
- .'当开启静默活体检测时返回',
- 'type' => 'string',
- 'example' => '99',
- ],
- 'FaceAge' => [
- 'description' => '人脸预测的参考年龄,可能存在预测失败无法返回的情况。',
- 'type' => 'string',
- 'example' => '30',
- ],
- 'FaceGender' => [
- 'description' => '人脸图片预测的性别,可能存在预测失败无法返回的情况。'."\n"
- .'- M:男'."\n"
- .'- F:女',
- 'type' => 'string',
- 'example' => 'M',
- ],
- 'SubCode' => [
- 'description' => '认证结果描述。更多信息,请参ResultObject.SubCode错误码说明。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识。',
- 'type' => 'string',
- 'example' => '4ab0b***cbde97',
+ 'Result' => ['description' => '风险结果:'."\n"
+ ."\n"
+ .'- **0**:低风险'."\n"
+ .'- **1**:高风险'."\n"
+ .'- **2**:可疑', 'type' => 'string', 'example' => '1'],
+ 'RiskTag' => ['description' => '风险标签。多个标签使用半角逗号(,)隔开,包括:'."\n"
+ ."\n"
+ .'- **SuspectDeepForgery** 疑似深度伪造 '."\n"
+ .'- **SuspectPSFace** 疑似合成攻击 '."\n"
+ .'- **SuspectWarterMark** 疑似存在水印 '."\n"
+ .'- **SuspectTemple** 疑似模板攻击 '."\n"
+ .'- **SuspectAIGCFace** 疑似生成人脸 '."\n"
+ .'- **SuspectRemake** 疑似翻拍人脸', 'type' => 'string', 'example' => 'SuspectDeepForgery,SuspectWarterMark'],
+ 'RiskScore' => [
+ 'description' => '风险分值Map。',
+ 'type' => 'object',
+ 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n"
+ .' "SuspectPSFace": "0.9796",'."\n"
+ .' "SuspectRemake": "0.0000",'."\n"
+ .' "SuspectDeepForgery": "0.9500",'."\n"
+ .' "SuspectAIGCFace": "0.0001",'."\n"
+ .' "SuspectWaterMark": "0.0000"'."\n"
+ .' }', 'description' => '后端接收参数名。'],
],
+ 'TransactionId' => ['type' => 'string'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '人脸Deepfake检测',
+ 'description' => '传入人脸图片,通过算法检测是否存在深度伪造风险。包含AIGC生成人脸、深度伪造换脸、模板人脸、翻拍人脸等风险场景,输出风险标签与置信度。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeepfakeDetectIntl'],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"FacePassed\\": \\"Y\\",\\n \\"FaceComparisonScore\\": \\"98\\",\\n \\"DuplicateFace\\": \\"[\\\\n {\\\\n \\\\\\"faceGroupCode\\\\\\": \\\\\\"sg7****uzt\\\\\\",\\\\n \\\\\\"faceId\\\\\\": \\\\\\"f5a921*******9e792ec84c8f0ca592a\\\\\\",\\\\n \\\\\\"merchantUserId\\\\\\": \\\\\\"fa****01\\\\\\"\\\\n }\\\\n]\\",\\n \\"FaceRegistrationResult\\": 0,\\n \\"FaceRegistrationId\\": \\"9e792ec84c8f0ca592a\\",\\n \\"FaceAttack\\": \\"N\\",\\n \\"FaceAttackScore\\": \\"99\\",\\n \\"FaceAge\\": \\"30\\",\\n \\"FaceGender\\": \\"M\\",\\n \\"SubCode\\": \\"200\\",\\n \\"TransactionId\\": \\"4ab0b***cbde97\\"\\n }\\n}","type":"json"}]',
- 'title' => '纯服务端活体人脸防重注册(FACE_IDU_MIN)',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DeepfakeDetectIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8FC3D6AC-9FED-4311-8DA7-C4BF47D9F260\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"Result\\": \\"1\\",\\n \\"RiskTag\\": \\"SuspectDeepForgery,SuspectWarterMark\\",\\n \\"RiskScore\\": {\\n \\"key\\": \\"{\\\\n \\\\\\"SuspectPSFace\\\\\\": \\\\\\"0.9796\\\\\\",\\\\n \\\\\\"SuspectRemake\\\\\\": \\\\\\"0.0000\\\\\\",\\\\n \\\\\\"SuspectDeepForgery\\\\\\": \\\\\\"0.9500\\\\\\",\\\\n \\\\\\"SuspectAIGCFace\\\\\\": \\\\\\"0.0001\\\\\\",\\\\n \\\\\\"SuspectWaterMark\\\\\\": \\\\\\"0.0000\\\\\\"\\\\n }\\"\\n },\\n \\"TransactionId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
'DeepfakeDetectIntlStream' => [
- 'summary' => 'ID Verification 提供了人脸Deepfake检测能力,可以通过接口的形式单独接入。',
'path' => '',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -1791,48 +1658,29 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthNYJI62',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthNYJI62'],
'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => '要接入的产品方案。'."\n"
- .'取值:FACE_DEEPFAKE',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'FACE_DEEPFAKE',
- ],
+ 'schema' => ['description' => '要接入的产品方案。'."\n"
+ .'取值:FACE_DEEPFAKE', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'FACE_DEEPFAKE'],
],
[
'name' => 'SceneCode',
'in' => 'formData',
- 'schema' => [
- 'description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。'."\n"
- ."\n"
- .'支持长度为10位的字母、数字或下划线的组合。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123****123',
- ],
+ 'schema' => ['description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。'."\n"
+ ."\n"
+ .'支持长度为10位的字母、数字或下划线的组合。', 'type' => 'string', 'required' => false, 'example' => '123****123'],
],
[
'name' => 'MerchantBizId',
'in' => 'formData',
- 'schema' => [
- 'description' => '商户请求的唯一标识,值为32位长度的字母数字组合。'."\n"
- ."\n"
- .'其中前几位字符由商户自定义的简称组成,中间部分可以包含一段时间,而后段可以采用随机或递增序列。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'e0c34a***353888',
- ],
+ 'schema' => ['description' => '商户请求的唯一标识,值为32位长度的字母数字组合。'."\n"
+ ."\n"
+ .'其中前几位字符由商户自定义的简称组成,中间部分可以包含一段时间,而后段可以采用随机或递增序列。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'e0c34a***353888'],
],
[
'name' => 'FaceInputType',
@@ -1847,43 +1695,24 @@
.'视频处理时间较久,建议超时时间设置>3S。',
'type' => 'string',
'required' => false,
- 'enumValueTitles' => [
- 'IMAGE' => 'IMAGE',
- 'VIDEO' => 'VIDEO',
- ],
+ 'enumValueTitles' => ['IMAGE' => 'IMAGE', 'VIDEO' => 'VIDEO'],
'example' => 'IMAGE',
],
],
[
'name' => 'FaceUrl',
'in' => 'formData',
- 'schema' => [
- 'description' => '传入人脸图片URL地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg',
- ],
+ 'schema' => ['description' => '传入人脸图片URL地址。', 'type' => 'string', 'required' => false, 'example' => 'https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg'],
],
[
'name' => 'FaceBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '传入人脸图片的Base64格式编码,视频格式建议通过流方式传入。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/9j/4AAQSkZJRgABAQAASxxxxxxx',
- ],
+ 'schema' => ['description' => '传入人脸图片的Base64格式编码,视频格式建议通过流方式传入。', 'type' => 'string', 'required' => false, 'example' => '/9j/4AAQSkZJRgABAQAASxxxxxxx'],
],
[
'name' => 'FaceFile',
'in' => 'formData',
- 'schema' => [
- 'description' => '图片输入流。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '-',
- 'isFileTransferUrl' => true,
- ],
+ 'schema' => ['description' => '图片输入流。', 'type' => 'string', 'required' => false, 'example' => '-', 'isFileTransferUrl' => true],
],
],
'responses' => [
@@ -1893,160 +1722,213 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'ResultObject' => [
'description' => '返回的结果信息。',
'type' => 'object',
'properties' => [
- 'Result' => [
- 'description' => '风险结果:'."\n"
- ."\n"
- .'- **0**:低风险'."\n"
- .'- **1**:高风险'."\n"
- .'- **2**:可疑',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'RiskTag' => [
- 'description' => '风险标签。多个标签使用半角逗号(,)隔开,包括:'."\n"
- ."\n"
- .'- SuspectDeepForgery:疑似深度伪造'."\n"
- .'- SuspectPSFace:疑似合成攻击'."\n"
- .'- SuspectTemple:疑似模板攻击'."\n"
- .'- SuspectRemake:疑似呈现攻击',
- 'type' => 'string',
- 'example' => 'SuspectDeepForgery',
- ],
+ 'Result' => ['description' => '风险结果:'."\n"
+ ."\n"
+ .'- **0**:低风险'."\n"
+ .'- **1**:高风险'."\n"
+ .'- **2**:可疑', 'type' => 'string', 'example' => '1'],
+ 'RiskTag' => ['description' => '风险标签。多个标签使用半角逗号(,)隔开,包括:'."\n"
+ ."\n"
+ .'- SuspectDeepForgery:疑似深度伪造'."\n"
+ .'- SuspectPSFace:疑似合成攻击'."\n"
+ .'- SuspectTemple:疑似模板攻击'."\n"
+ .'- SuspectRemake:疑似呈现攻击', 'type' => 'string', 'example' => 'SuspectDeepForgery'],
'RiskScore' => [
'description' => '风险分值Map。',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "SuspectPSFace": "0.9796",'."\n"
- .' "SuspectRemake": "0.0000",'."\n"
- .' "SuspectDeepForgery": "0.9500",'."\n"
- .' "SuspectAIGCFace": "0.0001"'."\n"
- .' }',
- 'description' => '命中风险时返回对应标签分数',
- ],
+ 'additionalProperties' => ['type' => 'string', 'example' => '{'."\n"
+ .' "SuspectPSFace": "0.9796",'."\n"
+ .' "SuspectRemake": "0.0000",'."\n"
+ .' "SuspectDeepForgery": "0.9500",'."\n"
+ .' "SuspectAIGCFace": "0.0001"'."\n"
+ .' }', 'description' => '命中风险时返回对应标签分数'],
],
+ 'TransactionId' => ['type' => 'string'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"Result\\": \\"1\\",\\n \\"RiskTag\\": \\"SuspectDeepForgery\\",\\n \\"RiskScore\\": {\\n \\"key\\": \\"{\\\\n \\\\\\"SuspectPSFace\\\\\\": \\\\\\"0.9796\\\\\\",\\\\n \\\\\\"SuspectRemake\\\\\\": \\\\\\"0.0000\\\\\\",\\\\n \\\\\\"SuspectDeepForgery\\\\\\": \\\\\\"0.9500\\\\\\",\\\\n \\\\\\"SuspectAIGCFace\\\\\\": \\\\\\"0.0001\\\\\\"\\\\n }\\"\\n }\\n }\\n}","type":"json"}]',
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '人脸Deepfake检测(文件流)',
+ 'summary' => 'ID Verification 提供了人脸Deepfake检测能力,可以通过接口的形式单独接入。',
'description' => '传入人脸图片,通过算法检测是否存在深度伪造风险。包含AIGC生成人脸、深度伪造换脸、模板人脸、翻拍人脸等风险场景,输出风险标签与置信度。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DeepfakeDetectIntlStream',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"Result\\": \\"1\\",\\n \\"RiskTag\\": \\"SuspectDeepForgery\\",\\n \\"RiskScore\\": {\\n \\"key\\": \\"{\\\\n \\\\\\"SuspectPSFace\\\\\\": \\\\\\"0.9796\\\\\\",\\\\n \\\\\\"SuspectRemake\\\\\\": \\\\\\"0.0000\\\\\\",\\\\n \\\\\\"SuspectDeepForgery\\\\\\": \\\\\\"0.9500\\\\\\",\\\\n \\\\\\"SuspectAIGCFace\\\\\\": \\\\\\"0.0001\\\\\\"\\\\n }\\"\\n },\\n \\"TransactionId\\": \\"\\"\\n }\\n}","type":"json"}]',
],
- 'DeepfakeDetectIntl' => [
- 'summary' => '人脸Deepfake检测服务的API。',
+ 'DeleteFaceGroup' => [
+ 'summary' => '删除人脸库',
'path' => '',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthNYJI62',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
- 'name' => 'ProductCode',
- 'in' => 'query',
+ 'name' => 'Id',
+ 'in' => 'formData',
+ 'schema' => ['description' => '主键ID', 'type' => 'string', 'required' => true, 'example' => '16681'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '要接入的产品方案。取值:**FACE_DEEPFAKE**',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'FACE_DEEPFAKE',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '595E387B-3F0E-5C52-BD02-8EFE63D41FD5'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'Data' => ['description' => '返回结果。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
],
],
- [
- 'name' => 'SceneCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。支持长度为10位的字母、数字或下划线的组合。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1234567890',
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除人脸库',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DeleteFaceGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"595E387B-3F0E-5C52-BD02-8EFE63D41FD5\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": 1\\n}","type":"json"}]',
+ ],
+ 'DeleteFaceRecord' => [
+ 'summary' => '删除人脸记录',
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'MerchantBizId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '商户请求的唯一标识,值为32位长度的字母数字组合。其中前几位字符由商户自定义的简称组成,中间部分可以包含一段时间,而后段可以采用随机或递增序列。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e0c34a77f5ac40a5aa5e6ed20c******',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
+ ],
+ 'parameters' => [
[
- 'name' => 'FaceInputType',
- 'in' => 'query',
+ 'name' => 'Id',
+ 'in' => 'formData',
+ 'schema' => ['description' => '主键ID', 'type' => 'string', 'required' => false, 'example' => '344537'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '传入**IMAGE**,表示人脸图像。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'IMAGE',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'Data' => ['description' => '返回结果。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ ],
],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除人脸记录',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DeleteFaceRecord',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": 1\\n}","type":"json"}]',
+ ],
+ 'DeleteFaceRecordV2' => [
+ 'path' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'FaceUrl',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREcloudauthCS0SDG'],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'MerchantUserId',
'in' => 'query',
- 'schema' => [
- 'description' => '传入人脸图片URL地址。'."\n"
- .'> FaceUrl和FaceBase64需选择传入其中一个。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg',
- ],
+ 'schema' => ['description' => '用户唯一标识,与 AddFaceRecord 入库时保持一致;入库若未传入,可使用默认图片名', 'type' => 'string', 'required' => true, 'example' => '1231****'],
],
[
- 'name' => 'FaceBase64',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '传入人脸图片的Base64格式编码。'."\n"
- .'> FaceUrl和FaceBase64需选择传入其中一个。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '/9j/4AAQSkZJRgABAQAASxxxxxxx',
- ],
+ 'name' => 'FaceGroupCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '指定人脸库编码;不传则删除该用户在所有人脸库中的人脸数据', 'type' => 'string', 'required' => false, 'example' => 'sgl****7uc'],
],
],
'responses' => [
@@ -2056,217 +1938,113 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '8FC3D6AC-9FED-4311-8DA7-C4BF47D9F260',
- ],
- 'Code' => [
- 'description' => '返回码:返回200表示请求成功,其他均为失败。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'ResultObject' => [
- 'description' => '返回的结果信息。',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'Result' => [
- 'description' => '风险结果:'."\n"
- ."\n"
- .'- **0**:低风险'."\n"
- .'- **1**:高风险'."\n"
- .'- **2**:可疑',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'RiskTag' => [
- 'description' => '风险标签。多个标签使用半角逗号(,)隔开,包括:'."\n"
- ."\n"
- .'- **SuspectDeepForgery** 疑似深度伪造 '."\n"
- .'- **SuspectPSFace** 疑似合成攻击 '."\n"
- .'- **SuspectWarterMark** 疑似存在水印 '."\n"
- .'- **SuspectTemple** 疑似模板攻击 '."\n"
- .'- **SuspectAIGCFace** 疑似生成人脸 '."\n"
- .'- **SuspectRemake** 疑似翻拍人脸',
- 'type' => 'string',
- 'example' => 'SuspectDeepForgery,SuspectWarterMark',
- ],
- 'RiskScore' => [
- 'description' => '风险分值Map。',
- 'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "SuspectPSFace": "0.9796",'."\n"
- .' "SuspectRemake": "0.0000",'."\n"
- .' "SuspectDeepForgery": "0.9500",'."\n"
- .' "SuspectAIGCFace": "0.0001",'."\n"
- .' "SuspectWaterMark": "0.0000"'."\n"
- .' }',
- 'description' => '后端接收参数名。',
- ],
- ],
+ 'Deleted' => ['description' => '删除结果:Y=成功,N=失败', 'type' => 'string', 'example' => 'Y'],
+ 'DeletedGroupCodes' => ['description' => '实际执行删除的人脸库编码列表(逗号分隔);未传 FaceGroupCode 时返回所有已删除的库', 'type' => 'string', 'example' => 'wqe***,dsa***'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '删除人脸记录',
+ 'summary' => '删除人脸记录',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"8FC3D6AC-9FED-4311-8DA7-C4BF47D9F260\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"Result\\": \\"1\\",\\n \\"RiskTag\\": \\"SuspectDeepForgery,SuspectWarterMark\\",\\n \\"RiskScore\\": {\\n \\"key\\": \\"{\\\\n \\\\\\"SuspectPSFace\\\\\\": \\\\\\"0.9796\\\\\\",\\\\n \\\\\\"SuspectRemake\\\\\\": \\\\\\"0.0000\\\\\\",\\\\n \\\\\\"SuspectDeepForgery\\\\\\": \\\\\\"0.9500\\\\\\",\\\\n \\\\\\"SuspectAIGCFace\\\\\\": \\\\\\"0.0001\\\\\\",\\\\n \\\\\\"SuspectWaterMark\\\\\\": \\\\\\"0.0000\\\\\\"\\\\n }\\"\\n }\\n }\\n}","type":"json"}]',
- 'title' => '人脸Deepfake检测',
- 'description' => '传入人脸图片,通过算法检测是否存在深度伪造风险。包含AIGC生成人脸、深度伪造换脸、模板人脸、翻拍人脸等风险场景,输出风险标签与置信度。',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Deleted\\": \\"Y\\",\\n \\"DeletedGroupCodes\\": \\"wqe***,dsa***\\"\\n }\\n}","type":"json"}]',
],
- 'FaceGuardRisk' => [
- 'summary' => '国际人脸保镖纯服务端接口',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'DeleteVerifyResult' => [
+ 'summary' => '删除用户认证记录相关数据',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '253422',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthCS0SDG',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
- 'name' => 'DeviceToken',
- 'in' => 'query',
- 'schema' => [
- 'description' => '通过人脸保镖SDK获取deviceToken',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Tk9SSUQuMS*****************ZDNmNWY5NzQxOW1o',
- ],
- ],
- [
- 'name' => 'MerchantBizId',
+ 'name' => 'TransactionId',
'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0c83ce0101d34eff886b1f7d1cdef67f',
- ],
+ 'schema' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'required' => false, 'example' => '4ab0b***cbde97'],
],
[
- 'name' => 'ProductCode',
+ 'name' => 'DeleteAfterQuery',
'in' => 'query',
- 'schema' => [
- 'description' => '产品code(固定值:FACE_GUARD)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'FACE_GUARD',
- ],
+ 'schema' => ['description' => '删除数据时是否依赖查询接口', 'type' => 'string', 'required' => false, 'example' => 'Y / N'],
],
[
- 'name' => 'BizId',
+ 'name' => 'DeleteType',
'in' => 'query',
- 'schema' => [
- 'description' => '客户业务ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'LMALL20******001',
- ],
+ 'schema' => ['description' => '删除数据的类型', 'type' => 'string', 'required' => false, 'example' => 'Img / Text / All'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '595E387B-3F0E-5C52-BD02-8EFE63D41FD5',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '本次请求的ID', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果。',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'RiskTags' => [
- 'description' => '设备风险标签。'."\n"
- ."\n"
- .'- 多个设备风险标签以半角逗号(,)分隔,如“ROOT,VPN,HOOK”,'."\n"
- ."\n"
- .'- 如需了解更多设备风险标签及其含义,请参见官方文档人脸保镖标签说明。',
- 'type' => 'string',
- 'example' => 'ROOT,VPN,HOOK',
- ],
- 'RiskExtends' => [
- 'description' => '拓展信息,JSON格式。(按租户需求定制返回)',
- 'type' => 'string',
- 'example' => '默认为空',
- ],
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识。',
- 'type' => 'string',
- 'example' => 'hk573be80f944d95ac812e019e3655a8',
- ],
- 'GuardRiskScore' => [
- 'description' => '人脸保镖算法预测的设备风险可能性,分数越高代表设备风险越高。'."\n"
- ."\n"
- .'分值取值:0~100。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0',
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '4ab0b***cbde97'],
+ 'DeleteResult' => ['description' => '删除的结果。其中Y表示删除成功,N表示删除失败', 'type' => 'string', 'example' => 'Y/N'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"595E387B-3F0E-5C52-BD02-8EFE63D41FD5\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"RiskTags\\": \\"ROOT,VPN,HOOK\\",\\n \\"RiskExtends\\": \\"默认为空\\",\\n \\"TransactionId\\": \\"hk573be80f944d95ac812e019e3655a8\\",\\n \\"GuardRiskScore\\": 0\\n }\\n}","type":"json"}]',
- 'title' => '设备助手',
- ],
- 'FaceCompare' => [
- 'summary' => '通过人脸识别技术,可以对传入的两张人脸图片进行比对验证,返回人脸对比结果和相似度分值。',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\",\\n \\"DeleteResult\\": \\"Y/N\\"\\n }\\n}","type":"json"}]',
+ 'title' => '删除认证记录',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteVerifyResult'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DeleteVerifyResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'DocOcr' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -2278,80 +2056,81 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeCode' => '165986',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauth0KJCLK',
- ],
+ 'abilityTreeCode' => '181950',
+ 'abilityTreeNodes' => ['FEATUREcloudauthCW0JNH'],
],
'parameters' => [
[
'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一', 'type' => 'string', 'required' => false, 'example' => 'dso9322***dsjsd22'],
],
[
- 'name' => 'SourceFacePicture',
+ 'name' => 'MerchantUserId',
+ 'in' => 'query',
+ 'schema' => ['description' => '业务中自定义的用户ID,请保持唯一', 'type' => 'string', 'required' => false, 'example' => '123456789'],
+ ],
+ [
+ 'name' => 'IdOcrPictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '人像照片Base64编码。'."\n"
- ."\n"
- .'说明'."\n"
- .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
- .'- SourceFacePicture与SourceFacePictureUrl二选一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'schema' => ['description' => '卡证图片Base64编码。'."\n"
+ ."\n"
+ .'如果您选择IdOcrPictureBase64(照片Base64编码)方式传入证件照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
],
[
- 'name' => 'SourceFacePictureUrl',
+ 'name' => 'IdOcrPictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '人脸图片的HTTPS或HTTP地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://***face1.jpeg',
- ],
+ 'schema' => ['description' => '证件正面图片URL', 'type' => 'string', 'required' => false, 'example' => 'https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n"],
],
[
- 'name' => 'TargetFacePicture',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '底库照片Base64编码。'."\n"
- ."\n"
- .'说明'."\n"
- .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
- .'- TargetFacePicture与TargetFacePictureUrl二选一。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'name' => 'DocType',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件类型', 'type' => 'string', 'required' => false, 'example' => '00000006'],
],
[
- 'name' => 'TargetFacePictureUrl',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '底库人脸图片的HTTPS或HTTP地址。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://***face2.jpeg',
- ],
+ 'schema' => ['description' => '产品code', 'type' => 'string', 'required' => false, 'example' => '产品方案类型ID_OCR_MIN'],
],
[
- 'name' => 'FacePictureQualityCheck',
+ 'name' => 'Ocr',
'in' => 'query',
- 'schema' => [
- 'title' => '是否开启传入人脸图片质量检测',
- 'description' => '是否开启传入人脸图片质量检测',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'N',
- ],
+ 'schema' => ['description' => '是否进行证件OCR'."\n"
+ .'- T:表示需要证件OCR'."\n"
+ .'- F:表示不需要', 'type' => 'string', 'required' => false, 'example' => 'T'],
+ ],
+ [
+ 'name' => 'IdFaceQuality',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否进行证脸质量检测'."\n"
+ .'- T:表示需要检测'."\n"
+ .'- F:表示需要检测(默认F)', 'type' => 'string', 'required' => false, 'example' => 'F'],
+ ],
+ [
+ 'name' => 'Spoof',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启防伪检测'."\n"
+ .'- T:表示开启防伪'."\n"
+ .'- F:表示关闭', 'type' => 'string', 'required' => false, 'example' => 'F'],
+ ],
+ [
+ 'name' => 'IdThreshold',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义OCR质量检测阈值模式:'."\n"
+ ."\n"
+ .'- 0:系统默认'."\n"
+ .'- 1:严格模式'."\n"
+ .'- 2:宽松模式'."\n"
+ .'- 3(默认):关闭质量检测', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'CardSide',
+ 'in' => 'query',
+ 'schema' => ['description' => '区分证件国徽面和人像面 ,不传默认人像面 。'."\n"
+ ."\n"
+ .'- OCR_ID_FACE (默认):人像面'."\n"
+ ."\n"
+ .'- OCR_ID_NATIONAL_EMBLEM :国徽面', 'type' => 'string', 'required' => false, 'example' => 'OCR_ID_FACE'],
],
],
'responses' => [
@@ -2361,197 +2140,208 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1',
- ],
- 'Code' => [
- 'description' => '返回码。'."\n"
- ."\n"
- .'200:表示成功。'."\n"
- .'其它:表示错误码。错误码详情,请参见错误码。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果。',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识。',
- 'type' => 'string',
- 'example' => '08573be80f944d95ac812e019e3655a8',
- ],
- 'Passed' => [
- 'description' => '认证是否通过。'."\n"
- ."\n"
- .'- Y:通过。'."\n"
- .'- N:不通过。',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'FaceComparisonScore' => [
- 'description' => '认证过程中所提交的人脸照片和人脸留底图片上人脸的比对分,取值范围:**0**~**100**。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '98',
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '08573be80f944d95ac812e019e3655a8'],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过'."\n"
+ .'- N:不通过', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '200'],
+ 'ExtIdInfo' => ['description' => '卡证识别结果 只有当接口响应成功时返回', 'type' => 'string', 'example' => '{'."\n"
+ .' "idFaceQualityScore": 98.0'."\n"
+ .' "ocrIdInfo": {'."\n"
+ .' "expiryDate": "",'."\n"
+ .' "originOfIssue": "公安部出入境管理局",'."\n"
+ .' "englishName": "LI SI",'."\n"
+ .' "sex": "男",'."\n"
+ .' "name": "李四",'."\n"
+ .' "idNumber": "H11111112",'."\n"
+ .' "issueDate": "2013-01-02",'."\n"
+ .' "birthDate": "1990-02-21"'."\n"
+ .' },'."\n"
+ .' "spoofInfo": {'."\n"
+ .' "spoofResult": "Y",'."\n"
+ .' "spoofType": ['."\n"
+ .' "SCREEN_REMARK"'."\n"
+ .' ]'."\n"
+ .' }'."\n"
+ .'}'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '中国卡证OCR识别(ID_OCR_MIN)',
+ 'summary' => '卡证OCR纯服务端能力Api',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DocOcr'],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"Passed\\": \\"Y\\",\\n \\"FaceComparisonScore\\": 98\\n }\\n}","type":"json"}]',
- 'title' => '人脸比对',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DocOcr',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"idFaceQualityScore\\\\\\": 98.0\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"expiryDate\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"originOfIssue\\\\\\": \\\\\\"公安部出入境管理局\\\\\\",\\\\n \\\\\\"englishName\\\\\\": \\\\\\"LI SI\\\\\\",\\\\n \\\\\\"sex\\\\\\": \\\\\\"男\\\\\\",\\\\n \\\\\\"name\\\\\\": \\\\\\"李四\\\\\\",\\\\n \\\\\\"idNumber\\\\\\": \\\\\\"H11111112\\\\\\",\\\\n \\\\\\"issueDate\\\\\\": \\\\\\"2013-01-02\\\\\\",\\\\n \\\\\\"birthDate\\\\\\": \\\\\\"1990-02-21\\\\\\"\\\\n },\\\\n \\\\\\"spoofInfo\\\\\\": {\\\\n \\\\\\"spoofResult\\\\\\": \\\\\\"Y\\\\\\",\\\\n \\\\\\"spoofType\\\\\\": [\\\\n \\\\\\"SCREEN_REMARK\\\\\\"\\\\n ]\\\\n }\\\\n}\\"\\n }\\n}","type":"json"}]',
],
- 'FaceCrossCompareIntl' => [
- 'summary' => '人脸交叉比对',
+ 'DocOcrMax' => [
+ 'summary' => '全球证件ocr识别接口',
'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthCW0JNH', 'FEATUREcloudauthHOSIED', 'FEATUREcloudauthWSJE4H'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
'name' => 'ProductCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '要接入的产品方案。取值:'."\n"
- .'FACE_CROSS_COMPARE',
- 'type' => 'string',
- 'required' => true,
- 'example' => ' FACE_CROSS_COMPARE',
- ],
+ 'in' => 'formData',
+ 'schema' => ['description' => '要接入的产品方案。'."\n"
+ ."\n"
+ .'取值ID_OCR_MAX', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ID_OCR_MAX'],
],
[
'name' => 'SceneCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '自定义业务场景ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1234567890',
- ],
+ 'in' => 'formData',
+ 'schema' => ['description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录。'."\n"
+ ."\n"
+ .'支持长度为10位的字母、数字和下划线的组合。', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
],
[
'name' => 'MerchantBizId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e0c34a77f5ac40a5aa5e6ed20c35****',
- ],
+ 'in' => 'formData',
+ 'schema' => ['description' => '您自定义的业务唯一标识,用于后续定位排查问题。'."\n"
+ ."\n"
+ .'支持长度为32位的字母和数字的组合,请确保唯一。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c******'],
],
[
- 'name' => 'CompareModel',
- 'in' => 'query',
- 'schema' => [
- 'description' => '比对模式'."\n"
- .'- 0-链式比对(默认):A:B且B:C'."\n"
- .'- 1-循环比对:A:B且B:C且C:A',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'name' => 'MerchantUserId',
+ 'in' => 'formData',
+ 'schema' => ['description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。'."\n"
+ ."\n"
+ .'强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '123456789'],
],
[
- 'name' => 'SourceAFacePicture',
+ 'name' => 'IdOcrPictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '人像照片Base64编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'schema' => ['description' => '卡证图片Base64编码。'."\n"
+ ."\n"
+ .'如果您选择IdOcrPictureBase64(照片Base64编码)方式传入证件照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
],
[
- 'name' => 'SourceAFacePictureUrl',
- 'in' => 'query',
- 'schema' => [
- 'description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://www.xxx.com/1.jpg',
- ],
+ 'name' => 'IdOcrPictureUrl',
+ 'in' => 'formData',
+ 'schema' => ['description' => '卡证图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://***********.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n"],
],
[
- 'name' => 'SourceBFacePicture',
+ 'name' => 'OcrModel',
'in' => 'formData',
- 'schema' => [
- 'description' => '人像照片Base64编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64'."\n",
- ],
+ 'schema' => ['description' => 'OCR识别模式:'."\n"
+ ."\n"
+ .'- 0:通用证件识别模式(默认)'."\n"
+ ."\n"
+ .'- 1:证件自动分类模式'."\n"
+ ."\n"
+ .'- 2:证件自动分类+通用识别模式', 'type' => 'string', 'required' => false, 'example' => '0'],
],
[
- 'name' => 'SourceBFacePictureUrl',
- 'in' => 'query',
- 'schema' => [
- 'description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://www.xxx.com/1.jpg',
- ],
+ 'name' => 'DocType',
+ 'in' => 'formData',
+ 'schema' => ['description' => '证件类型。'."\n"
+ .'- 格式:国家(地区)代码+证件类型缩写+页面(可选)'."\n"
+ ."\n"
+ .'说明'."\n"
+ .'- OcrModel = 0:DocType必传,指定证件类型,现有逻辑不变'."\n"
+ .'- OcrModel = 1或2:DocType需要为空。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'CNSSC01'],
],
[
- 'name' => 'SourceCFacePicture',
+ 'name' => 'Prompt',
'in' => 'formData',
- 'schema' => [
- 'description' => '人像照片Base64编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64'."\n",
- ],
+ 'schema' => ['description' => '><warning>该字段已废弃></warning>', 'type' => 'string', 'required' => false, 'example' => '已废弃'],
],
[
- 'name' => 'SourceCFacePictureUrl',
- 'in' => 'query',
- 'schema' => [
- 'description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://www.xxx.com/1.jpg',
- ],
+ 'name' => 'Spoof',
+ 'in' => 'formData',
+ 'schema' => ['description' => '<warning>该字段已废弃></warning>', 'type' => 'string', 'required' => false, 'example' => '已废弃'],
],
[
- 'name' => 'FaceVerifyThreshold',
+ 'name' => 'IdThreshold',
+ 'in' => 'formData',
+ 'schema' => ['description' => '自定义OCR质量检测阈值模式:'."\n"
+ ."\n"
+ .'- 0:系统默认'."\n"
+ .'- 1:严格模式'."\n"
+ .'- 2:宽松模式'."\n"
+ .'- 3(默认):关闭质量检测', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'IdSpoof',
+ 'in' => 'formData',
+ 'schema' => ['description' => '是否开启证件防伪功能:'."\n"
+ ."\n"
+ .'- T:开启'."\n"
+ ."\n"
+ .'- F(默认):不开启', 'type' => 'string', 'required' => false, 'example' => 'F'],
+ ],
+ [
+ 'name' => 'DocPage',
+ 'in' => 'formData',
+ 'schema' => ['description' => '期望识别的页面'."\n"
+ ."\n"
+ .'- 01(默认):证件人像面'."\n"
+ ."\n"
+ .'- 02:证件背面', 'type' => 'string', 'required' => false, 'example' => '01'],
+ ],
+ [
+ 'name' => 'OcrValueStandard',
'in' => 'query',
- 'schema' => [
- 'description' => '人脸匹配阈值。此参数为系统预留参数,暂不支持自定义。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '-',
- ],
+ 'schema' => ['title' => 'OcrValueStandard是否需要开启OCR识别关键字段标准化; 0否(默认) 1是', 'description' => '是否需要开启OCR识别关键字段标准化'."\n"
+ .'- 0:否 (默认) '."\n"
+ .'- 1:是', 'type' => 'string', 'required' => false, 'example' => '0', 'default' => '0'],
+ ],
+ [
+ 'name' => 'Authorize',
+ 'in' => 'formData',
+ 'schema' => ['description' => '是否启用权威数据源核验以增强证件防伪能力。'."\n"
+ ."\n"
+ .'- **T**:启用'."\n"
+ ."\n"
+ .'- **F**:不启用(默认值)'."\n"
+ ."\n"
+ .'> '."\n"
+ .'> - **适用证件类型**:中国居民身份证(CHN01001)、中国内地驾驶证(CHN02001)。'."\n"
+ .'> - **数据传输声明**:启用此参数,即表示同意将用户的姓名和证件号码传输至中国内地权威数据源进行一致性校验。'."\n"
+ .'> - **性能影响**:启用后,接口响应时间将增加约 1-2 秒。建议调整超时时间设置。', 'type' => 'string', 'required' => false, 'example' => 'T'."\n"],
],
],
'responses' => [
@@ -2561,77 +2351,67 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '130A2C10-B9EE-4D84-88E3-5384FF039795',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果。',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'FacePassed' => [
- 'description' => '认证最终结果,取值:'."\n"
- .'- Y:通过'."\n"
- .'- N:不通过',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'FaceComparisonScoreA2B' => [
- 'description' => 'A比B 比对分取值范围0~1。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.9999999999999999',
- ],
- 'FaceComparisonScoreB2C' => [
- 'description' => 'B比C 比对分取值范围0~1。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.9999999999999999',
- ],
- 'FaceComparisonScoreC2A' => [
- 'description' => 'C比A 比对分取值范围0~1。',
- 'type' => 'number',
- 'format' => 'double',
- 'example' => '0.9999999999999999',
- ],
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识。',
- 'type' => 'string',
- 'example' => '4ab0b***cbde97',
- ],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过。'."\n"
+ .'- N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '子结果码。', 'type' => 'string', 'example' => '200'],
+ 'ExtIdInfo' => ['description' => '卡证识别结果 只有当接口响应成功时返回', 'type' => 'string', 'example' => '{'."\n"
+ .' "docType": "PPTW01",'."\n"
+ .' "ocrIdInfo": {'."\n"
+ .' "passportNo": "36*******",'."\n"
+ .' "expiryDate": "2032/02/10",'."\n"
+ .' "placeOfBirth": "TAIWAN",'."\n"
+ .' "surname": "CHEN",'."\n"
+ .' "givenname": "LIN-CHUN",'."\n"
+ .' "countryCode": "TWN",'."\n"
+ .' "sex": "F",'."\n"
+ .' "personalNo": "S22********",'."\n"
+ .' "issueDate": "2022/02/10",'."\n"
+ .' "birthDate": "1988/10/04"'."\n"
+ .' }'."\n"
+ .'}'],
+ 'TransactionId' => ['description' => '认证ID', 'type' => 'string', 'example' => 'hk573be80f944d95ac812e0*******a8'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"docType\\\\\\": \\\\\\"PPTW01\\\\\\",\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"passportNo\\\\\\": \\\\\\"36*******\\\\\\",\\\\n \\\\\\"expiryDate\\\\\\": \\\\\\"2032/02/10\\\\\\",\\\\n \\\\\\"placeOfBirth\\\\\\": \\\\\\"TAIWAN\\\\\\",\\\\n \\\\\\"surname\\\\\\": \\\\\\"CHEN\\\\\\",\\\\n \\\\\\"givenname\\\\\\": \\\\\\"LIN-CHUN\\\\\\",\\\\n \\\\\\"countryCode\\\\\\": \\\\\\"TWN\\\\\\",\\\\n \\\\\\"sex\\\\\\": \\\\\\"F\\\\\\",\\\\n \\\\\\"personalNo\\\\\\": \\\\\\"S22********\\\\\\",\\\\n \\\\\\"issueDate\\\\\\": \\\\\\"2022/02/10\\\\\\",\\\\n \\\\\\"birthDate\\\\\\": \\\\\\"1988/10/04\\\\\\"\\\\n }\\\\n}\\",\\n \\"TransactionId\\": \\"hk573be80f944d95ac812e0*******a8\\"\\n }\\n}","type":"json"}]',
+ 'title' => '全球卡证OCR识别',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DocOcrMax'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DocOcrMax',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"130A2C10-B9EE-4D84-88E3-5384FF039795\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"FacePassed\\": \\"Y\\",\\n \\"FaceComparisonScoreA2B\\": 0.9999999999999999,\\n \\"FaceComparisonScoreB2C\\": 0.9999999999999999,\\n \\"FaceComparisonScoreC2A\\": 0.9999999999999999,\\n \\"TransactionId\\": \\"4ab0b***cbde97\\"\\n }\\n}","type":"json"}]',
- 'title' => '人脸交叉比对',
],
- 'DocOcrMax' => [
+ 'DocOcrMaxV2' => [
'summary' => '全球证件ocr识别接口',
- 'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -2643,214 +2423,121 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthCW0JNH',
- 'FEATUREcloudauthHOSIED',
- 'FEATUREcloudauthWSJE4H',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthCW0JNH', 'FEATUREcloudauthHOSIED', 'FEATUREcloudauthWSJE4H'],
'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'formData',
- 'schema' => [
- 'description' => '要接入的产品方案。'."\n"
- ."\n"
- .'取值ID_OCR_MAX',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ID_OCR_MAX',
- ],
+ 'schema' => ['description' => '要接入的产品方案。'."\n"
+ ."\n"
+ .'取值 ID_OCR_MAX', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ID_OCR_MAX'],
],
[
'name' => 'SceneCode',
'in' => 'formData',
- 'schema' => [
- 'description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录。'."\n"
- ."\n"
- .'支持长度为10位的字母、数字和下划线的组合。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1234567890',
- ],
+ 'schema' => ['description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录。'."\n"
+ ."\n"
+ .'支持长度为10位的字母、数字和下划线的组合。', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
],
[
'name' => 'MerchantBizId',
'in' => 'formData',
- 'schema' => [
- 'description' => '您自定义的业务唯一标识,用于后续定位排查问题。'."\n"
- ."\n"
- .'支持长度为32位的字母和数字的组合,请确保唯一。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'e0c34a77f5ac40a5aa5e6ed20c******',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长 32 位,请确保唯一。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888'."\n"],
],
[
'name' => 'MerchantUserId',
'in' => 'formData',
- 'schema' => [
- 'description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。'."\n"
- ."\n"
- .'强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123456789',
- ],
+ 'schema' => ['description' => '您自定义的用户 ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。'."\n"
+ ."\n"
+ .'强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '123456789'],
],
[
'name' => 'IdOcrPictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '卡证图片Base64编码。'."\n"
- ."\n"
- .'如果您选择IdOcrPictureBase64(照片Base64编码)方式传入证件照片,请注意检查照片大小,不要传入过大的照片。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'schema' => ['description' => '卡证图片Base64编码。'."\n"
+ ."\n"
+ .'如果您选择IdOcrPictureBase64(照片Base64编码)方式传入证件照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'base64'."\n"],
],
[
'name' => 'IdOcrPictureUrl',
'in' => 'formData',
- 'schema' => [
- 'description' => '卡证图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://***********.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n",
- ],
+ 'schema' => ['description' => '卡证图片地址,公网可访问的 HTTP、HTTPS 链接。', 'type' => 'string', 'required' => false, 'example' => 'https://***********.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n"],
],
[
'name' => 'OcrModel',
'in' => 'formData',
- 'schema' => [
- 'description' => 'OCR识别模式:'."\n"
- ."\n"
- .'- 0:通用证件识别模式(默认)'."\n"
- ."\n"
- .'- 1:证件自动分类模式'."\n"
- ."\n"
- .'- 2:证件自动分类+通用识别模式',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => 'OCR识别模式:'."\n"
+ ."\n"
+ .'- 0:通用证件识别模式(默认)'."\n"
+ ."\n"
+ .'- 1:证件自动分类模式'."\n"
+ ."\n"
+ .'- 2:证件自动分类+通用识别模式', 'type' => 'string', 'required' => false, 'example' => '0'],
],
[
'name' => 'DocType',
'in' => 'formData',
- 'schema' => [
- 'description' => '证件类型。'."\n"
- .'- 格式:国家(地区)代码+证件类型缩写+页面(可选)'."\n"
- ."\n"
- .'说明'."\n"
- .'- OcrModel = 0:DocType必传,指定证件类型,现有逻辑不变'."\n"
- .'- OcrModel = 1或2:DocType需要为空。',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'CNSSC01',
- ],
- ],
- [
- 'name' => 'Prompt',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '><warning>该字段已废弃></warning>',
- 'type' => 'string',
- 'required' => false,
- 'example' => '已废弃',
- ],
- ],
- [
- 'name' => 'Spoof',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '<warning>该字段已废弃></warning>',
- 'type' => 'string',
- 'required' => false,
- 'example' => '已废弃',
- ],
+ 'schema' => ['description' => '证件类型。'."\n"
+ .'- 格式:国家(地区)代码+证件类型缩写+页面(可选)'."\n"
+ ."\n"
+ .'说明'."\n"
+ .'- OcrModel = 0:DocType必传,指定证件类型,现有逻辑不变'."\n"
+ .'- OcrModel = 1或2:DocType需要为空。', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'CHN01001'],
],
[
'name' => 'IdThreshold',
'in' => 'formData',
- 'schema' => [
- 'description' => '自定义OCR质量检测阈值模式:'."\n"
- ."\n"
- .'- 0:系统默认'."\n"
- .'- 1:严格模式'."\n"
- .'- 2:宽松模式'."\n"
- .'- 3(默认):关闭质量检测',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => '自定义OCR质量检测阈值模式:'."\n"
+ ."\n"
+ .'- 0:系统默认'."\n"
+ .'- 1:严格模式'."\n"
+ .'- 2:宽松模式'."\n"
+ .'- 3(默认):关闭质量检测', 'type' => 'string', 'required' => false, 'example' => '0'],
],
[
'name' => 'IdSpoof',
'in' => 'formData',
- 'schema' => [
- 'description' => '是否开启证件防伪功能:'."\n"
- ."\n"
- .'- T:开启'."\n"
- ."\n"
- .'- F(默认):不开启',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'F',
- ],
+ 'schema' => ['description' => '是否开启证件防伪功能:'."\n"
+ ."\n"
+ .'- T:开启'."\n"
+ ."\n"
+ .'- F(默认):不开启', 'type' => 'string', 'required' => false, 'example' => 'F'],
],
[
'name' => 'DocPage',
'in' => 'formData',
- 'schema' => [
- 'description' => '期望识别的页面'."\n"
- ."\n"
- .'- 01(默认):证件人像面'."\n"
- ."\n"
- .'- 02:证件背面',
- 'type' => 'string',
- 'required' => false,
- 'example' => '01',
- ],
+ 'schema' => ['description' => '期望识别的页面'."\n"
+ ."\n"
+ .'- 01(默认):证件人像面'."\n"
+ ."\n"
+ .'- 02:证件背面', 'type' => 'string', 'required' => false, 'example' => '01'],
],
[
'name' => 'OcrValueStandard',
'in' => 'query',
- 'schema' => [
- 'title' => 'OcrValueStandard是否需要开启OCR识别关键字段标准化; 0否(默认) 1是',
- 'description' => '是否需要开启OCR识别关键字段标准化'."\n"
- .'- 0:否 (默认) '."\n"
- .'- 1:是',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- 'default' => '0',
- ],
+ 'schema' => ['title' => 'OcrValueStandard是否需要开启OCR识别关键字段标准化; 0否(默认) 1是', 'description' => 'OcrValueStandard是否需要开启OCR识别关键字段标准化; 0否(默认) 1是', 'type' => 'string', 'required' => false, 'example' => '0', 'default' => '0'],
],
[
'name' => 'Authorize',
'in' => 'formData',
- 'schema' => [
- 'description' => '是否启用权威数据源核验以增强证件防伪能力。'."\n"
- ."\n"
- .'- **T**:启用'."\n"
- ."\n"
- .'- **F**:不启用(默认值)'."\n"
- ."\n"
- .'> '."\n"
- .'> - **适用证件类型**:中国居民身份证(CHN01001)、中国内地驾驶证(CHN02001)。'."\n"
- .'> - **数据传输声明**:启用此参数,即表示同意将用户的姓名和证件号码传输至中国内地权威数据源进行一致性校验。'."\n"
- .'> - **性能影响**:启用后,接口响应时间将增加约 1-2 秒。建议调整超时时间设置。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'T'."\n",
- ],
+ 'schema' => ['description' => '是否启用权威数据源核验以增强证件防伪能力。'."\n"
+ ."\n"
+ .'- **T**:启用'."\n"
+ ."\n"
+ .'- **F**:不启用(默认值)'."\n"
+ ."\n"
+ .'> '."\n"
+ .'> - **适用证件类型**:中国居民身份证(CHN01001)、中国内地驾驶证(CHN02001)。'."\n"
+ .'> - **数据传输声明**:启用此参数,即表示同意将用户的姓名和证件号码传输至中国内地权威数据源进行一致性校验。'."\n"
+ .'> - **性能影响**:启用后,接口响应时间将增加约 1-2 秒。建议调整超时时间设置。', 'type' => 'string', 'required' => false, 'example' => 'T'."\n"],
+ ],
+ [
+ 'name' => 'IdOcrPictureFile',
+ 'in' => 'formData',
+ 'schema' => ['description' => '证件图片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
],
],
'responses' => [
@@ -2860,84 +2547,54 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'Passed' => [
- 'description' => '认证是否通过。'."\n"
- ."\n"
- .'- Y:通过。'."\n"
- .'- N:不通过。',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'SubCode' => [
- 'description' => '子结果码。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'ExtIdInfo' => [
- 'description' => '卡证识别结果 只有当接口响应成功时返回',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "docType": "PPTW01",'."\n"
- .' "ocrIdInfo": {'."\n"
- .' "passportNo": "36*******",'."\n"
- .' "expiryDate": "2032/02/10",'."\n"
- .' "placeOfBirth": "TAIWAN",'."\n"
- .' "surname": "CHEN",'."\n"
- .' "givenname": "LIN-CHUN",'."\n"
- .' "countryCode": "TWN",'."\n"
- .' "sex": "F",'."\n"
- .' "personalNo": "S22********",'."\n"
- .' "issueDate": "2022/02/10",'."\n"
- .' "birthDate": "1988/10/04"'."\n"
- .' }'."\n"
- .'}',
- ],
- 'TransactionId' => [
- 'description' => '认证ID',
- 'type' => 'string',
- 'example' => 'hk573be80f944d95ac812e0*******a8',
- ],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过。'."\n"
+ .'- N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '200'],
+ 'ExtIdInfo' => ['description' => '卡证识别结果 只有当接口响应成功时返回', 'type' => 'string', 'example' => '{'."\n"
+ .' "ocrIdInfo": {'."\n"
+ .' "id_number": "*****719******",'."\n"
+ .' "address": "xxxxxx,'."\n"
+ .' "ethnicity": "汉",'."\n"
+ .' "date_of_birth": "1990年06月02日",'."\n"
+ .' "sex": "女",'."\n"
+ .' "name": "何**"'."\n"
+ .' },'."\n"
+ .' "ocrStandardData": {'."\n"
+ .' "given_name_s": "**",'."\n"
+ .' "surname_s": "HE",'."\n"
+ .' "date_of_birth_s": "1990-06-02",'."\n"
+ .' "sex_s": "F"'."\n"
+ .' }'."\n"
+ .'}'],
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '08573be80f944d95ac812e019e3655a8'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"docType\\\\\\": \\\\\\"PPTW01\\\\\\",\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"passportNo\\\\\\": \\\\\\"36*******\\\\\\",\\\\n \\\\\\"expiryDate\\\\\\": \\\\\\"2032/02/10\\\\\\",\\\\n \\\\\\"placeOfBirth\\\\\\": \\\\\\"TAIWAN\\\\\\",\\\\n \\\\\\"surname\\\\\\": \\\\\\"CHEN\\\\\\",\\\\n \\\\\\"givenname\\\\\\": \\\\\\"LIN-CHUN\\\\\\",\\\\n \\\\\\"countryCode\\\\\\": \\\\\\"TWN\\\\\\",\\\\n \\\\\\"sex\\\\\\": \\\\\\"F\\\\\\",\\\\n \\\\\\"personalNo\\\\\\": \\\\\\"S22********\\\\\\",\\\\n \\\\\\"issueDate\\\\\\": \\\\\\"2022/02/10\\\\\\",\\\\n \\\\\\"birthDate\\\\\\": \\\\\\"1988/10/04\\\\\\"\\\\n }\\\\n}\\",\\n \\"TransactionId\\": \\"hk573be80f944d95ac812e0*******a8\\"\\n }\\n}","type":"json"}]',
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '全球卡证OCR识别',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"id_number\\\\\\": \\\\\\"*****719******\\\\\\",\\\\n \\\\\\"address\\\\\\": \\\\\\"xxxxxx,\\\\n \\\\\\"ethnicity\\\\\\": \\\\\\"汉\\\\\\",\\\\n \\\\\\"date_of_birth\\\\\\": \\\\\\"1990年06月02日\\\\\\",\\\\n \\\\\\"sex\\\\\\": \\\\\\"女\\\\\\",\\\\n \\\\\\"name\\\\\\": \\\\\\"何**\\\\\\"\\\\n },\\\\n \\\\\\"ocrStandardData\\\\\\": {\\\\n \\\\\\"given_name_s\\\\\\": \\\\\\"**\\\\\\",\\\\n \\\\\\"surname_s\\\\\\": \\\\\\"HE\\\\\\",\\\\n \\\\\\"date_of_birth_s\\\\\\": \\\\\\"1990-06-02\\\\\\",\\\\n \\\\\\"sex_s\\\\\\": \\\\\\"F\\\\\\"\\\\n }\\\\n}\\",\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\"\\n }\\n}","type":"json"}]',
],
- 'DocOcr' => [
+ 'DocOcrV2' => [
'summary' => '卡证OCR纯服务端能力Api',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -2950,137 +2607,88 @@
'riskType' => 'none',
'chargeType' => 'paid',
'abilityTreeCode' => '181950',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthCW0JNH',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthCW0JNH'],
],
'parameters' => [
[
'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dso9322***dsjsd22',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长 32 位,请确保唯一', 'type' => 'string', 'required' => false, 'example' => 'dso9322***dsjsd22'."\n"],
],
[
'name' => 'MerchantUserId',
'in' => 'query',
- 'schema' => [
- 'description' => '业务中自定义的用户ID,请保持唯一',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123456789',
- ],
+ 'schema' => ['description' => '业务中自定义的用户 ID,请保持唯一', 'type' => 'string', 'required' => false, 'example' => '123456789'],
],
[
'name' => 'IdOcrPictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '卡证图片Base64编码。'."\n"
- ."\n"
- .'如果您选择IdOcrPictureBase64(照片Base64编码)方式传入证件照片,请注意检查照片大小,不要传入过大的照片。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'schema' => ['description' => '卡证图片 Base64 编码。'."\n"
+ ."\n"
+ .'如果您选择 IdOcrPictureBase64(照片 Base64 编码)方式传入证件照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'base64'."\n"],
],
[
'name' => 'IdOcrPictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '证件正面图片URL',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n",
- ],
+ 'schema' => ['description' => '证件正面图片 URL', 'type' => 'string', 'required' => false, 'example' => 'https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'],
+ ],
+ [
+ 'name' => 'IdOcrPictureFile',
+ 'in' => 'formData',
+ 'schema' => ['description' => '证件正面图片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
],
[
'name' => 'DocType',
'in' => 'query',
- 'schema' => [
- 'description' => '证件类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => '00000006',
- ],
+ 'schema' => ['description' => '证件类型', 'type' => 'string', 'required' => false, 'example' => '00000006'."\n"],
],
[
'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '产品code',
- 'type' => 'string',
- 'required' => false,
- 'example' => '产品方案类型ID_OCR_MIN',
- ],
+ 'schema' => ['description' => '产品 code', 'type' => 'string', 'required' => false, 'example' => '产品方案类型ID_OCR_MIN'."\n"],
],
[
'name' => 'Ocr',
'in' => 'query',
- 'schema' => [
- 'description' => '是否进行证件OCR'."\n"
- .'- T:表示需要证件OCR'."\n"
- .'- F:表示不需要',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'T',
- ],
+ 'schema' => ['description' => '是否进行证件 OCR'."\n"
+ ."\n"
+ .'- T:表示需要证件 OCR'."\n"
+ .'- F:表示不需要', 'type' => 'string', 'required' => false, 'example' => 'T'."\n"],
],
[
'name' => 'IdFaceQuality',
'in' => 'query',
- 'schema' => [
- 'description' => '是否进行证脸质量检测'."\n"
- .'- T:表示需要检测'."\n"
- .'- F:表示需要检测(默认F)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'F',
- ],
+ 'schema' => ['description' => '是否进行证脸质量检测'."\n"
+ ."\n"
+ .'- T:表示需要检测'."\n"
+ .'- F:表示需要检测(默认 F)', 'type' => 'string', 'required' => false, 'example' => 'F'],
],
[
'name' => 'Spoof',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启防伪检测'."\n"
- .'- T:表示开启防伪'."\n"
- .'- F:表示关闭',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'F',
- ],
+ 'schema' => ['description' => '是否开启防伪检测'."\n"
+ ."\n"
+ .'- T:表示开启防伪'."\n"
+ .'- F:表示关闭', 'type' => 'string', 'required' => false, 'example' => 'F'],
],
[
'name' => 'IdThreshold',
'in' => 'query',
- 'schema' => [
- 'description' => '自定义OCR质量检测阈值模式:'."\n"
- ."\n"
- .'- 0:系统默认'."\n"
- .'- 1:严格模式'."\n"
- .'- 2:宽松模式'."\n"
- .'- 3(默认):关闭质量检测',
- 'type' => 'string',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => '自定义 OCR 质量检测阈值模式:'."\n"
+ ."\n"
+ .'- 0:系统默认'."\n"
+ .'- 1:严格模式'."\n"
+ .'- 2:宽松模式'."\n"
+ .'- 3(默认):关闭质量检测', 'type' => 'string', 'required' => false, 'example' => '0'."\n"],
],
[
'name' => 'CardSide',
'in' => 'query',
- 'schema' => [
- 'description' => '区分证件国徽面和人像面 ,不传默认人像面 。'."\n"
- ."\n"
- .'- OCR_ID_FACE (默认):人像面'."\n"
- ."\n"
- .'- OCR_ID_NATIONAL_EMBLEM :国徽面',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'OCR_ID_FACE',
- ],
+ 'schema' => ['description' => '区分证件国徽面和人像面 ,不传默认人像面 。'."\n"
+ ."\n"
+ .'- OCR_ID_FACE (默认):人像面'."\n"
+ ."\n"
+ .'- OCR_ID_NATIONAL_EMBLEM :国徽面', 'type' => 'string', 'required' => false, 'example' => 'OCR_ID_FACE'."\n"],
],
],
'responses' => [
@@ -3090,147 +2698,101 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'."\n"],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'."\n"],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识',
- 'type' => 'string',
- 'example' => '08573be80f944d95ac812e019e3655a8',
- ],
- 'Passed' => [
- 'description' => '认证是否通过。'."\n"
- ."\n"
- .'- Y:通过'."\n"
- .'- N:不通过',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'SubCode' => [
- 'description' => '子结果码',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'ExtIdInfo' => [
- 'description' => '卡证识别结果 只有当接口响应成功时返回',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "idFaceQualityScore": 98.0'."\n"
- .' "ocrIdInfo": {'."\n"
- .' "expiryDate": "",'."\n"
- .' "originOfIssue": "公安部出入境管理局",'."\n"
- .' "englishName": "LI SI",'."\n"
- .' "sex": "男",'."\n"
- .' "name": "李四",'."\n"
- .' "idNumber": "H11111112",'."\n"
- .' "issueDate": "2013-01-02",'."\n"
- .' "birthDate": "1990-02-21"'."\n"
- .' },'."\n"
- .' "spoofInfo": {'."\n"
- .' "spoofResult": "Y",'."\n"
- .' "spoofType": ['."\n"
- .' "SCREEN_REMARK"'."\n"
- .' ]'."\n"
- .' }'."\n"
- .'}',
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '08573be80f944d95ac812e019e3655a8'."\n"],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过'."\n"
+ .'- N:不通过', 'type' => 'string', 'example' => 'Y'."\n"],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '200'."\n"],
+ 'ExtIdInfo' => ['description' => '卡证识别结果 只有当接口响应成功时返回', 'type' => 'string', 'example' => '{'."\n"
+ .' "idFaceQualityScore": 98.0'."\n"
+ .' "ocrIdInfo": {'."\n"
+ .' "expiryDate": "",'."\n"
+ .' "originOfIssue": "公安部出入境管理局",'."\n"
+ .' "englishName": "LI SI",'."\n"
+ .' "sex": "男",'."\n"
+ .' "name": "李四",'."\n"
+ .' "idNumber": "H11111112",'."\n"
+ .' "issueDate": "2013-01-02",'."\n"
+ .' "birthDate": "1990-02-21"'."\n"
+ .' },'."\n"
+ .' "spoofInfo": {'."\n"
+ .' "spoofResult": "Y",'."\n"
+ .' "spoofType": ['."\n"
+ .' "SCREEN_REMARK"'."\n"
+ .' ]'."\n"
+ .' }'."\n"
+ .'}'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"idFaceQualityScore\\\\\\": 98.0\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"expiryDate\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"originOfIssue\\\\\\": \\\\\\"公安部出入境管理局\\\\\\",\\\\n \\\\\\"englishName\\\\\\": \\\\\\"LI SI\\\\\\",\\\\n \\\\\\"sex\\\\\\": \\\\\\"男\\\\\\",\\\\n \\\\\\"name\\\\\\": \\\\\\"李四\\\\\\",\\\\n \\\\\\"idNumber\\\\\\": \\\\\\"H11111112\\\\\\",\\\\n \\\\\\"issueDate\\\\\\": \\\\\\"2013-01-02\\\\\\",\\\\n \\\\\\"birthDate\\\\\\": \\\\\\"1990-02-21\\\\\\"\\\\n },\\\\n \\\\\\"spoofInfo\\\\\\": {\\\\n \\\\\\"spoofResult\\\\\\": \\\\\\"Y\\\\\\",\\\\n \\\\\\"spoofType\\\\\\": [\\\\n \\\\\\"SCREEN_REMARK\\\\\\"\\\\n ]\\\\n }\\\\n}\\"\\n }\\n}","type":"json"}]',
+ 'staticInfo' => ['returnType' => 'synchronous'],
'title' => '中国卡证OCR识别(ID_OCR_MIN)',
- ],
- 'Id2MetaVerifyIntl' => [
- 'summary' => '传入姓名和身份证号,通过权威数据源验证其真实性和一致性。',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\\\n\\",\\n \\"Code\\": \\"Success\\\\n\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\\\n\\",\\n \\"Passed\\": \\"Y\\\\n\\",\\n \\"SubCode\\": \\"200\\\\n\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"idFaceQualityScore\\\\\\": 98.0\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"expiryDate\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"originOfIssue\\\\\\": \\\\\\"公安部出入境管理局\\\\\\",\\\\n \\\\\\"englishName\\\\\\": \\\\\\"LI SI\\\\\\",\\\\n \\\\\\"sex\\\\\\": \\\\\\"男\\\\\\",\\\\n \\\\\\"name\\\\\\": \\\\\\"李四\\\\\\",\\\\n \\\\\\"idNumber\\\\\\": \\\\\\"H11111112\\\\\\",\\\\n \\\\\\"issueDate\\\\\\": \\\\\\"2013-01-02\\\\\\",\\\\n \\\\\\"birthDate\\\\\\": \\\\\\"1990-02-21\\\\\\"\\\\n },\\\\n \\\\\\"spoofInfo\\\\\\": {\\\\n \\\\\\"spoofResult\\\\\\": \\\\\\"Y\\\\\\",\\\\n \\\\\\"spoofType\\\\\\": [\\\\n \\\\\\"SCREEN_REMARK\\\\\\"\\\\n ]\\\\n }\\\\n}\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'DownloadVerifyRecordIntl' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '199203',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthZN5W38',
- ],
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '225500',
+ 'abilityTreeNodes' => ['FEATUREcloudauth6RJHVQ'],
+ 'tenantRelevance' => 'publicInformation',
],
'parameters' => [
[
- 'name' => 'ProductCode',
+ 'name' => 'Code',
'in' => 'query',
- 'schema' => [
- 'description' => '接入的产品方案,固定值:ID_2META',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ID_2META',
- ],
+ 'schema' => ['description' => '查询code。', 'type' => 'string', 'required' => false, 'example' => 'vrf_intl_verify_record_real_id_idv_invoke_statistics_query'],
],
[
- 'name' => 'ParamType',
+ 'name' => 'Param',
'in' => 'query',
- 'schema' => [
- 'description' => '参数类型:'."\n"
- ."\n"
- .'- normal:原始值(明文)'."\n"
- .'- 说明:由于权威数据源限制,身份二要素核验不支持Md5加密方式。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'normal',
- ],
+ 'schema' => ['description' => '导出下载查询任务的相关参数。', 'type' => 'string', 'required' => false, 'example' => '{\\"productCode\\":\\"FACE_LIVENESS\\",\\"startDs\\":\\"20251121\\",\\"endDs\\":\\"20251128\\",\\"language\\":\\"en\\"}'],
],
[
- 'name' => 'IdentifyNum',
+ 'name' => 'ProductType',
'in' => 'query',
- 'schema' => [
- 'description' => '身份证号(输入明文)',
- 'type' => 'string',
- 'required' => false,
- 'example' => '429001********8211'."\n",
- ],
+ 'schema' => ['description' => '产品Code。', 'type' => 'string', 'required' => false, 'example' => 'KYC'],
],
[
- 'name' => 'UserName',
+ 'name' => 'DownloadMode',
'in' => 'query',
- 'schema' => [
- 'description' => '姓名(输入明文)',
- 'type' => 'string',
- 'required' => false,
- 'example' => '张*',
- ],
+ 'schema' => ['description' => '下载模式:'."\n"
+ ."\n"
+ .'- **async**:异步'."\n"
+ .'- **sync**:同步', 'type' => 'string', 'required' => false, 'example' => 'async'],
+ ],
+ [
+ 'name' => 'BizType',
+ 'in' => 'query',
+ 'schema' => ['description' => '业务类型:'."\n"
+ .'- INVOKE_STATISTICS'."\n"
+ .'- INVOKE_RECORD', 'type' => 'string', 'required' => false, 'example' => 'INVOKE_RECORD'],
],
],
'responses' => [
@@ -3240,54 +2802,46 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求Id',
- 'type' => 'string',
- 'example' => 'EFA11401-C961-5E89-A2D3-BF9883E5CC3D',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Result' => [
- 'description' => '返回结果',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'."\n"],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回消息。', 'type' => 'string', 'example' => 'success'],
+ 'Data' => [
+ 'description' => '返回数据。',
'type' => 'object',
'properties' => [
- 'BizCode' => [
- 'description' => '核验结果码。'."\n"
- .'- 1:核验一致'."\n"
- .'- 2:核验不一致'."\n"
- .'- 3:未查得',
- 'type' => 'string',
- 'example' => '1',
- ],
+ 'DownloadTaskId' => ['description' => '任务id,异步模式返回,后续使用QueryDownloadTaskIntl下载导出文件。', 'type' => 'string', 'example' => '202511284106866'],
+ 'Url' => ['description' => '导出文件下载链接。', 'type' => 'string', 'example' => 'https://cn-shanghai-aliyun-cloudauth.oss-cn-shanghai.aliyuncs.com/console/xxxxxx/KYC_INVOKE_STATISTICS.xlxs'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '下载认证记录',
+ 'summary' => '核验任务下载。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DownloadVerifyRecordIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EFA11401-C961-5E89-A2D3-BF9883E5CC3D\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"BizCode\\": \\"1\\"\\n }\\n}","type":"json"}]',
- 'title' => '身份二要素认证核验',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\\\n\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"DownloadTaskId\\": \\"202511284106866\\",\\n \\"Url\\": \\"https://cn-shanghai-aliyun-cloudauth.oss-cn-shanghai.aliyuncs.com/console/xxxxxx/KYC_INVOKE_STATISTICS.xlxs\\"\\n }\\n}","type":"json"}]',
],
- 'Id2MetaPeriodVerifyIntl' => [
- 'summary' => '身份二要素有效期核验',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'EkycVerify' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -3299,107 +2853,96 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeCode' => '261144',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthZN5W38',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '190721',
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
'name' => 'ProductCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '要接入的产品方案。'."\n"
- ."\n"
- .'取值eKYC_Date_MIN',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'eKYC_Date_MIN',
- ],
- ],
- [
- 'name' => 'SceneCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。支持长度为10位的字母、数字或下划线的组合。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1234567890',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '产品code', 'type' => 'string', 'required' => false, 'example' => 'eKYC_MIN'],
],
[
'name' => 'MerchantBizId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e0c34a77f5ac40a5aa5e6ed20c35****',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。', 'type' => 'string', 'required' => false, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888'],
],
[
'name' => 'MerchantUserId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1234567890',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '123456'],
],
[
'name' => 'DocType',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '证件类型,以8位数字组合作为唯一标识。更多说明,请参见证件类型列表。'."\n"
- .'当前支持中国内地第二代居民身份证,请传入固定值:00000001',
- 'type' => 'string',
- 'required' => true,
- 'example' => '​00000001'."\n"
- ."\n",
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '证件类型', 'type' => 'string', 'required' => false, 'example' => '00000001'],
],
[
'name' => 'DocName',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '用户的姓名。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '张三',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '用户的真实姓名。当Authorize=\'T\'且证件类型为大陆身份证时,证件关键信息(DocName、DocNo)与证件图片(IdOcrPictureBase64/URL)必须至少输入其中一组'."\n"
+ .'注:支持长度为1个汉字以上的汉字组合,无特殊字符,少数民族的点【·】除外', 'type' => 'string', 'required' => false, 'example' => '张**'],
],
[
'name' => 'DocNo',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '用户的证件号码。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '411xxxxxxxxxxx0001',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '用户的证件号。当Authorize=\'T\'且证件类型为大陆身份证时,证件关键信息(DocName、DocNo)与证件图片(IdOcrPictureBase64/URL)必须至少输入其中一组'."\n"
+ .'注:支持长度为18位的字母和数字组合', 'type' => 'string', 'required' => false, 'example' => '410***************'],
],
[
- 'name' => 'ValidityStartDate',
+ 'name' => 'IdOcrPictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件正面图片URL', 'type' => 'string', 'required' => false, 'example' => 'https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n"],
+ ],
+ [
+ 'name' => 'IdOcrPictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '有效期开始日期,格式:YYYYMMDD。如:20201001',
- 'type' => 'string',
- 'required' => true,
- 'example' => '20201001',
- ],
+ 'schema' => ['description' => '卡证图片Base64编码。'."\n"
+ .'说明'."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- IdOcrPictureBase64和IdOcrPictureUrl二选一。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
],
[
- 'name' => 'ValidityEndDate',
+ 'name' => 'FacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸照片地址', 'type' => 'string', 'required' => false, 'example' => 'https://digital-face-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'],
+ ],
+ [
+ 'name' => 'FacePictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '身份证有效期到期日期,格式:YYYYMMDD。如:20301001',
- 'type' => 'string',
- 'required' => true,
- 'example' => '20301001',
- ],
+ 'schema' => ['description' => '人像图片Base64编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- FacePictureBase64和FacePictureUrl二选一。', 'type' => 'string', 'required' => false, 'example' => 'Base64'],
+ ],
+ [
+ 'name' => 'Crop',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否允许裁剪,默认不允许,T/F'."\n"
+ ."\n"
+ .'- T:表示需要检测'."\n"
+ .'- F:表示需要检测(默认F)', 'type' => 'string', 'required' => false, 'example' => 'F'],
+ ],
+ [
+ 'name' => 'Authorize',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启身份权威核验,目前仅适用于中国大陆二代身份证', 'type' => 'string', 'required' => false, 'example' => 'T'],
+ ],
+ [
+ 'name' => 'IdThreshold',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义OCR质量检测阈值模式:'."\n"
+ ."\n"
+ .'- 0:系统默认'."\n"
+ .'- 1:严格模式'."\n"
+ .'- 2:宽松模式'."\n"
+ .'- 3(默认):关闭质量检测', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceQualityCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -3409,61 +2952,71 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '7B97D932-7FF5-517D-BF39-7CA1BEE3CDD9',
- ],
- 'Code' => [
- 'description' => '返回码。关于返回码的具体信息,请参见返回Code和Message说明返回Code和Message说明。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Message' => [
- 'description' => '请求消息的响应信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果。',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'Passed' => [
- 'description' => '认证最终结果。取值:'."\n"
- ."\n"
- .'* Y:通过。'."\n"
- ."\n"
- .'* N:不通过。',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'SubCode' => [
- 'description' => '认证结果描述。更多信息,请参ResultObject.SubCode错误码说明。',
- 'type' => 'string',
- 'example' => '200',
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '4ab0b***cbde97'],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '205'],
+ 'Passed' => ['description' => '是否通过,通过为T,不通过为F。', 'type' => 'string', 'example' => 'Y'],
+ 'ExtFaceInfo' => ['description' => '人脸结果信息', 'type' => 'string', 'example' => '{'."\n"
+ .'"faceAttack": "N",'."\n"
+ .'"faceComparisonScore": 52.57,'."\n"
+ .'"facePassed": "N",'."\n"
+ .'"authorityComparisonScore": 80.39'."\n"
+ .'}'."\n"
+ ."\n"],
+ 'ExtIdInfo' => ['description' => '卡证识别结果 只有当接口响应成功时返回', 'type' => 'string', 'example' => '{'."\n"
+ .' "ocrIdInfo": {'."\n"
+ .' "firstName": "**龙",'."\n"
+ .' "lastName": "**",'."\n"
+ .' "countryCode": "CHN",'."\n"
+ .' "docType": "01560001",'."\n"
+ .' "dateOfBirth": "2002-08-04",'."\n"
+ .' "idNumber": "410************19"'."\n"
+ .' },'."\n"
+ .' "ocrIdPassed": "N",'."\n"
+ .' "spoofInfo": {'."\n"
+ .' "spoofResult": "Y",'."\n"
+ .' }'."\n"
+ .'}'."\n"
+ ."\n"],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7B97D932-7FF5-517D-BF39-7CA1BEE3CDD9\\",\\n \\"Code\\": \\"success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\"\\n }\\n}","type":"json"}]',
- 'title' => '身份证有效期核验',
- ],
- 'BankMetaVerifyIntl' => [
- 'summary' => '银行卡要素(银行卡二要素、银行卡三要素和银行卡四要素)API接口。',
- 'path' => '',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '纯服务端实人认证(eKYC_MIN)',
+ 'summary' => 'ekyc方案纯服务端接口',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EkycVerify'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:EkycVerify',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\",\\n \\"SubCode\\": \\"205\\",\\n \\"Passed\\": \\"Y\\",\\n \\"ExtFaceInfo\\": \\"{\\\\n\\\\\\"faceAttack\\\\\\": \\\\\\"N\\\\\\",\\\\n\\\\\\"faceComparisonScore\\\\\\": 52.57,\\\\n\\\\\\"facePassed\\\\\\": \\\\\\"N\\\\\\",\\\\n\\\\\\"authorityComparisonScore\\\\\\": 80.39\\\\n}\\\\n\\\\n\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"firstName\\\\\\": \\\\\\"**龙\\\\\\",\\\\n \\\\\\"lastName\\\\\\": \\\\\\"**\\\\\\",\\\\n \\\\\\"countryCode\\\\\\": \\\\\\"CHN\\\\\\",\\\\n \\\\\\"docType\\\\\\": \\\\\\"01560001\\\\\\",\\\\n \\\\\\"dateOfBirth\\\\\\": \\\\\\"2002-08-04\\\\\\",\\\\n \\\\\\"idNumber\\\\\\": \\\\\\"410************19\\\\\\"\\\\n },\\\\n \\\\\\"ocrIdPassed\\\\\\": \\\\\\"N\\\\\\",\\\\n \\\\\\"spoofInfo\\\\\\": {\\\\n \\\\\\"spoofResult\\\\\\": \\\\\\"Y\\\\\\",\\\\n }\\\\n}\\\\n\\\\n\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'EkycVerifyV2' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -3475,139 +3028,105 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauth883TGF',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '190721',
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '固定值:BANK_CARD_N_META',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'BANK_CARD_N_META'."\n",
- ],
+ 'schema' => ['description' => '产品 code', 'type' => 'string', 'required' => false, 'example' => 'eKYC_MIN'."\n"],
],
[
- 'name' => 'ParamType',
+ 'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '加密方式:'."\n"
- .'- normal:不加密'."\n"
- .'- md5:md5加密'."\n"
- ."\n"
- .'重要:'."\n"
- ."\n"
- .'- 所有参数的密文均取32位小写MD5字符串形式。'."\n"
- .'- 不同MD5工具得出的密文可能不同,如果加密前接口可以调通但加密后不行,请尝试更换MD5工具。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'normal',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为 32 位的字母和数字的组合,请确保唯一。', 'type' => 'string', 'required' => false, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888'."\n"],
],
[
- 'name' => 'VerifyMode',
+ 'name' => 'MerchantUserId',
'in' => 'query',
- 'schema' => [
- 'description' => 'VERIFY_BANK_CARD:银行卡认证模式。表示将传入的银行卡号和用户的真实姓名、身份证号,手机号是否匹配',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'VERIFY_BANK_CARD',
- ],
+ 'schema' => ['description' => '您自定义的用户 ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '123456'."\n"],
],
[
- 'name' => 'ProductType',
+ 'name' => 'DocType',
'in' => 'query',
- 'schema' => [
- 'description' => '调用产品类型:'."\n"
- ."\n"
- .'- BANK_CARD_2_META:银⾏卡号+姓名核验。'."\n"
- .'- BANK_CARD_3_META:银⾏卡号+姓名+身份证号核验。'."\n"
- .'- BANK_CARD_4_META:银⾏卡号+姓名+身份证号+⼿机号核验。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'BANK_CARD_4_META',
- ],
+ 'schema' => ['description' => '证件类型', 'type' => 'string', 'required' => false, 'example' => '00000001'."\n"],
],
[
- 'name' => 'BankCard',
+ 'name' => 'DocName',
'in' => 'query',
- 'schema' => [
- 'description' => '银行卡号。'."\n"
- ."\n"
- .'- 当paramType取值normal时,输入银行卡号明文。'."\n"
- .'- 当paramType取值md5时,卡号除最后6位其他部分明文+最后6位md5值(32位小写)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '● 明文:12345678******'."\n"
- .'● 密文:'."\n"
- .'12345678f8ee21920e37807b43e7e912ab829b6e',
- ],
+ 'schema' => ['description' => '用户的真实姓名。当 Authorize=\'T\'且证件类型为大陆身份证时,证件关键信息(DocName、DocNo)与证件图片(IdOcrPictureBase64/URL)必须至少输入其中一组 注:支持长度为 1 个汉字以上的汉字组合,无特殊字符,少数民族的点【·】除外', 'type' => 'string', 'required' => false, 'example' => '张**'],
],
[
- 'name' => 'UserName',
+ 'name' => 'DocNo',
'in' => 'query',
- 'schema' => [
- 'description' => '姓名。'."\n"
- ."\n"
- .'- 当paramType取值normal时,输入姓名明文。'."\n"
- .'- 当paramType取值md5时,姓名第一个字MD5加密(32位小写MD5)+ 姓名其他部分明文。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '张*'."\n",
- ],
+ 'schema' => ['description' => '用户的证件号。当 Authorize=\'T\'且证件类型为大陆身份证时,证件关键信息(DocName、DocNo)与证件图片(IdOcrPictureBase64/URL)必须至少输入其中一组 注:支持长度为 18 位的字母和数字组合', 'type' => 'string', 'required' => false, 'example' => '410***************'."\n"],
],
[
- 'name' => 'IdentityType',
+ 'name' => 'IdOcrPictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '证件类型(传空值默认为身份证,其他证件类型详见下表)。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '01',
- ],
+ 'schema' => ['description' => '证件正面图片 URL', 'type' => 'string', 'required' => false, 'example' => 'https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n"],
],
[
- 'name' => 'IdentifyNum',
+ 'name' => 'IdOcrPictureBase64',
+ 'in' => 'formData',
+ 'schema' => ['description' => '卡证图片 Base64 编码。 说明'."\n"
+ ."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- IdOcrPictureBase64 和 IdOcrPictureUrl 和 IdOcrPictureFile 三选一。', 'type' => 'string', 'required' => false, 'example' => 'base64'."\n"],
+ ],
+ [
+ 'name' => 'IdOcrPictureFile',
+ 'in' => 'formData',
+ 'schema' => ['description' => '证件正面图片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'FacePictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '证件号:'."\n"
- .'- paramType 传 normal 时:传入证件号明文。'."\n"
- .'- paramType 传 md5 时:'."\n"
- .' - 身份证号前6位(明文)+出生年月日(密文)+身份证号后4位(明文)。'."\n"
- .' - 其他证件最后两位MD5加密。'."\n"
- ."\n"
- .'重要'."\n"
- .'ProductType为以下取值时,此项必选。'."\n"
- .'- BANK_CARD_3_META'."\n"
- .'- BANK_CARD_4_META',
- 'type' => 'string',
- 'required' => false,
- 'example' => '● 明文:429001********8211'."\n"
- .'● 密文:'."\n"
- .'42900132fa7bcd874161bea8ec8fd98f390ec98211',
- ],
+ 'schema' => ['description' => '人脸照片地址', 'type' => 'string', 'required' => false, 'example' => 'https://digital-face-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'],
],
[
- 'name' => 'Mobile',
+ 'name' => 'FacePictureBase64',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像图片 Base64 编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ ."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- FacePictureBase64 和 FacePictureUrl 和 FacePictureFile 三选一。', 'type' => 'string', 'required' => false, 'example' => 'Base64'."\n"],
+ ],
+ [
+ 'name' => 'FacePictureFile',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人脸照片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'Crop',
'in' => 'query',
- 'schema' => [
- 'description' => '手机号:'."\n"
- .'- paramType 传 normal 时:传入手机号明文。'."\n"
- .'- paramType 传 md5 时:传入手机号密文。'."\n"
- ."\n"
- .'重要'."\n"
- ."\n"
- .'- ProductType = BANK_CARD_4_META时,此项必选。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '● 明文:186****2055'."\n"
- .'● 密文:'."\n"
- .'849169cd3b20621c1c78bd61a11a4fc2',
- ],
+ 'schema' => ['description' => '是否允许裁剪,默认不允许,T/F'."\n"
+ ."\n"
+ .'- T:表示需要检测'."\n"
+ .'- F:表示需要检测(默认 F)', 'type' => 'string', 'required' => false, 'example' => 'F'."\n"],
+ ],
+ [
+ 'name' => 'Authorize',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启身份权威核验,目前仅适用于中国大陆二代身份证', 'type' => 'string', 'required' => false, 'example' => 'T'."\n"],
+ ],
+ [
+ 'name' => 'IdThreshold',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义 OCR 质量检测阈值模式:'."\n"
+ ."\n"
+ .'- 0:系统默认'."\n"
+ .'- 1:严格模式'."\n"
+ .'- 2:宽松模式'."\n"
+ .'- 3(默认):关闭质量检测', 'type' => 'string', 'required' => false, 'example' => '0'."\n"],
+ ],
+ [
+ 'name' => 'FaceQualityCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -3617,86 +3136,58 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码:200为成功,其他为失败。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'ResultObject' => [
- 'description' => '返回的结果信息',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1'."\n"],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => ' '."\n"
+ .'Success'."\n"],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'."\n"],
+ 'Result' => [
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'BizCode' => [
- 'description' => '核验结果码。'."\n"
- .'- 1:校验⼀致(计费)'."\n"
- .'- 2:校验不⼀致(计费)'."\n"
- .'- 3:查⽆记录(不计费)',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'SubCode' => [
- 'description' => '核验详情:'."\n"
- ."\n"
- .'- **101**:验证通过。'."\n"
- .'- **201**:认证信息不一致,持卡人信息有误。'."\n"
- .'- **202**:认证信息不一致,银行卡未开通认证支付。'."\n"
- .'- **203**:认证信息不一致,银行卡已过期。'."\n"
- .'- **204**:认证信息不一致,银行卡为受限制的卡。'."\n"
- .'- **205**:认证信息不一致,此卡被没收。'."\n"
- .'- **206**:认证信息不一致,银行卡无效。'."\n"
- .'- **207**:认证信息不一致,此卡无对应发卡行。'."\n"
- .'- **208**:认证信息不一致,该卡未初始化或睡眠卡。'."\n"
- .'- **209**:认证信息不一致,此卡为作弊卡、吞卡。'."\n"
- .'- **210**:认证信息不一致,此卡已挂失。'."\n"
- .'- **211**:认证信息不一致,密码错误次数超限。'."\n"
- .'- **212**:认证信息不一致,发卡行不支持此交易。'."\n"
- .'- **213**:认证信息不一致,卡状态不正常或卡无效。'."\n"
- .'- **214**:认证信息不一致,未预留手机号。'."\n"
- .'- **215**:认证信息不一致,输入的密码、有效期或CVN2有误。'."\n"
- .'- **216**:认证信息不一致,其他卡异常情况。'."\n"
- .'- **301**:无法验证,银行卡不支持该业务。'."\n"
- .'- **302**:无法验证,验证失败或银行拒绝验证,请联系发卡行。'."\n"
- .'- **303**:无法验证,银行卡暂不支持手机号验证。'."\n"
- .'- **304**:无法验证,银行卡号有误。'."\n"
- .'- **305**:无法验证,其他原因。'."\n"
- .'- **306**:无法验证,验证次数超限。',
- 'type' => 'string',
- 'example' => '101',
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '4ab0b***cbde97'."\n"],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => ' '."\n"
+ .'205'."\n"],
+ 'Passed' => ['description' => '是否通过,通过为 Y,不通过为 N。', 'type' => 'string', 'example' => 'Y'],
+ 'ExtFaceInfo' => ['description' => '人脸结果信息', 'type' => 'string', 'example' => '{'."\n"
+ .'"faceAttack": "N",'."\n"
+ .'"faceComparisonScore": 52.57,'."\n"
+ .'"facePassed": "N",'."\n"
+ .'"authorityComparisonScore": 80.39'."\n"
+ .'}'],
+ 'ExtIdInfo' => ['description' => '卡证识别结果 只有当接口响应成功时返回', 'type' => 'string', 'example' => '{'."\n"
+ .' "ocrIdInfo": {'."\n"
+ .' "firstName": "**龙",'."\n"
+ .' "lastName": "**",'."\n"
+ .' "countryCode": "CHN",'."\n"
+ .' "docType": "01560001",'."\n"
+ .' "dateOfBirth": "2002-08-04",'."\n"
+ .' "idNumber": "410************19"'."\n"
+ .' },'."\n"
+ .' "ocrIdPassed": "N",'."\n"
+ .' "spoofInfo": {'."\n"
+ .' "spoofResult": "Y",'."\n"
+ .' }'."\n"
+ .'}'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '纯服务端实人认证(eKYC_MIN)',
+ 'summary' => 'ekyc方案纯服务端接口',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"BizCode\\": \\"1\\",\\n \\"SubCode\\": \\"101\\"\\n }\\n}","type":"json"}]',
- 'title' => '银行卡要素核验',
- 'description' => '银行卡核验, 包含:银行卡二要素(姓名+银行卡号),银行卡三要素(姓名+身份证号码+银行卡号)四要素(姓名+身份证号码+手机号+银行卡号)的一致性核验。',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1\\\\n\\",\\n \\"Code\\": \\"\\\\t\\\\nSuccess\\\\n\\",\\n \\"Message\\": \\"success\\\\n\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\\\n\\",\\n \\"SubCode\\": \\"\\\\t\\\\n205\\\\n\\",\\n \\"Passed\\": \\"Y\\",\\n \\"ExtFaceInfo\\": \\"{\\\\n\\\\\\"faceAttack\\\\\\": \\\\\\"N\\\\\\",\\\\n\\\\\\"faceComparisonScore\\\\\\": 52.57,\\\\n\\\\\\"facePassed\\\\\\": \\\\\\"N\\\\\\",\\\\n\\\\\\"authorityComparisonScore\\\\\\": 80.39\\\\n}\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"firstName\\\\\\": \\\\\\"**龙\\\\\\",\\\\n \\\\\\"lastName\\\\\\": \\\\\\"**\\\\\\",\\\\n \\\\\\"countryCode\\\\\\": \\\\\\"CHN\\\\\\",\\\\n \\\\\\"docType\\\\\\": \\\\\\"01560001\\\\\\",\\\\n \\\\\\"dateOfBirth\\\\\\": \\\\\\"2002-08-04\\\\\\",\\\\n \\\\\\"idNumber\\\\\\": \\\\\\"410************19\\\\\\"\\\\n },\\\\n \\\\\\"ocrIdPassed\\\\\\": \\\\\\"N\\\\\\",\\\\n \\\\\\"spoofInfo\\\\\\": {\\\\n \\\\\\"spoofResult\\\\\\": \\\\\\"Y\\\\\\",\\\\n }\\\\n}\\"\\n }\\n}","type":"json"}]',
],
- 'Mobile2MetaVerifyIntl' => [
- 'summary' => '手机号二要素核验API',
- 'path' => '',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'FaceCompare' => [
+ 'summary' => '通过人脸识别技术,可以对传入的两张人脸图片进行比对验证,返回人脸对比结果和相似度分值。',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -3708,60 +3199,52 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthPZCZ2I',
- ],
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeCode' => '165986',
+ 'abilityTreeNodes' => ['FEATUREcloudauth0KJCLK'],
],
'parameters' => [
[
- 'name' => 'ProductCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '产品code(固定值:MOBILE_2META)',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'MOBILE_2META',
- ],
+ 'name' => 'MerchantBizId',
+ 'in' => 'query',
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。', 'type' => 'string', 'required' => false, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888'],
],
[
- 'name' => 'ParamType',
+ 'name' => 'SourceFacePicture',
'in' => 'formData',
- 'schema' => [
- 'description' => '参数类型:'."\n"
- ."\n"
- .'- normal:不加密'."\n"
- .'- md5:md5加密',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'normal',
- ],
+ 'schema' => ['description' => '人像照片Base64编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- SourceFacePicture与SourceFacePictureUrl二选一。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
],
[
- 'name' => 'UserName',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '姓名:'."\n"
- ."\n"
- .'- paramType 传 normal 时:传入姓名明文。'."\n"
- .'- paramType 传 md5 时:传入姓名密文(输入32位小写md5字符串)。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '张*',
- ],
+ 'name' => 'SourceFacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸图片的HTTPS或HTTP地址。', 'type' => 'string', 'required' => false, 'example' => 'https://***face1.jpeg'],
],
[
- 'name' => 'Mobile',
+ 'name' => 'TargetFacePicture',
'in' => 'formData',
- 'schema' => [
- 'description' => '手机号码。'."\n"
- ."\n"
- .'- 当paramType取值normal时,输入明文'."\n"
- .'- 当paramType取值md5时,传入手机号码密文,输入32位小写md5字符串',
- 'type' => 'string',
- 'required' => true,
- 'example' => '186****1234',
- ],
+ 'schema' => ['description' => '底库照片Base64编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- TargetFacePicture与TargetFacePictureUrl二选一。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
+ ],
+ [
+ 'name' => 'TargetFacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '底库人脸图片的HTTPS或HTTP地址。', 'type' => 'string', 'required' => false, 'example' => 'https://***face2.jpeg'],
+ ],
+ [
+ 'name' => 'FacePictureQualityCheck',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否开启传入人脸图片质量检测', 'description' => '是否开启传入人脸图片质量检测><danger>已废弃></danger>', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'FaceQualityCheck',
+ 'in' => 'query',
+ 'schema' => ['title' => '人脸质量检测', 'description' => '人脸质量检测', 'type' => 'string', 'required' => false, 'example' => 'Y'],
],
],
'responses' => [
@@ -3771,42 +3254,38 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1'],
+ 'Code' => ['description' => '返回码。'."\n"
+ ."\n"
+ .'200:表示成功。'."\n"
+ .'其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'BizCode' => [
- 'description' => '核验结果码。'."\n"
- .'- 1:核验一致'."\n"
- .'- 2:核验不一致'."\n"
- .'- 3:未查得',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'IspName' => [
- 'description' => '运营商名称'."\n"
- ."\n"
- .'- CMCC:移动'."\n"
- .'- CUCC:联通'."\n"
- .'- CTCC:电信',
- 'type' => 'string',
- 'example' => 'CMCC',
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => '08573be80f944d95ac812e019e3655a8'],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过。'."\n"
+ .'- N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'FaceComparisonScore' => ['description' => '认证过程中所提交的人脸照片和人脸留底图片上人脸的比对分,取值范围:**0**~**100**。', 'type' => 'number', 'format' => 'double', 'example' => '98'],
+ 'ExtFaceInfo' => [
+ 'title' => '相关结果信息',
+ 'description' => '相关结果信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'FaceQualityScore' => ['title' => '综合质量分', 'description' => '综合质量分', 'type' => 'number', 'format' => 'double', 'example' => '39.04'],
+ 'OcclusionScore' => ['title' => '遮挡评分', 'description' => '遮挡评分', 'type' => 'number', 'format' => 'double', 'example' => '50.26'],
+ 'KaOcclusionScore' => ['title' => '关键区域遮挡评分', 'description' => '关键区域遮挡评分', 'type' => 'number', 'format' => 'double', 'example' => '20'],
+ 'IlluminationScore' => ['title' => '光照评分', 'description' => '光照评分', 'type' => 'number', 'format' => 'double', 'example' => '0.02'],
+ 'SharpnessScore' => ['title' => '清晰度分数', 'description' => '清晰度分数', 'type' => 'number', 'format' => 'double', 'example' => '86.47'],
+ 'TargetFaceQualityScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetOcclusionScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetSharpnessScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetKaOcclusionScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetIlluminationScore' => ['type' => 'number', 'format' => 'double'],
+ ],
],
],
],
@@ -3814,22 +3293,32 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"BizCode\\": \\"1\\",\\n \\"IspName\\": \\"CMCC\\"\\n }\\n}","type":"json"}]',
- 'title' => '手机号二要素核验',
- 'description' => '传入手机号、姓名,通过权威数据源验证其真实性和一致性。请确保在使用该接口前,已充分了解手机二要素产品的收费方式和价格',
- ],
- 'Mobile3MetaVerifyIntl' => [
- 'summary' => '传入手机号、姓名、身份证号,通过权威数据源验证其真实性和一致性,如果不一致,返回不一致的原因。',
- 'methods' => [
- 'post',
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '人脸比对',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FaceCompare'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceCompare',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"Passed\\": \\"Y\\",\\n \\"FaceComparisonScore\\": 98,\\n \\"ExtFaceInfo\\": {\\n \\"FaceQualityScore\\": 39.04,\\n \\"OcclusionScore\\": 50.26,\\n \\"KaOcclusionScore\\": 20,\\n \\"IlluminationScore\\": 0.02,\\n \\"SharpnessScore\\": 86.47,\\n \\"TargetFaceQualityScore\\": 0,\\n \\"TargetOcclusionScore\\": 0,\\n \\"TargetSharpnessScore\\": 0,\\n \\"TargetKaOcclusionScore\\": 0,\\n \\"TargetIlluminationScore\\": 0\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'FaceCompareV2' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -3841,73 +3330,66 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeCode' => '199210',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthPZCZ2I',
- ],
+ 'abilityTreeCode' => '165986',
+ 'abilityTreeNodes' => ['FEATUREcloudauth0KJCLK'],
],
'parameters' => [
[
- 'name' => 'ProductCode',
+ 'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '接入的产品方案,固定值:MOBILE_3META',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MOBILE_3META',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长 32 位,请确保唯一。', 'type' => 'string', 'required' => false, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888'."\n"],
],
[
- 'name' => 'ParamType',
+ 'name' => 'SourceFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像照片 Base64 编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ ."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- SourceFacePicture 与 SourceFacePictureUrl 与 SourceFacePictureFile 三选一。', 'type' => 'string', 'required' => false, 'example' => ' '."\n"
+ .'base64'."\n"],
+ ],
+ [
+ 'name' => 'SourceFacePictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '参数类型:'."\n"
- ."\n"
- .'- normal:不加密'."\n"
- .'- md5:md5加密',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'normal',
- ],
+ 'schema' => ['description' => '人脸图片的 HTTPS 或 HTTP 地址。', 'type' => 'string', 'required' => false, 'example' => 'https://***face1.jpeg'."\n"],
],
[
- 'name' => 'IdentifyNum',
+ 'name' => 'SourceFacePictureFile',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人脸图片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'TargetFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '底库照片 Base64 编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ ."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- TargetFacePicture 与 TargetFacePictureUrl 与 TargetFacePictureFile 三选一。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
+ ],
+ [
+ 'name' => 'TargetFacePictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '身份证号'."\n"
- ."\n"
- .'- 当paramType取值normal时,输入明文'."\n"
- .'- 当paramType取值md5时,输入32位小写md5字符串',
- 'type' => 'string',
- 'required' => false,
- 'example' => '429001********8211'."\n",
- ],
+ 'schema' => ['description' => '底库人脸图片的 HTTPS 或 HTTP 地址。', 'type' => 'string', 'required' => false, 'example' => 'https://***face2.jpeg'."\n"],
],
[
- 'name' => 'UserName',
+ 'name' => 'TargetFacePictureFile',
+ 'in' => 'formData',
+ 'schema' => ['description' => '底库人脸图片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'FacePictureQualityCheck',
'in' => 'query',
- 'schema' => [
- 'description' => '姓名'."\n"
- ."\n"
- .'- 当paramType取值normal时,输入明文'."\n"
- .'- 当paramType取值md5时,输入32位小写md5字符串',
- 'type' => 'string',
- 'required' => false,
- 'example' => '张*'."\n",
- ],
+ 'schema' => ['title' => '是否开启传入人脸图片质量检测', 'description' => '是否开启传入人脸图片质量检测'."\n"
+ .'><danger>已废弃></danger>', 'type' => 'string', 'required' => false, 'example' => 'N'],
],
[
- 'name' => 'Mobile',
+ 'name' => 'FaceQualityCheck',
'in' => 'query',
- 'schema' => [
- 'description' => '手机号码。'."\n"
- ."\n"
- .'- 当paramType取值normal时,输入明文'."\n"
- .'- 当paramType取值md5时,输入32位小写md5字符串',
- 'type' => 'string',
- 'required' => false,
- 'example' => '186****1234',
- ],
+ 'schema' => ['title' => '人脸质量检测', 'description' => '人脸质量检测', 'type' => 'string', 'required' => false, 'example' => 'Y'],
],
],
'responses' => [
@@ -3917,54 +3399,37 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求Id',
- 'type' => 'string',
- 'example' => 'D241532C-4EE9-5A2A-A5A5-C1FD98CE2EDD',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1'],
+ 'Code' => ['description' => '返回码。'."\n"
+ ."\n"
+ .'200:表示成功。 其它:表示错误码。错误码详情,请参见错误码。', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'BizCode' => [
- 'description' => '核验结果码。'."\n"
- .'- 1:核验一致'."\n"
- .'- 2:核验不一致'."\n"
- .'- 3:未查得',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'SubCode' => [
- 'description' => '核验详细结果'."\n"
- ."\n"
- .'- 101:验证通过 '."\n"
- .'- 201:⼿机号和姓名不⼀致,⼿机号和证件号不⼀致 '."\n"
- .'- 202:⼿机号和姓名⼀致,⼿机号和证件号不⼀致 '."\n"
- .'- 203:⼿机号和证件号⼀致,⼿机号和姓名不⼀致 '."\n"
- .'- 204:其他不⼀致'."\n"
- .'- 301:查⽆记录',
- 'type' => 'string',
- 'example' => '101',
- ],
- 'IspName' => [
- 'description' => '运营商名称'."\n"
- ."\n"
- .'- CMCC:移动'."\n"
- .'- CUCC:联通'."\n"
- .'- CTCC:电信',
- 'type' => 'string',
- 'example' => 'CMCC',
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => '08573be80f944d95ac812e019e3655a8'."\n"],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过。'."\n"
+ .'- N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'FaceComparisonScore' => ['description' => '认证过程中所提交的人脸照片和人脸留底图片上人脸的比对分,取值范围:0~100。', 'type' => 'number', 'format' => 'double', 'example' => '98'],
+ 'ExtFaceInfo' => [
+ 'title' => '相关结果信息',
+ 'description' => '相关结果信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'FaceQualityScore' => ['title' => '综合质量分', 'description' => '综合质量分', 'type' => 'number', 'format' => 'double', 'example' => '39.04'],
+ 'OcclusionScore' => ['title' => '遮挡评分', 'description' => '遮挡评分', 'type' => 'number', 'format' => 'double', 'example' => '50.26'],
+ 'KaOcclusionScore' => ['title' => '关键区域遮挡评分', 'description' => '关键区域遮挡评分', 'type' => 'number', 'format' => 'double', 'example' => '20'],
+ 'IlluminationScore' => ['title' => '光照评分', 'description' => '光照评分', 'type' => 'number', 'format' => 'double', 'example' => '0.02'],
+ 'SharpnessScore' => ['title' => '清晰度分数', 'description' => '清晰度分数', 'type' => 'number', 'format' => 'double', 'example' => '86.47'],
+ 'TargetFaceQualityScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetOcclusionScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetSharpnessScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetKaOcclusionScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetIlluminationScore' => ['type' => 'number', 'format' => 'double'],
+ ],
],
],
],
@@ -3972,100 +3437,92 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '人脸比对',
+ 'summary' => '通过人脸识别技术,可以对传入的两张人脸图片进行比对验证,返回人脸对比结果和相似度分值。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D241532C-4EE9-5A2A-A5A5-C1FD98CE2EDD\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"BizCode\\": \\"1\\",\\n \\"SubCode\\": \\"101\\",\\n \\"IspName\\": \\"CMCC\\"\\n }\\n}","type":"json"}]',
- 'title' => '手机号三要素核验',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\\\n\\",\\n \\"Passed\\": \\"Y\\",\\n \\"FaceComparisonScore\\": 98,\\n \\"ExtFaceInfo\\": {\\n \\"FaceQualityScore\\": 39.04,\\n \\"OcclusionScore\\": 50.26,\\n \\"KaOcclusionScore\\": 20,\\n \\"IlluminationScore\\": 0.02,\\n \\"SharpnessScore\\": 86.47,\\n \\"TargetFaceQualityScore\\": 0,\\n \\"TargetOcclusionScore\\": 0,\\n \\"TargetSharpnessScore\\": 0,\\n \\"TargetKaOcclusionScore\\": 0,\\n \\"TargetIlluminationScore\\": 0\\n }\\n }\\n}","type":"json"}]',
],
- 'CredentialRecognitionIntl' => [
- 'summary' => 'API接口,上传凭证图片,包括:水电煤、信用卡账单等,通过通义VL智能提取账单地址及姓名',
+ 'FaceCrossCompareIntl' => [
+ 'summary' => '人脸交叉比对',
'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthNYJI62',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '要接入的产品方案。取值CREDENTIAL_RECOGNITION。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'CREDENTIAL_RECOGNITION',
- ],
+ 'schema' => ['description' => '要接入的产品方案。取值:'."\n"
+ .'FACE_CROSS_COMPARE', 'type' => 'string', 'required' => true, 'example' => ' FACE_CROSS_COMPARE'],
],
[
- 'name' => 'CredentialOcrPictureBase64',
+ 'name' => 'SceneCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义业务场景ID', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
+ ],
+ [
+ 'name' => 'MerchantBizId',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。', 'type' => 'string', 'required' => true, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c35****'],
+ ],
+ [
+ 'name' => 'CompareModel',
+ 'in' => 'query',
+ 'schema' => ['description' => '比对模式'."\n"
+ .'- 0-链式比对(默认):A:B且B:C'."\n"
+ .'- 1-循环比对:A:B且B:C且C:A', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'SourceAFacePicture',
'in' => 'formData',
- 'schema' => [
- 'description' => '图片Base64编码。如果您选择IdOcrPictureBase64(照片Base64编码)方式传入照片,请注意检查照片大小,不要传入过大的照片。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'schema' => ['description' => '人像照片Base64编码。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
],
[
- 'name' => 'CredentialOcrPictureUrl',
+ 'name' => 'SourceAFacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://www.xxx.com/1.jpg'],
+ ],
+ [
+ 'name' => 'SourceBFacePicture',
'in' => 'formData',
- 'schema' => [
- 'description' => '图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://***',
- ],
+ 'schema' => ['description' => '人像照片Base64编码。', 'type' => 'string', 'required' => false, 'example' => 'base64'."\n"],
],
[
- 'name' => 'DocType',
+ 'name' => 'SourceBFacePictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '凭证类型。'."\n"
- .'- 交易凭据:01(包括:水、电、煤、信用卡等各类电子账单图片)',
- 'type' => 'string',
- 'required' => true,
- 'example' => '01',
- ],
+ 'schema' => ['description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://www.xxx.com/1.jpg'],
],
[
- 'name' => 'OcrArea',
+ 'name' => 'SourceCFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像照片Base64编码。', 'type' => 'string', 'required' => false, 'example' => 'base64'."\n"],
+ ],
+ [
+ 'name' => 'SourceCFacePictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '提取类型:'."\n"
- .'- 0101:电子账单地址&姓名模块(通过智能分析提取地址及姓名模块)',
- 'type' => 'string',
- 'required' => true,
- 'example' => '0101',
- ],
+ 'schema' => ['description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://www.xxx.com/1.jpg'],
],
[
- 'name' => 'FraudCheck',
+ 'name' => 'FaceVerifyThreshold',
'in' => 'query',
- 'schema' => [
- 'description' => '是否开启篡改检测'."\n"
- .'- true:开启'."\n"
- .'- false:关闭',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => '人脸匹配阈值。此参数为系统预留参数,暂不支持自定义。', 'type' => 'string', 'required' => false, 'example' => '-'],
],
],
'responses' => [
@@ -4075,68 +3532,52 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息的响应消息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '130A2C10-B9EE-4D84-88E3-5384FF039795'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'Success' => [
- 'description' => '提取结果。取值:'."\n"
- .'- S:成功。'."\n"
- .'- F:失败。',
- 'type' => 'string',
- 'example' => 'S',
- ],
- 'SubCode' => [
- 'description' => '认证结果描述',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'ExtIdInfo' => [
- 'description' => '识别的关键信息,JSON格式。',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "address": "",'."\n"
- .' "name":""'."\n"
- .'}',
- ],
+ 'FacePassed' => ['description' => '认证最终结果,取值:'."\n"
+ .'- Y:通过'."\n"
+ .'- N:不通过', 'type' => 'string', 'example' => 'Y'],
+ 'FaceComparisonScoreA2B' => ['description' => 'A比B 比对分取值范围0~1。', 'type' => 'number', 'format' => 'double', 'example' => '0.9999999999999999'],
+ 'FaceComparisonScoreB2C' => ['description' => 'B比C 比对分取值范围0~1。', 'type' => 'number', 'format' => 'double', 'example' => '0.9999999999999999'],
+ 'FaceComparisonScoreC2A' => ['description' => 'C比A 比对分取值范围0~1。', 'type' => 'number', 'format' => 'double', 'example' => '0.9999999999999999'],
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => '4ab0b***cbde97'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '人脸交叉比对',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceCrossCompareIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Success\\": \\"S\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"address\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"name\\\\\\":\\\\\\"\\\\\\"\\\\n}\\"\\n }\\n}","type":"json"}]',
- 'title' => '凭证识别',
- 'description' => '通过AI技术检测凭证(如水、电、煤、信用卡等电子账单)是否存在伪造,并对凭证进行关键信息提取。',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"130A2C10-B9EE-4D84-88E3-5384FF039795\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"FacePassed\\": \\"Y\\",\\n \\"FaceComparisonScoreA2B\\": 0.9999999999999999,\\n \\"FaceComparisonScoreB2C\\": 0.9999999999999999,\\n \\"FaceComparisonScoreC2A\\": 0.9999999999999999,\\n \\"TransactionId\\": \\"4ab0b***cbde97\\"\\n }\\n}","type":"json"}]',
],
- 'CredentialSubmitIntl' => [
- 'summary' => '凭证识别信息提交',
+ 'FaceDuplicationCheckIntl' => [
+ 'summary' => '人脸重复性检测(FaceDuplicationCheckIntl)适用于无法集成 SDK 的场景,通过 API 接口传入人脸图片,实现以下功能:验证用户是否为真人、与留存人脸进行比对验证身份、在人脸库中进行检索判断是否存在、支持验证通过后自动将人脸注册到指定人脸库中。',
'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -4148,95 +3589,118 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthS6WIN6',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '要接入的产品方案。取值CREDENTIAL_RECOGNITION。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'CREDENTIAL_RECOGNITION',
- ],
+ 'schema' => ['description' => '产品code', 'type' => 'string', 'required' => true, 'example' => 'FACE_IDU_MIN'],
],
[
'name' => 'SceneCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。支持长度为10位的字母、数字或下划线的组合。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '123****123',
- ],
+ 'in' => 'formData',
+ 'schema' => ['description' => '您自定义的认证场景ID。', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
],
[
'name' => 'MerchantBizId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'e0c34a***353888',
- ],
+ 'in' => 'formData',
+ 'schema' => ['description' => '自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。', 'type' => 'string', 'required' => true, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c35****'],
],
[
- 'name' => 'CredentialOcrPictureBase64',
+ 'name' => 'MerchantUserId',
'in' => 'formData',
- 'schema' => [
- 'description' => '图片Base64编码。如果您选择此方式传入照片,请注意检查照片大小,不要传入过大的照片。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'schema' => ['description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => true, 'example' => '1234567890'],
],
[
- 'name' => 'CredentialOcrPictureUrl',
+ 'name' => 'VerifyModel',
'in' => 'formData',
- 'schema' => [
- 'description' => '图片地址,公网可访问的HTTP、HTTPS链接。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://***',
- ],
+ 'schema' => ['description' => '验证类型:'."\n"
+ .'- 0:检索模式'."\n"
+ .'> - 功能:传入人脸库和用户人脸图片(sourceFacePicture)系统自动检索人脸库中是否已经存该指定人脸图片(sourceFacePicture),且人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
+ .'> - 建议场景:真人注册账号且不允许重复注册场景。'."\n"
+ ."\n"
+ .'- 1(默认):验证模式'."\n"
+ .'> - 功能:传入指定人脸图片(sourceFacePicture)与留底人脸图片(TargetFacePicture),系统自动验证是否与人脸一致,且指定人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
+ .'> - 建议场景:修改登录、账号等信息时需验证是否为本人操作的场景。'."\n"
+ ."\n"
+ .'- 2:综合模式'."\n"
+ .'> - 功能:同时传入人脸库、指定人脸图片(sourceFacePicture)与留底人脸图片(TargetFacePicture),系统自动检索人脸库中是否存在指定人脸图片(sourceFacePicture),是否与留底人脸一致,且指定人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
+ .'> - 建议场景:需要验证是新增用户且是本人操作场景。', 'type' => 'string', 'required' => true, 'example' => '1'],
],
[
- 'name' => 'DocType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '凭证类型:'."\n"
- .'- 02:车辆登记证明',
- 'type' => 'string',
- 'required' => true,
- 'example' => '02',
- ],
+ 'name' => 'Liveness',
+ 'in' => 'formData',
+ 'schema' => ['description' => '是否开启静默活体检测'."\n"
+ .'- 0:不开启'."\n"
+ .'- 1:开启', 'type' => 'string', 'required' => false, 'example' => '0'],
],
[
- 'name' => 'OcrArea',
- 'in' => 'query',
- 'schema' => [
- 'description' => '提取类型:'."\n"
- ."\n"
- .'- 0201:泰国车辆登记证明',
- 'type' => 'string',
- 'required' => true,
- 'example' => '0201',
- ],
+ 'name' => 'FaceGroupCodes',
+ 'in' => 'formData',
+ 'schema' => ['description' => '客户通过控制台创建的人脸库编码,最大支持同时查询10个人脸库。当传入多个人脸库编码时,以逗号区分。', 'type' => 'string', 'required' => false, 'example' => '1232344,23444'],
],
[
- 'name' => 'FraudCheck',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否开启篡改检测'."\n"
- .'- true:开启'."\n"
- .'- false:关闭',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'false',
- ],
+ 'name' => 'SourceFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像照片Base64编码。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
+ ],
+ [
+ 'name' => 'SourceFacePictureUrl',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://***face1.jpeg'],
+ ],
+ [
+ 'name' => 'TargetFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像照片Base64编码。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
+ ],
+ [
+ 'name' => 'TargetFacePictureUrl',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://***face2.jpeg'],
+ ],
+ [
+ 'name' => 'AutoRegistration',
+ 'in' => 'formData',
+ 'schema' => ['description' => '指检索未存在重复人脸,是否自动注册人脸到指定人脸库下。'."\n"
+ .'- 0:自动注册'."\n"
+ .'- 1:不注册(默认)', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'FaceRegisterGroupCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => '注册人脸库。', 'type' => 'string', 'required' => false, 'example' => '0e0c34a77f'],
+ ],
+ [
+ 'name' => 'SaveFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '保存人脸图片区分是'."\n"
+ .'- 0:人脸(默认)'."\n"
+ .'- 1:特征'."\n"
+ .'><warning>预留字段,暂无启用></warning>', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceVerifyThreshold',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人脸匹配阈值。><warning>预留字段,暂无启用></warning>', 'type' => 'string', 'required' => false, 'example' => '0.5'],
+ ],
+ [
+ 'name' => 'ReturnFaces',
+ 'in' => 'formData',
+ 'schema' => ['description' => '指匹配阈值之上存在多个人脸时,可通过该参数自定义返回数量'."\n"
+ .'- 默认返回1'."\n"
+ .'- 最大支持5', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'FaceQualityCheck',
+ 'in' => 'formData',
+ 'schema' => ['title' => '人脸质量检测', 'description' => '人脸质量检测', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'FaceAttributeCheck',
+ 'in' => 'formData',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -4246,30 +3710,56 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识。',
- 'type' => 'string',
- 'example' => '4ab0b***cbde97',
+ 'FacePassed' => ['description' => '认证最终结果,取值:'."\n"
+ .'- Y:通过'."\n"
+ .'- N:不通过', 'type' => 'string', 'example' => 'Y'],
+ 'FaceComparisonScore' => ['description' => '当验证模式为1或2时返回1:1验证的比对分'."\n"
+ .'比对分取值范围0~100。', 'type' => 'string', 'example' => '98'],
+ 'DuplicateFace' => ['description' => '检测存在重复人脸时返回检索到的人脸库人脸ID和UserID。', 'type' => 'string', 'example' => '['."\n"
+ .' {'."\n"
+ .' "faceGroupCode": "sg7****uzt",'."\n"
+ .' "faceId": "f5a921*******9e792ec84c8f0ca592a",'."\n"
+ .' "merchantUserId": "fa****01"'."\n"
+ .' }'."\n"
+ .']'],
+ 'FaceRegistrationResult' => ['description' => '人脸注册结果 '."\n"
+ .'- 0 失败 '."\n"
+ .'- 1成功', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'FaceRegistrationId' => ['description' => '仅当客户设置自动注册,人脸注册成功时返回对应FACEID。', 'type' => 'string', 'example' => '9e792ec84c8f0ca592a'],
+ 'FaceAttack' => ['description' => '采集人脸是否涉及活体攻击,攻击为Y,否则为N。'."\n"
+ .'当开启静默活体检测时返回', 'type' => 'string', 'example' => 'N'],
+ 'FaceAttackScore' => ['description' => '人脸静默活体检测攻击的概率。取值范围0~100。'."\n"
+ .'当开启静默活体检测时返回', 'type' => 'string', 'example' => '99'],
+ 'FaceAge' => ['description' => '人脸预测的参考年龄,可能存在预测失败无法返回的情况。', 'type' => 'string', 'example' => '30'],
+ 'FaceGender' => ['description' => '人脸图片预测的性别,可能存在预测失败无法返回的情况。'."\n"
+ .'- M:男'."\n"
+ .'- F:女', 'type' => 'string', 'example' => 'M'],
+ 'SubCode' => ['description' => '认证结果描述。更多信息,请参ResultObject.SubCode错误码说明。', 'type' => 'string', 'example' => '200'],
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => '4ab0b***cbde97'],
+ 'ExtFaceInfo' => [
+ 'title' => '相关结果信息',
+ 'description' => '相关结果信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'FaceQualityScore' => ['title' => '综合质量分', 'description' => '综合质量分', 'type' => 'number', 'format' => 'double', 'example' => '39.04'],
+ 'OcclusionScore' => ['title' => '遮挡评分', 'description' => '遮挡评分', 'type' => 'number', 'format' => 'double', 'example' => '50.26'],
+ 'KaOcclusionScore' => ['title' => '关键区域遮挡评分', 'description' => '关键区域遮挡评分', 'type' => 'number', 'format' => 'double', 'example' => '20'],
+ 'IlluminationScore' => ['title' => '光照评分', 'description' => '光照评分', 'type' => 'number', 'format' => 'double', 'example' => '0.02'],
+ 'SharpnessScore' => ['title' => '清晰度分数', 'description' => '清晰度分数', 'type' => 'number', 'format' => 'double', 'example' => '86.47'],
+ 'TargetFaceQualityScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetOcclusionScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetKaOcclusionScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetIlluminationScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetSharpnessScore' => ['type' => 'number', 'format' => 'double'],
+ 'FaceAttributeInfo' => ['type' => 'string'],
+ ],
],
],
],
@@ -4277,22 +3767,31 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '纯服务端活体人脸防重注册(FACE_IDU_MIN)',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceDuplicationCheckIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\"\\n }\\n}","type":"json"}]',
- 'title' => '凭证识别任务提交(异步)',
- 'description' => '凭证识别OCR初始化接口,通过本接口获取transactionId。',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"FacePassed\\": \\"Y\\",\\n \\"FaceComparisonScore\\": \\"98\\",\\n \\"DuplicateFace\\": \\"[\\\\n {\\\\n \\\\\\"faceGroupCode\\\\\\": \\\\\\"sg7****uzt\\\\\\",\\\\n \\\\\\"faceId\\\\\\": \\\\\\"f5a921*******9e792ec84c8f0ca592a\\\\\\",\\\\n \\\\\\"merchantUserId\\\\\\": \\\\\\"fa****01\\\\\\"\\\\n }\\\\n]\\",\\n \\"FaceRegistrationResult\\": 0,\\n \\"FaceRegistrationId\\": \\"9e792ec84c8f0ca592a\\",\\n \\"FaceAttack\\": \\"N\\",\\n \\"FaceAttackScore\\": \\"99\\",\\n \\"FaceAge\\": \\"30\\",\\n \\"FaceGender\\": \\"M\\",\\n \\"SubCode\\": \\"200\\",\\n \\"TransactionId\\": \\"4ab0b***cbde97\\",\\n \\"ExtFaceInfo\\": {\\n \\"FaceQualityScore\\": 39.04,\\n \\"OcclusionScore\\": 50.26,\\n \\"KaOcclusionScore\\": 20,\\n \\"IlluminationScore\\": 0.02,\\n \\"SharpnessScore\\": 86.47,\\n \\"TargetFaceQualityScore\\": 0,\\n \\"TargetOcclusionScore\\": 0,\\n \\"TargetKaOcclusionScore\\": 0,\\n \\"TargetIlluminationScore\\": 0,\\n \\"TargetSharpnessScore\\": 0,\\n \\"FaceAttributeInfo\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
],
- 'CredentialGetResultIntl' => [
- 'summary' => '凭证识别结果查询',
- 'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'FaceGuardRisk' => [
+ 'summary' => '国际人脸保镖纯服务端接口',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -4304,20 +3803,34 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthS6WIN6',
- ],
+ 'abilityTreeCode' => '253422',
+ 'abilityTreeNodes' => ['FEATUREcloudauthCS0SDG'],
],
'parameters' => [
[
- 'name' => 'TransactionId',
+ 'name' => 'DeviceToken',
'in' => 'query',
- 'schema' => [
- 'description' => '认证请求的唯一标识',
- 'type' => 'string',
- 'required' => true,
- 'example' => '4ab0b***abde97',
- ],
+ 'schema' => ['description' => '通过人脸保镖SDK获取deviceToken', 'type' => 'string', 'required' => false, 'example' => 'Tk9SSUQuMS*****************ZDNmNWY5NzQxOW1o'],
+ ],
+ [
+ 'name' => 'MerchantBizId',
+ 'in' => 'query',
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一', 'type' => 'string', 'required' => false, 'example' => '0c83ce0101d34eff886b1f7d1cdef67f'],
+ ],
+ [
+ 'name' => 'ProductCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '产品code(固定值:FACE_GUARD)', 'type' => 'string', 'required' => false, 'example' => 'FACE_GUARD'],
+ ],
+ [
+ 'name' => 'BizId',
+ 'in' => 'query',
+ 'schema' => ['description' => '客户业务ID', 'type' => 'string', 'required' => false, 'example' => 'LMALL20******001'],
+ ],
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -4327,69 +3840,55 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '595E387B-3F0E-5C52-BD02-8EFE63D41FD5'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'Status' => [
- 'description' => '任务状态:'."\n"
- .'- PROCESSING:执行中(请继续轮询)'."\n"
- .'- SUCCESS:执行成功'."\n"
- .'- FAILED:执行失败',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
- 'SubCode' => [
- 'description' => '认证结果描述。更多信息,请参ResultObject.SubCode错误码说明。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'ExtIdInfo' => [
- 'description' => '识别的关键信息,JSON格式。',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "address": "",'."\n"
- .' "name":""'."\n"
- .'}',
- ],
+ 'RiskTags' => ['description' => '设备风险标签。'."\n"
+ ."\n"
+ .'- 多个设备风险标签以半角逗号(,)分隔,如“ROOT,VPN,HOOK”,'."\n"
+ ."\n"
+ .'- 如需了解更多设备风险标签及其含义,请参见官方文档人脸保镖标签说明。', 'type' => 'string', 'example' => 'ROOT,VPN,HOOK'],
+ 'RiskExtends' => ['description' => '拓展信息,JSON格式。(按租户需求定制返回)', 'type' => 'string', 'example' => '默认为空'],
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => 'hk573be80f944d95ac812e019e3655a8'],
+ 'GuardRiskScore' => ['description' => '人脸保镖算法预测的设备风险可能性,分数越高代表设备风险越高。'."\n"
+ ."\n"
+ .'分值取值:0~100。', 'type' => 'number', 'format' => 'double', 'example' => '0'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Status\\": \\"SUCCESS\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"{\\\\n \\\\\\"address\\\\\\": \\\\\\"\\\\\\",\\\\n \\\\\\"name\\\\\\":\\\\\\"\\\\\\"\\\\n}\\"\\n }\\n}","type":"json"}]',
- 'title' => '凭证识别结果查询(异步)',
- 'description' => '当您获取到TransactionId之后,可以在服务端通过该接口获取相应的认证结果。',
- ],
- 'CredentialVerifyIntl' => [
- 'summary' => '凭证核验服务的API接口。接口可以将传入的凭证图片通过大模型进行图片篡改及伪造检测、图片质量检测。',
- 'path' => '',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '设备助手',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FaceGuardRisk'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceGuardRisk',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"595E387B-3F0E-5C52-BD02-8EFE63D41FD5\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"RiskTags\\": \\"ROOT,VPN,HOOK\\",\\n \\"RiskExtends\\": \\"默认为空\\",\\n \\"TransactionId\\": \\"hk573be80f944d95ac812e019e3655a8\\",\\n \\"GuardRiskScore\\": 0\\n }\\n}","type":"json"}]',
+ ],
+ 'FaceLiveness' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4401,77 +3900,70 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthNYJI62',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '175619',
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
- 'name' => 'CredType',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '凭证类型:'."\n"
- ."\n"
- .'- 03:企业资质类'."\n"
- .'- 04:交易凭据类',
- 'type' => 'string',
- 'required' => true,
- 'example' => '03',
- ],
+ 'schema' => ['description' => '产品code', 'type' => 'string', 'required' => false, 'example' => 'FACE_LIVENESS_MIN'],
],
[
- 'name' => 'CredName',
+ 'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '凭证名称(取数字代码):'."\n"
- ."\n"
- .'- 03开头:企业资质类'."\n"
- .' - 0301:中国内地工商营业执照'."\n"
- .'- 04开头,交易凭据'."\n"
- .' - 0401:银行流水'."\n"
- .' - 0402:薪资条'."\n"
- .' - 0403:水电账单'."\n"
- .' - 0405:信用卡账单'."\n"
- .' - 0499:其他',
- 'type' => 'string',
- 'required' => true,
- 'example' => '0301',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一', 'type' => 'string', 'required' => false, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c353888'],
],
[
- 'name' => 'ImageUrl',
+ 'name' => 'MerchantUserId',
'in' => 'query',
- 'schema' => [
- 'description' => '图片的地址。'."\n"
- .'> ImageUrl和ImageFile任选其中一个。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://oss-bj01.avic.com/eavic-prod-commodity/pic/commodity/94677ee6-1067-4287-8ff4-6e030ef3a5a8.jpg',
- ],
+ 'schema' => ['description' => '商户用户ID,或可用于识别特定用户的其他标识符,例如手机号码、电子邮件地址等。强烈建议对userId字段的值进行预脱敏处理,例如对该值进行hash处理', 'type' => 'string', 'required' => false, 'example' => '123456789'],
],
[
- 'name' => 'ImageFile',
+ 'name' => 'FacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸照片地址', 'type' => 'string', 'required' => false, 'example' => 'https://digital-face-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'],
+ ],
+ [
+ 'name' => 'FacePictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '图片输入流。'."\n"
- .'> ImageUrl和ImageFile任选其中一个。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '无',
- 'isFileTransferUrl' => true,
- ],
+ 'schema' => ['description' => '照片Base64编码。'."\n"
+ ."\n"
+ .'说明:'."\n"
+ .'- 如果您选择FacePictureBase64(照片Base64编码)方式传入人脸照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'Base64'],
],
[
- 'name' => 'ProductCode',
+ 'name' => 'FaceQuality',
'in' => 'query',
- 'schema' => [
- 'description' => '调用模式:'."\n"
- .'- ANTI_FAKE_CHECK:图片质量、篡改检测。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '取值:ANTI_FAKE_CHECK',
- ],
+ 'schema' => ['description' => '是否输出人脸质量分,默认不允许,T/F'."\n"
+ .'- T:表示需要检测'."\n"
+ .'- F:表示需要检测(默认F)', 'type' => 'string', 'required' => false, 'example' => 'T'],
+ ],
+ [
+ 'name' => 'Crop',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否允许裁剪,默认不允许,T/F'."\n"
+ ."\n"
+ .'- T:表示需要检测'."\n"
+ .'- F:表示需要检测(默认F)', 'type' => 'string', 'required' => false, 'example' => 'T'],
+ ],
+ [
+ 'name' => 'Occlusion',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否进行遮挡检测,默认不允许T/F'."\n"
+ ."\n"
+ .'- T:表示需要检测'."\n"
+ .'- F:表示需要检测(默认F)', 'type' => 'string', 'required' => false, 'example' => 'T'],
+ ],
+ [
+ 'name' => 'FaceQualityCheck',
+ 'in' => 'query',
+ 'schema' => ['title' => '人脸质量检测', 'description' => '人脸质量检测', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'FaceAttributeCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -4481,92 +3973,72 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '130A2C10-B9EE-4D84-88E3-5384FF039795',
- ],
- 'Code' => [
- 'description' => '返回码:200为成功,其他为失败。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'ResultObject' => [
- 'description' => '返回的结果信息。',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '阿里云为该请求生成的唯一标识符', 'type' => 'string', 'example' => '42EA58CA-5DF4-55D5-82C4-5E7A40DA62BA'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回结果的提示信息', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'Result' => [
- 'description' => '风险结果:'."\n"
- ."\n"
- .'- **0**:低风险'."\n"
- .'- **1**:高风险'."\n"
- .'- **2**:可疑',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'RiskTag' => [
- 'description' => '风险标签,多个标签用半角逗号(,)隔开,包括:'."\n"
- ."\n"
- .'- PS:图片PS。'."\n"
- .'- SCREEN_PHOTO:屏幕翻拍。'."\n"
- .'- SCREENSHOT:屏幕截屏。'."\n"
- .'- ORIGINAL_PHOTO:非原始图。',
- 'type' => 'string',
- 'example' => 'PS',
- ],
- 'RiskScore' => [
- 'description' => '风险分值Map',
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '08573be80f944d95ac812e019e3655a8'],
+ 'Passed' => ['description' => '认证是否通过'."\n"
+ ."\n"
+ .'- Y:通过'."\n"
+ .'- N:不通过', 'type' => 'string', 'example' => 'N'],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '205'],
+ 'ExtFaceInfo' => [
+ 'description' => '人脸结果信息',
'type' => 'object',
- 'additionalProperties' => [
- 'type' => 'string',
- 'example' => '{'."\n"
- .'"PS": "0.0211",'."\n"
- .'"SCREEN_PHOTO": "0.0101",'."\n"
- .'"SCREENSHOT": "0.0521"'."\n"
- .'}',
- 'description' => '风险分值',
+ 'properties' => [
+ 'FaceQualityScore' => ['description' => '人脸质量分(0~100),当且仅当入参质量分开关打开时返回', 'type' => 'number', 'format' => 'double', 'example' => '87.19'],
+ 'OcclusionResult' => ['description' => '遮挡检测结果,Y (遮挡) /N (无遮挡),当且仅当遮挡检测开关打开时返回', 'type' => 'string', 'example' => 'Y'],
+ 'FaceAttack' => ['description' => '活体检测结果,Y(攻击)/N(正常)', 'type' => 'string', 'example' => 'Y'],
+ 'FaceGender' => ['description' => '人脸图片预测的性别,可能存在预测失败无结果值的情况。'."\n"
+ ."\n"
+ .'- M:男'."\n"
+ .'- F:女', 'type' => 'string', 'example' => 'M'],
+ 'FaceAge' => ['description' => '人脸预测的参考年龄,可能存在预测失败无结果值的情况。', 'type' => 'integer', 'format' => 'int32', 'example' => '18'],
+ 'OcclusionScore' => ['title' => '遮挡评分', 'description' => '遮挡评分', 'type' => 'number', 'format' => 'double', 'example' => '50.26'],
+ 'KaOcclusionScore' => ['title' => '关键区域遮挡评分', 'description' => '关键区域遮挡评分', 'type' => 'number', 'format' => 'double', 'example' => '20'],
+ 'IlluminationScore' => ['title' => '光照评分', 'description' => '光照评分', 'type' => 'number', 'format' => 'double', 'example' => '0.02'],
+ 'SharpnessScore' => ['title' => '清晰度分数', 'description' => '清晰度分数', 'type' => 'number', 'format' => 'double', 'example' => '86.47'],
+ 'FaceAttributeInfo' => ['type' => 'string'],
],
],
- 'MaterialInfo' => [
- 'description' => '其他信息,JSON格式。',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "sameBackgroundDetail": {'."\n"
- .' // 相似背景对于的原始图请求RequestId'."\n"
- .' "originalRequestId": "130A2C10-B9EE-4D84-88E3-5384FF03****";'."\n"
- .' // 相似背景对于的原始图请求商户ID '."\n"
- .' "originalMerchantId": "xxxxxxxx" '."\n"
- .' }'."\n"
- .'}',
- ],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"130A2C10-B9EE-4D84-88E3-5384FF039795\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"Result\\": \\"1\\",\\n \\"RiskTag\\": \\"PS\\",\\n \\"RiskScore\\": {\\n \\"key\\": \\"{\\\\n\\\\\\"PS\\\\\\": \\\\\\"0.0211\\\\\\",\\\\n\\\\\\"SCREEN_PHOTO\\\\\\": \\\\\\"0.0101\\\\\\",\\\\n\\\\\\"SCREENSHOT\\\\\\": \\\\\\"0.0521\\\\\\"\\\\n}\\"\\n },\\n \\"MaterialInfo\\": \\"{\\\\n \\\\\\"sameBackgroundDetail\\\\\\": {\\\\n // 相似背景对于的原始图请求RequestId\\\\n \\\\\\"originalRequestId\\\\\\": \\\\\\"130A2C10-B9EE-4D84-88E3-5384FF03****\\\\\\";\\\\n // 相似背景对于的原始图请求商户ID \\\\n \\\\\\"originalMerchantId\\\\\\": \\\\\\"xxxxxxxx\\\\\\" \\\\n }\\\\n}\\"\\n }\\n}","type":"json"}]',
- 'title' => '凭证篡改检测',
- 'description' => '传入凭证图片信息,执行图片质量、篡改及伪造检测,返回检测结果',
- ],
- 'AddressVerifyV2Intl' => [
- 'summary' => '地址核验',
- 'methods' => [
- 'post',
- 'get',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '人脸静默活体(FACE_LIVENESS_MIN)',
+ 'summary' => '静默活体纯服务端能力Api',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FaceLiveness'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceLiveness',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"42EA58CA-5DF4-55D5-82C4-5E7A40DA62BA\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"Passed\\": \\"N\\",\\n \\"SubCode\\": \\"205\\",\\n \\"ExtFaceInfo\\": {\\n \\"FaceQualityScore\\": 87.19,\\n \\"OcclusionResult\\": \\"Y\\",\\n \\"FaceAttack\\": \\"Y\\",\\n \\"FaceGender\\": \\"M\\",\\n \\"FaceAge\\": 18,\\n \\"OcclusionScore\\": 50.26,\\n \\"KaOcclusionScore\\": 20,\\n \\"IlluminationScore\\": 0.02,\\n \\"SharpnessScore\\": 86.47,\\n \\"FaceAttributeInfo\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
+ ],
+ 'FaceLivenessV2' => [
+ 'path' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -4578,75 +4050,61 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthZN5W38',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'query',
'schema' => [
- 'description' => '产品code(固定值:ADD_VERIFY_PRO)',
+ 'description' => '要接入的产品方案。取值FACE_LIVENESS_MIN_PRO / FACE_LIVENESS_MIN',
'type' => 'string',
'required' => true,
- 'example' => 'ADD_VERIFY_PRO',
+ 'enumValueTitles' => ['FACE_LIVENESS_MIN' => 'FACE_LIVENESS_MIN', 'FACE_LIVENESS_MIN_PRO' => 'FACE_LIVENESS_MIN_PRO'],
+ 'example' => 'FACE_LIVENESS_MIN_PRO',
],
],
[
- 'name' => 'VerifyType',
+ 'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '地址核验方式:'."\n"
- ."\n"
- .'- HOME:家庭地址核验'."\n"
- .'- WORK:工作地址核验',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'HOME',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一', 'type' => 'string', 'required' => false, 'example' => 'e0c34a***353888'],
],
[
- 'name' => 'Mobile',
+ 'name' => 'MerchantUserId',
'in' => 'query',
- 'schema' => [
- 'description' => '支持中国手机号码',
- 'type' => 'string',
- 'required' => false,
- 'example' => '1872334****',
- ],
+ 'schema' => ['description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '123456789'],
],
[
- 'name' => 'RegCountry',
+ 'name' => 'FacePictureBase64',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像图片 Base64 编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ ."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- FacePictureBase64 和 FacePictureUrl 和 FacePictureFile 三选一。', 'type' => 'string', 'required' => false, 'example' => 'Base64'],
+ ],
+ [
+ 'name' => 'FacePictureUrl',
'in' => 'query',
- 'schema' => [
- 'description' => '禁止国家列表',
- 'type' => 'string',
- 'required' => true,
- 'example' => '目前仅支持:USA',
- ],
+ 'schema' => ['description' => '人脸照片地址。公网可访问的HTTPS链接', 'type' => 'string', 'required' => false, 'example' => 'https://***'],
],
[
- 'name' => 'Text',
+ 'name' => 'FacePictureFile',
'in' => 'query',
- 'schema' => [
- 'description' => '详细地址文本内容',
- 'type' => 'string',
- 'required' => false,
- 'example' => '江苏省常州市*******小区',
- ],
+ 'schema' => ['description' => '人脸照片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
],
[
- 'name' => 'DeviceToken',
+ 'name' => 'FaceQualityCheck',
'in' => 'query',
- 'schema' => [
- 'description' => '设备Token,用于风险识别。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Tk9SSUQuMS*****************ZDNmNWY5NzQxOW1o',
- ],
+ 'schema' => ['description' => '是否检测人脸图片质量'."\n"
+ .'- Y:开启'."\n"
+ .'- N:关闭(默认)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'FaceAttributeCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -4656,51 +4114,37 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '7F971622-38C0-5F56-B2EC-315367979B4F',
- ],
- 'Code' => [
- 'description' => '接口返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'TransactionId' => [
- 'description' => '认证ID',
- 'type' => 'string',
- 'example' => 'hksb7ba1b28130d24e015d69********',
- ],
- 'BizCode' => [
- 'description' => '验证结果:'."\n"
- .'- 1:通过'."\n"
- .'- 2:不通过(设备位于禁止区域) '."\n"
- .'- 3:无法判断',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'Detail' => [
- 'description' => '验证详情,包括:'."\n"
- ."\n"
- .'- distanceRange:位置区间 '."\n"
- .'- ispName: 运营商名称 '."\n"
- .'- phoneStatus:手机状态 0-非正常 1-正常 (未知)',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "distanceRange": "0-3000",'."\n"
- .' "ispName": "CTCC",'."\n"
- .' "phoneStatus": "1"'."\n"
- .'}',
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => 'hksb7ba1b28130d24e015d694361****'],
+ 'Passed' => ['description' => '认证是否通过。'."\n"
+ ."\n"
+ .'- Y:通过。'."\n"
+ .'- N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '200'],
+ 'ExtFaceInfo' => [
+ 'description' => '人脸结果信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'FaceQualityScore' => ['description' => '活体人脸质量分数。取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '79.04'],
+ 'OcclusionResult' => ['description' => '有脸部遮挡,有脸部遮挡为Y,否则为N。', 'type' => 'string', 'example' => 'Y'],
+ 'FaceAttack' => ['description' => '活体检测结果,Y(攻击)/N(正常)', 'type' => 'string', 'example' => 'Y'],
+ 'FaceGender' => ['description' => '人脸图片预测的性别,可能存在预测失败无结果值的情况。'."\n"
+ ."\n"
+ .'- M:男'."\n"
+ .'- F:女', 'type' => 'string', 'example' => 'M'],
+ 'FaceAge' => ['description' => '人脸预测的参考年龄,可能存在预测失败无结果值的情况。', 'type' => 'integer', 'format' => 'int64', 'example' => '18'],
+ 'OcclusionScore' => ['description' => '质量判断子维度,遮挡的算法分数,取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '50.26'],
+ 'KaOcclusionScore' => ['description' => '质量判断子维度,关键区域遮挡的算法分数,取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '100'],
+ 'IlluminationScore' => ['description' => '质量判断子维度,光照的算法分数,取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '97.43'],
+ 'SharpnessScore' => ['description' => '质量判断子维度,图片清晰度分数,取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '60.78'],
+ 'FaceAttributeInfo' => ['type' => 'string'],
+ ],
],
],
],
@@ -4708,21 +4152,21 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '人脸活体检测',
+ 'summary' => '指通过API接口传入提前获取的人脸图片进行真实人脸检测的服务,结合Qwen-VL大模型深入检测伪造风险,判断是否为真人。',
+ 'description' => '调用FaceLivenessV2接口对人脸图片进行活体检测。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7F971622-38C0-5F56-B2EC-315367979B4F\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"hksb7ba1b28130d24e015d69********\\",\\n \\"BizCode\\": \\"1\\",\\n \\"Detail\\": \\"{\\\\n \\\\\\"distanceRange\\\\\\": \\\\\\"0-3000\\\\\\",\\\\n \\\\\\"ispName\\\\\\": \\\\\\"CTCC\\\\\\",\\\\n \\\\\\"phoneStatus\\\\\\": \\\\\\"1\\\\\\"\\\\n}\\"\\n }\\n}","type":"json"}]',
- 'title' => '地址核验',
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"hksb7ba1b28130d24e015d694361****\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtFaceInfo\\": {\\n \\"FaceQualityScore\\": 79.04,\\n \\"OcclusionResult\\": \\"Y\\",\\n \\"FaceAttack\\": \\"Y\\",\\n \\"FaceGender\\": \\"M\\",\\n \\"FaceAge\\": 18,\\n \\"OcclusionScore\\": 50.26,\\n \\"KaOcclusionScore\\": 100,\\n \\"IlluminationScore\\": 97.43,\\n \\"SharpnessScore\\": 60.78,\\n \\"FaceAttributeInfo\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
],
- 'AddressCompareIntl' => [
- 'summary' => '地址相似比对',
+ 'FaceVerifyIntl' => [
'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -4734,51 +4178,131 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthNOQ41U',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
'name' => 'ProductCode',
'in' => 'query',
'schema' => [
- 'description' => 'ADD_VERIFY',
+ 'description' => '产品Code:FACE_VERIFY_MIN / FACE_IDU_MIN',
'type' => 'string',
'required' => true,
- 'example' => '固定值:ADD_VERIFY',
+ 'enumValueTitles' => ['FACE_IDU_MIN' => 'FACE_IDU_MIN', 'FACE_VERIFY_MIN' => 'FACE_VERIFY_MIN'],
+ 'example' => 'FACE_VERIFY_MIN',
],
],
[
- 'name' => 'Text1',
+ 'name' => 'MerchantUserId',
'in' => 'query',
- 'schema' => [
- 'description' => '地址1',
- 'type' => 'string',
- 'required' => true,
- 'example' => '杭州市阿里巴巴西溪园区',
- ],
+ 'schema' => ['description' => '自定义的用户 ID,或者其他可以识别特定用户的标识,例如:手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '123456789'],
],
[
- 'name' => 'Text2',
+ 'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '地址2',
- 'type' => 'string',
- 'required' => true,
- 'example' => '杭州市文一西路969号1号楼',
- ],
+ 'schema' => ['description' => '自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。', 'type' => 'string', 'required' => false, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c35****'],
],
[
- 'name' => 'DefaultCountry',
+ 'name' => 'FaceQualityCheck',
'in' => 'query',
- 'schema' => [
- 'description' => '国家名称'."\n"
- .'- 中国',
- 'type' => 'string',
- 'required' => true,
- 'example' => '固定值:中国',
- ],
+ 'schema' => ['description' => '是否检测人脸图片质量'."\n"
+ .'- Y:开启'."\n"
+ .'- N:关闭(默认)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'TargetFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '底库照片 Base64 编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ ."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- TargetFacePicture 与 TargetFacePictureUrl 与 TargetFacePictureFile 三选一。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
+ ],
+ [
+ 'name' => 'TargetFacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '底库人脸图片的 HTTPS地址。', 'type' => 'string', 'required' => false, 'example' => 'https://***face2.jpeg'],
+ ],
+ [
+ 'name' => 'TargetFacePictureFile',
+ 'in' => 'query',
+ 'schema' => ['description' => '底库人脸图片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'SourceFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人像照片 Base64 编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ ."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- SourceFacePicture 与 SourceFacePictureUrl 与 SourceFacePictureFile 三选一。', 'type' => 'string', 'required' => false, 'example' => ' '."\n"
+ .'base64'."\n"],
+ ],
+ [
+ 'name' => 'SourceFacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '人像图片地址,公网可访问的HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://***face1.jpeg'],
+ ],
+ [
+ 'name' => 'SourceFacePictureFile',
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸图片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'VerifyModel',
+ 'in' => 'query',
+ 'schema' => ['description' => '当ProductCode=FACE_IDU_MIN,需要入参'."\n"
+ .'验证类型:'."\n"
+ .'- 0:检索模式'."\n"
+ .'> - 功能:传入人脸库和用户人脸图片(sourceFacePicture)系统自动检索人脸库中是否已经存该指定人脸图片(sourceFacePicture),且人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
+ .'> - 建议场景:真人注册账号且不允许重复注册场景。'."\n"
+ ."\n"
+ .'- 1(默认):验证模式'."\n"
+ .'> - 功能:传入指定人脸图片(sourceFacePicture)与留底人脸图片(TargetFacePicture),系统自动验证是否与人脸一致,且指定人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
+ .'> - 建议场景:修改登录、账号等信息时需验证是否为本人操作的场景。'."\n"
+ ."\n"
+ .'- 2:综合模式'."\n"
+ .'> - 功能:同时传入人脸库、指定人脸图片(sourceFacePicture)与留底人脸图片(TargetFacePicture),系统自动检索人脸库中是否存在指定人脸图片(sourceFacePicture),是否与留底人脸一致,且指定人脸图片(sourceFacePicture)支持开启静默活体检测。'."\n"
+ .'> - 建议场景:需要验证是新增用户且是本人操作场景。', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceGroupCodes',
+ 'in' => 'query',
+ 'schema' => ['description' => '当ProductCode=FACE_IDU_MIN,需要入参'."\n"
+ ."\n"
+ .'客户通过控制台创建的人脸库编码,最大支持同时查询10个人脸库。当传入多个人脸库编码时,以逗号区分。', 'type' => 'string', 'required' => false, 'example' => '1232344,23444'],
+ ],
+ [
+ 'name' => 'AutoRegistration',
+ 'in' => 'query',
+ 'schema' => ['description' => '当ProductCode=FACE_IDU_MIN,需要入参'."\n"
+ ."\n"
+ .'指检索未存在重复人脸,是否自动注册人脸到指定人脸库下。'."\n"
+ .'- 0:自动注册'."\n"
+ .'- 1:不注册(默认)', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'FaceRegisterGroupCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '当ProductCode=FACE_IDU_MIN,需要入参'."\n"
+ ."\n"
+ .'注册人脸库。', 'type' => 'string', 'required' => false, 'example' => '0e0c34a77f'],
+ ],
+ [
+ 'name' => 'ReturnFaces',
+ 'in' => 'query',
+ 'schema' => ['description' => '当ProductCode=FACE_IDU_MIN,需要入参'."\n"
+ ."\n"
+ .'指匹配阈值之上存在多个人脸时,可通过该参数自定义返回数量'."\n"
+ .'- 默认返回1'."\n"
+ .'- 最大支持5', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'FaceAttributeCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
],
],
'responses' => [
@@ -4788,47 +4312,54 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'."\n",
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'."\n"],
'Result' => [
- 'description' => '返回结果。',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'Data' => [
- 'description' => 'sameLevel取值包括:'."\n"
- .'- all:完全相同'."\n"
- .'- prov:省级 '."\n"
- .'- city:市'."\n"
- .'- district: 区'."\n"
- .'- town:街道'."\n"
- .'- road:道路'."\n"
- .'- roadno:道路编号'."\n"
- .'- poi:小区'."\n"
- .'- roomno: 房号',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' sameLevel: "city", '."\n"
- .' distance: 5997.34m, -- 地址相差距离'."\n"
- .' same_info: { -- 相同信息'."\n"
- .' prov: "浙江省",'."\n"
- .' city: "杭州市",'."\n"
- .' district: "西湖区"'."\n"
- .' } '."\n"
- .'}',
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => '4ab0b***cbde97'],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '200'],
+ 'FacePassed' => ['description' => '认证最终结果,取值:'."\n"
+ .'- Y:通过'."\n"
+ .'- N:不通过', 'type' => 'string', 'example' => 'Y'],
+ 'FaceComparisonScore' => ['description' => '认证过程中所提交的人脸照片和人脸留底图片上人脸的比对分,取值范围:0~100。', 'type' => 'number', 'format' => 'double', 'example' => '95.0'],
+ 'DuplicateFace' => ['description' => '当检索存在重复人脸时返回人脸库中对应的人脸ID、用户ID和比对分。', 'type' => 'string', 'example' => '['."\n"
+ .' {'."\n"
+ .' "faceGroupCode": "sg7****uzt",'."\n"
+ .' "faceId": "f5a921*******9e792ec84c8f0ca592a",'."\n"
+ .' "merchantUserId": "fa****01"'."\n"
+ .' }'."\n"
+ .']'],
+ 'FaceRegistrationResult' => ['description' => '人脸注册结果 '."\n"
+ .'- 0 失败 '."\n"
+ .'- 1成功', 'type' => 'integer', 'format' => 'int64', 'example' => '0'],
+ 'FaceRegistrationId' => ['description' => '仅当客户设置自动注册,人脸注册成功时返回对应FACEID。', 'type' => 'string', 'example' => '9e792ec84c8f0ca592a'],
+ 'FaceAttack' => ['description' => '采集人脸是否涉及活体攻击,攻击为Y,否则为N。'."\n"
+ .'当开启静默活体检测时返回', 'type' => 'string', 'example' => 'N'],
+ 'FaceAttackScore' => ['description' => '人脸静默活体检测攻击的概率。取值范围0~100。'."\n"
+ .'当开启静默活体检测时返回', 'type' => 'number', 'format' => 'double', 'example' => '99'],
+ 'FaceAge' => ['description' => '人脸预测的参考年龄,可能存在预测失败无法返回的情况。', 'type' => 'integer', 'format' => 'int64', 'example' => '30'],
+ 'FaceGender' => ['description' => '人脸图片预测的性别,可能存在预测失败无法返回的情况。'."\n"
+ .'- M:男'."\n"
+ .'- F:女', 'type' => 'string', 'example' => 'M'],
+ 'ExtFaceInfo' => [
+ 'description' => '额外人脸结果信息',
+ 'type' => 'object',
+ 'properties' => [
+ 'FaceQualityScore' => ['description' => '活体人脸质量分数。取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '39.04'],
+ 'OcclusionScore' => ['description' => '质量判断子维度,遮挡的算法分数,取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '50.26'],
+ 'KaOcclusionScore' => ['description' => '质量判断子维度,关键区域遮挡的算法分数,取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '100'],
+ 'IlluminationScore' => ['description' => '质量判断子维度,光照的算法分数,取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '97.43'],
+ 'SharpnessScore' => ['description' => '质量判断子维度,图片清晰度分数,取值范围0~100,数值越大质量越好', 'type' => 'number', 'format' => 'double', 'example' => '86.47'],
+ 'TargetFaceQualityScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetOcclusionScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetKaOcclusionScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetIlluminationScore' => ['type' => 'number', 'format' => 'double'],
+ 'TargetSharpnessScore' => ['type' => 'number', 'format' => 'double'],
+ 'FaceAttributeInfo' => ['type' => 'string'],
+ ],
],
],
],
@@ -4836,38 +4367,185 @@
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '人脸验证',
+ 'summary' => '通过API接口传入提前获取的人脸图片进行真实人脸检测的服务,算法主要识别人脸是否为屏幕翻拍、打印图片此类基础呈现活体攻击的类型 ,并支持与另一张人脸图片比对验证是否为同一人。',
+ 'description' => '调用FaceVerifyIntl接口对人脸图片进行活体检测。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\\\n\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Data\\": \\"{\\\\n sameLevel: \\\\\\"city\\\\\\", \\\\n distance: 5997.34m, -- 地址相差距离\\\\n same_info: { -- 相同信息\\\\n prov: \\\\\\"浙江省\\\\\\",\\\\n city: \\\\\\"杭州市\\\\\\",\\\\n district: \\\\\\"西湖区\\\\\\"\\\\n } \\\\n}\\"\\n }\\n}","type":"json"}]',
- 'title' => '地址相似比对',
- 'description' => 'API地址,两个地址,地址标准化比对地址一致性。',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\\\n\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\",\\n \\"SubCode\\": \\"200\\",\\n \\"FacePassed\\": \\"Y\\",\\n \\"FaceComparisonScore\\": 95,\\n \\"DuplicateFace\\": \\"[\\\\n {\\\\n \\\\\\"faceGroupCode\\\\\\": \\\\\\"sg7****uzt\\\\\\",\\\\n \\\\\\"faceId\\\\\\": \\\\\\"f5a921*******9e792ec84c8f0ca592a\\\\\\",\\\\n \\\\\\"merchantUserId\\\\\\": \\\\\\"fa****01\\\\\\"\\\\n }\\\\n]\\",\\n \\"FaceRegistrationResult\\": 0,\\n \\"FaceRegistrationId\\": \\"9e792ec84c8f0ca592a\\",\\n \\"FaceAttack\\": \\"N\\",\\n \\"FaceAttackScore\\": 99,\\n \\"FaceAge\\": 30,\\n \\"FaceGender\\": \\"M\\",\\n \\"ExtFaceInfo\\": {\\n \\"FaceQualityScore\\": 39.04,\\n \\"OcclusionScore\\": 50.26,\\n \\"KaOcclusionScore\\": 100,\\n \\"IlluminationScore\\": 97.43,\\n \\"SharpnessScore\\": 86.47,\\n \\"TargetFaceQualityScore\\": 0,\\n \\"TargetOcclusionScore\\": 0,\\n \\"TargetKaOcclusionScore\\": 0,\\n \\"TargetIlluminationScore\\": 0,\\n \\"TargetSharpnessScore\\": 0,\\n \\"FaceAttributeInfo\\": \\"\\"\\n }\\n }\\n}","type":"json"}]',
],
- 'KeepaliveIntl' => [
- 'summary' => '客户端连接保持',
- 'path' => '',
- 'methods' => [
- 'post',
+ 'FraudResultCallBack' => [
+ 'summary' => 'ekyc-global防伪回调接口',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
],
- 'schemes' => [
- 'https',
+ 'operationType' => 'read',
+ 'deprecated' => true,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '184671',
+ 'abilityTreeNodes' => ['FEATUREcloudauthCW0JNH', 'FEATUREcloudauthHOSIED', 'FEATUREcloudauthWSJE4H'],
+ 'tenantRelevance' => 'publicInformation',
],
+ 'parameters' => [
+ [
+ 'name' => 'CertifyId',
+ 'in' => 'query',
+ 'schema' => ['description' => '实人认证唯一标识,对应蚂蚁的verifyId', 'type' => 'string', 'required' => false, 'example' => 'shs2b27333914876c01de4cb22f5841f'],
+ ],
+ [
+ 'name' => 'ResultCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '防伪是否通过'."\n"
+ .'- PASS (通过)'."\n"
+ .'- REJECT (不通过)', 'type' => 'string', 'required' => false, 'example' => 'PASS'],
+ ],
+ [
+ 'name' => 'VerifyDeployEnv',
+ 'in' => 'query',
+ 'schema' => ['description' => '环境路由参数'."\n"
+ .'- staging (预发环境)'."\n"
+ .'- production (线上环境)', 'type' => 'string', 'required' => false, 'example' => 'production'],
+ ],
+ [
+ 'name' => 'ExtParams',
+ 'in' => 'query',
+ 'schema' => ['description' => '扩展参数,json字符串。', 'type' => 'string', 'required' => false, 'example' => '{}'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求Id', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Success' => ['description' => '是否调用成功。'."\n"
+ .'- **true**:调用成功。'."\n"
+ .'- **false**:调用失败。', 'type' => 'boolean', 'example' => 'true'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。', 'returnType' => 'synchronous'],
+ 'title' => '防伪回调接口',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FraudResultCallBack'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FraudResultCallBack',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
+ ],
+ 'Id2MetaPeriodVerifyIntl' => [
+ 'summary' => '身份二要素有效期核验',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthNOQ41U',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '261144',
+ 'abilityTreeNodes' => ['FEATUREcloudauthZN5W38'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ProductCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => '要接入的产品方案。'."\n"
+ ."\n"
+ .'取值eKYC_Date_MIN', 'type' => 'string', 'required' => true, 'example' => 'eKYC_Date_MIN'],
+ ],
+ [
+ 'name' => 'SceneCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。支持长度为10位的字母、数字或下划线的组合。', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
+ ],
+ [
+ 'name' => 'MerchantBizId',
+ 'in' => 'formData',
+ 'schema' => ['description' => '自定义的业务唯一标识,用于后续定位排查问题使用。支持长度为32位的字母和数字的组合,请确保唯一。', 'type' => 'string', 'required' => true, 'example' => 'e0c34a77f5ac40a5aa5e6ed20c35****'],
+ ],
+ [
+ 'name' => 'MerchantUserId',
+ 'in' => 'formData',
+ 'schema' => ['description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
+ ],
+ [
+ 'name' => 'DocType',
+ 'in' => 'formData',
+ 'schema' => ['description' => '证件类型,以8位数字组合作为唯一标识。更多说明,请参见证件类型列表。'."\n"
+ .'当前支持中国内地第二代居民身份证,请传入固定值:00000001', 'type' => 'string', 'required' => true, 'example' => '​00000001'."\n"
+ ."\n"],
+ ],
+ [
+ 'name' => 'DocName',
+ 'in' => 'formData',
+ 'schema' => ['description' => '用户的姓名。', 'type' => 'string', 'required' => true, 'example' => '张三'],
+ ],
+ [
+ 'name' => 'DocNo',
+ 'in' => 'formData',
+ 'schema' => ['description' => '用户的证件号码。', 'type' => 'string', 'required' => true, 'example' => '411xxxxxxxxxxx0001'],
+ ],
+ [
+ 'name' => 'ValidityStartDate',
+ 'in' => 'formData',
+ 'schema' => ['description' => '有效期开始日期,格式:YYYYMMDD。如:20201001', 'type' => 'string', 'required' => true, 'example' => '20201001'],
+ ],
+ [
+ 'name' => 'ValidityEndDate',
+ 'in' => 'formData',
+ 'schema' => ['description' => '身份证有效期到期日期,格式:YYYYMMDD。如:20301001', 'type' => 'string', 'required' => true, 'example' => '20301001'],
],
],
- 'parameters' => [],
'responses' => [
200 => [
'schema' => [
@@ -4875,193 +4553,227 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '7B97D932-7FF5-517D-BF39-7CA1BEE3CDD9'],
+ 'Code' => ['description' => '返回码。关于返回码的具体信息,请参见返回Code和Message说明返回Code和Message说明。', 'type' => 'string', 'example' => 'success'],
+ 'Message' => ['description' => '请求消息的响应信息。', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果',
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'Result' => [
- 'description' => '返回结果',
- 'type' => 'string',
- 'example' => 'SUCCESS',
- ],
+ 'Passed' => ['description' => '认证最终结果。取值:'."\n"
+ ."\n"
+ .'* Y:通过。'."\n"
+ ."\n"
+ .'* N:不通过。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '认证结果描述。更多信息,请参ResultObject.SubCode错误码说明。', 'type' => 'string', 'example' => '200'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Result\\": \\"SUCCESS\\"\\n }\\n}","type":"json"}]',
- 'title' => '客户端连接保持',
- 'description' => '客户端连接保持',
- ],
- 'DeleteVerifyResult' => [
- 'summary' => '删除用户认证记录相关数据',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7B97D932-7FF5-517D-BF39-7CA1BEE3CDD9\\",\\n \\"Code\\": \\"success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\"\\n }\\n}","type":"json"}]',
+ 'title' => '身份证有效期核验',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Id2MetaPeriodVerifyIntl'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Id2MetaPeriodVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'Id2MetaVerifyIntl' => [
+ 'summary' => '传入姓名和身份证号,通过权威数据源验证其真实性和一致性。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '199203',
+ 'abilityTreeNodes' => ['FEATUREcloudauthZN5W38'],
],
'parameters' => [
[
- 'name' => 'TransactionId',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '认证请求的唯一标识',
- 'type' => 'string',
- 'required' => false,
- 'example' => '4ab0b***cbde97',
- ],
+ 'schema' => ['description' => '接入的产品方案,固定值:ID_2META', 'type' => 'string', 'required' => false, 'example' => 'ID_2META'],
],
[
- 'name' => 'DeleteAfterQuery',
+ 'name' => 'ParamType',
'in' => 'query',
- 'schema' => [
- 'description' => '删除数据时是否依赖查询接口',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Y / N',
- ],
+ 'schema' => ['description' => '参数类型:'."\n"
+ ."\n"
+ .'- normal:原始值(明文)'."\n"
+ .'- 说明:由于权威数据源限制,身份二要素核验不支持Md5加密方式。', 'type' => 'string', 'required' => false, 'example' => 'normal'],
],
[
- 'name' => 'DeleteType',
+ 'name' => 'IdentifyNum',
'in' => 'query',
- 'schema' => [
- 'description' => '删除数据的类型',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Img / Text / All',
- ],
+ 'schema' => ['description' => '身份证号(输入明文)', 'type' => 'string', 'required' => false, 'example' => '429001********8211'."\n"],
+ ],
+ [
+ 'name' => 'UserName',
+ 'in' => 'query',
+ 'schema' => ['description' => '姓名(输入明文)', 'type' => 'string', 'required' => false, 'example' => '张*'],
],
],
'responses' => [
200 => [
'schema' => [
'title' => 'Schema of Response',
- 'description' => '返回结果',
+ 'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '本次请求的ID',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求Id', 'type' => 'string', 'example' => 'EFA11401-C961-5E89-A2D3-BF9883E5CC3D'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识',
- 'type' => 'string',
- 'example' => '4ab0b***cbde97',
- ],
- 'DeleteResult' => [
- 'description' => '删除的结果。其中Y表示删除成功,N表示删除失败',
- 'type' => 'string',
- 'example' => 'Y/N',
- ],
+ 'BizCode' => ['description' => '核验结果码。'."\n"
+ .'- 1:核验一致'."\n"
+ .'- 2:核验不一致'."\n"
+ .'- 3:未查得', 'type' => 'string', 'example' => '1'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\",\\n \\"DeleteResult\\": \\"Y/N\\"\\n }\\n}","type":"json"}]',
- 'title' => '删除认证记录',
- ],
- 'CheckVerifyLog' => [
- 'summary' => '认证日志查询接口',
- 'methods' => [
- 'post',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EFA11401-C961-5E89-A2D3-BF9883E5CC3D\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"BizCode\\": \\"1\\"\\n }\\n}","type":"json"}]',
+ 'title' => '身份二要素认证核验',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Id2MetaVerifyIntl'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Id2MetaVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ ],
+ 'IdnAuthorityVerifyIntl' => [
+ 'path' => '',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '266432',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthCS0SDG',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREcloudauth6RJHVQ'],
],
'parameters' => [
[
- 'name' => 'MerchantBizId',
- 'in' => 'formData',
+ 'name' => 'ProductCode',
+ 'in' => 'query',
'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。',
+ 'description' => '要接入的产品方案。取值IDN_META。',
'type' => 'string',
- 'required' => false,
- 'example' => 'e0c34a***353888',
+ 'required' => true,
+ 'enumValueTitles' => [],
+ 'example' => 'IDN_META',
],
],
[
- 'name' => 'TransactionId',
+ 'name' => 'SceneCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '您自定义的认证场景ID,用于后续控制台输入此场景ID查询相关记录使用。支持长度为10位的字母、数字或下划线的组合。', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
+ ],
+ [
+ 'name' => 'MerchantBizId',
+ 'in' => 'query',
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。', 'type' => 'string', 'required' => true, 'example' => 'dso932dsjsd22'],
+ ],
+ [
+ 'name' => 'MerchantUserId',
+ 'in' => 'query',
+ 'schema' => ['description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => true, 'example' => '123456789'],
+ ],
+ [
+ 'name' => 'IdNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '身份证号码', 'type' => 'string', 'required' => true, 'example' => '3612841***47001'],
+ ],
+ [
+ 'name' => 'BirthDate',
+ 'in' => 'query',
+ 'schema' => ['description' => '出生日期', 'type' => 'string', 'required' => true, 'example' => '2000-01-01'],
+ ],
+ [
+ 'name' => 'FullName',
+ 'in' => 'query',
+ 'schema' => ['description' => '全名', 'type' => 'string', 'required' => true, 'example' => 'ray'],
+ ],
+ [
+ 'name' => 'SourceFacePicture',
'in' => 'formData',
- 'schema' => [
- 'description' => '整个认证流程的唯一标识。该值需要调用Initialize获取。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'hksb7ba1b*********015d694361bee4',
- ],
+ 'schema' => ['description' => '人像照片 Base64 编码。'."\n"
+ ."\n"
+ .'说明'."\n"
+ ."\n"
+ .'- 如果您选择该方式传入证件图片,请检查照片大小,不要传入过大的照片。'."\n"
+ .'- SourceFacePicture 与 SourceFacePictureUrl 与 SourceFacePictureFile 三选一。', 'type' => 'string', 'required' => false, 'example' => ' '."\n"
+ .'base64'."\n"],
+ ],
+ [
+ 'name' => 'SourceFacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://***face1.jpeg'],
+ ],
+ [
+ 'name' => 'SourceFacePictureFile',
+ 'in' => 'query',
+ 'schema' => ['description' => '人像图片文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'Mobile',
+ 'in' => 'query',
+ 'schema' => ['description' => '印尼手机号,必须以 +62 开头,后跟 9–11 位数字', 'type' => 'string', 'required' => true, 'example' => '+6281293671234'],
+ ],
+ [
+ 'name' => 'Email',
+ 'in' => 'query',
+ 'schema' => ['description' => '用户邮箱地址', 'type' => 'string', 'required' => true, 'example' => 'a*@gmail.com'],
],
],
'responses' => [
@@ -5071,287 +4783,473 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '后端错误码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果。',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'Passed' => [
- 'description' => '认证是否通过。'."\n"
- ."\n"
- .'- Y:通过。'."\n"
- .'- N:不通过。',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'SubCode' => [
- 'description' => '子结果码',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'VerifyStatus' => [
- 'description' => '认证状态,取值:'."\n"
- ."\n"
- .'- 0:finished认证完成'."\n"
- .'- 1:unfinished 认证中断'."\n"
- .'- 2: notstart 未开始认证',
- 'type' => 'string',
- 'example' => '1',
- ],
- 'InterruptPage' => [
- 'description' => '记录认证中断最后停留页面'."\n"
- ."\n"
- .'- 页面未启动'."\n"
- .'- OCR引导页面'."\n"
- .'- OCR相机授权'."\n"
- .'- OCR拍摄证件页面'."\n"
- .'- OCR识别loading中'."\n"
- .'- OCR识别结果编辑页面'."\n"
- .'- OCR识别结果编辑loading中'."\n"
- .'- 活体检测引导页面'."\n"
- .'- 活体检测相机授权页面'."\n"
- .'- 活体检测页面'."\n"
- .'- 活体检测降级页面'."\n"
- .'- 活体检测重试'."\n"
- .'- 活体检测loading中',
- 'type' => 'string',
- 'example' => 'OCR拍摄证件页面',
- ],
- 'VerifyErrorCode' => [
- 'description' => '认证中断错误码'."\n"
- ."\n"
- .'- 1000 用户完成了刷脸过程,认证建议结果为通过'."\n"
- .'- 1001 用户完成了刷脸过程,认证建议结果为未通过'."\n"
- .'- 1002 系统错误'."\n"
- .'- 1003 SDK初始化失败,请确认客户端时间是否正确'."\n"
- .'- 1004 相机权限错误'."\n"
- .'- 1005 网络错误'."\n"
- .'- 1006 用户退出'."\n"
- .'- 1007 TransactionId无效'."\n"
- .'- 1009 客户端时间戳错误'."\n"
- .'- 1011 提交证件类型错误'."\n"
- .'- 1012 识别出的证件关键信息缺失或格式校验失败'."\n"
- .'- 1013 图片质量不佳'."\n"
- .'- 1014 错误次数超出上限'."\n"
- .'- 1015 安卓系统版本过低'."\n"
- .'- 1016 未获取到相机权限'."\n"
- .'- 9999 疑似认证进程中断',
- 'type' => 'string',
- 'example' => '1001',
- ],
- 'LogInfo' => [
- 'description' => 'SDK运行日志详情',
- 'type' => 'array',
- 'items' => [
- 'description' => '运行日志',
- 'type' => 'string',
- 'example' => '['."\n"
- .' "2025-03-21 10:31:25 Loading阶段结束",'."\n"
- .' "2025-03-21 10:31:25 用户进入OCR页面",'."\n"
- .' "2025-03-21 10:31:39 OCR认证阶段点击相册选择按钮",'."\n"
- .' "2025-03-21 10:31:39 OCR认证阶段点击OCR提交按钮",'."\n"
- .' "2025-03-21 10:31:42 OCR认证阶段中断弹窗弹出",'."\n"
- .' "2025-03-21 10:31:43 OCR认证阶段中断重试",'."\n"
- .' "2025-03-21 10:31:43 OCR认证阶段中断弹窗关闭",'."\n"
- .' "2025-03-21 10:31:59 OCR认证阶段点击相册选择按钮",'."\n"
- .' "2025-03-21 10:31:59 OCR认证阶段点击OCR提交按钮",'."\n"
- .' "2025-03-21 10:32:02 OCR认证阶段结束",'."\n"
- .' "2025-03-21 10:32:02 用户进入OCR编辑页面",'."\n"
- .' "2025-03-21 10:32:03 OCR编辑阶段点击OCR结果确认无误按钮",'."\n"
- .' "2025-03-21 10:32:04 OCR编辑阶段结束",'."\n"
- .' "2025-03-21 10:32:04 用户进入活体页面",'."\n"
- .' "2025-03-21 10:32:12 活体检测阶段结束"'."\n"
- .' ]',
- ],
- ],
- 'ExtInfo' => [
- 'description' => '扩展信息',
- 'type' => 'string',
- 'example' => '{}',
- ],
- 'LogStatisticsInfo' => [
- 'description' => 'SDK运行日志统计详情',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "faceOverTimes": 0,'."\n"
- .' "hasFaceOverTimes": false,'."\n"
- .' "hasFacePermissionRefuse": false,'."\n"
- .' "hasOcrEdit": true,'."\n"
- .' "hasOcrEditOverTimes": false,'."\n"
- .' "hasOcrOverTimes": true,'."\n"
- .' "hasOcrPermissionRefuse": false,'."\n"
- .' "ocrEditOverTimes": 0,'."\n"
- .' "ocrEditTimes": 1,'."\n"
- .' "ocrOverTimes": 1,'."\n"
- .' "pageStayTimeInfo": {'."\n"
- .' "LOADING": "1615",'."\n"
- .' "OCR_SCAN": "37446",'."\n"
- .' "OCR_RESULT": "1338",'."\n"
- .' "FACE": "8707"'."\n"
- .' }'."\n"
- .' }',
- ],
- 'LogInfoEn' => [
- 'description' => 'SDK运行链路日志详情,英文取值。'."\n"
- .'此字段格式同**LogInfo**。',
- 'type' => 'array',
- 'items' => [
- 'description' => '运行日志',
- 'type' => 'string',
- 'example' => '['."\n"
- .' "2025-03-21 10:31:25 LOADING_ENTER",'."\n"
- .' "2025-03-21 10:31:25 LOADING_EXIT",'."\n"
- .' "2025-03-21 10:31:39 GUIDE_PAGE_SHOW",'."\n"
- .' "2025-03-21 10:31:39 GUIDE_PAGE_LEAVE",'."\n"
- .' "2025-03-21 10:31:42 FACE_ENTER",'."\n"
- .' "2025-03-21 10:31:43 FACE_EXIT"'."\n"
- .']',
- ],
- ],
- 'InterruptPageEn' => [
- 'description' => '认证中断最后停留页面,英文取值:'."\n"
- ."\n"
- .'当然,以下是将这些取值转换为无序列表的形式:'."\n"
- ."\n"
- .'- LOADING'."\n"
- ."\n"
- .'- GUIDE'."\n"
- ."\n"
- .'- FACE'."\n"
- ."\n"
- .'- OCR_SCAN'."\n"
- ."\n"
- .'- OCR_RESULT'."\n"
- ."\n"
- .'- NFC_INPUT'."\n"
- ."\n"
- .'- NFC_READ',
- 'type' => 'string',
- 'example' => 'LOADING',
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识', 'type' => 'string', 'example' => 'hk573be80f944d95ac812e0*******a8'],
+ 'Passed' => ['description' => '是否通过,通过为 Y,不通过为 N。', 'type' => 'string', 'example' => 'Y'],
+ 'SubCode' => ['description' => '子结果码', 'type' => 'string', 'example' => '200'],
+ 'ExtSourceInfo' => ['description' => '数据源核验明细结果说明如下(以印尼数据源为例):'."\n"
+ .'-** govId、fullName、dob**:比对得分等于 1.0 表示与官方数据源信息完全一致;低于 1.0 表示不一致。 '."\n"
+ .'- **selfiePhoto**:比对得分大于 0.8 表示与官方数据源信息一致;低于或等于 0.8 表示不一致。 '."\n"
+ .'- **liveness**:得分高于 0.95 表示存在活体检测风险。 '."\n"
+ .'- **imgManipulationScore**:得分高于 0.95 表示存在图片篡改风险。', 'type' => 'string', 'example' => '{'."\n"
+ .' "govId": 1.0,'."\n"
+ .' "fullName": 1.0,'."\n"
+ .' "dob": 0.9,'."\n"
+ .' "selfiePhoto": 0.8777,'."\n"
+ .' "liveness": 0.1152,'."\n"
+ .' "imgManipulationScore": 0.2253'."\n"
+ .'}'],
],
],
],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"VerifyStatus\\": \\"1\\",\\n \\"InterruptPage\\": \\"OCR拍摄证件页面\\",\\n \\"VerifyErrorCode\\": \\"1001\\",\\n \\"LogInfo\\": [\\n \\"[\\\\n \\\\\\"2025-03-21 10:31:25 Loading阶段结束\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:25 用户进入OCR页面\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:39 OCR认证阶段点击相册选择按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:39 OCR认证阶段点击OCR提交按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:42 OCR认证阶段中断弹窗弹出\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:43 OCR认证阶段中断重试\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:43 OCR认证阶段中断弹窗关闭\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:59 OCR认证阶段点击相册选择按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:59 OCR认证阶段点击OCR提交按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:02 OCR认证阶段结束\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:02 用户进入OCR编辑页面\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:03 OCR编辑阶段点击OCR结果确认无误按钮\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:04 OCR编辑阶段结束\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:04 用户进入活体页面\\\\\\",\\\\n \\\\\\"2025-03-21 10:32:12 活体检测阶段结束\\\\\\"\\\\n ]\\"\\n ],\\n \\"ExtInfo\\": \\"{}\\",\\n \\"LogStatisticsInfo\\": \\"{\\\\n \\\\\\"faceOverTimes\\\\\\": 0,\\\\n \\\\\\"hasFaceOverTimes\\\\\\": false,\\\\n \\\\\\"hasFacePermissionRefuse\\\\\\": false,\\\\n \\\\\\"hasOcrEdit\\\\\\": true,\\\\n \\\\\\"hasOcrEditOverTimes\\\\\\": false,\\\\n \\\\\\"hasOcrOverTimes\\\\\\": true,\\\\n \\\\\\"hasOcrPermissionRefuse\\\\\\": false,\\\\n \\\\\\"ocrEditOverTimes\\\\\\": 0,\\\\n \\\\\\"ocrEditTimes\\\\\\": 1,\\\\n \\\\\\"ocrOverTimes\\\\\\": 1,\\\\n \\\\\\"pageStayTimeInfo\\\\\\": {\\\\n \\\\\\"LOADING\\\\\\": \\\\\\"1615\\\\\\",\\\\n \\\\\\"OCR_SCAN\\\\\\": \\\\\\"37446\\\\\\",\\\\n \\\\\\"OCR_RESULT\\\\\\": \\\\\\"1338\\\\\\",\\\\n \\\\\\"FACE\\\\\\": \\\\\\"8707\\\\\\"\\\\n }\\\\n }\\",\\n \\"LogInfoEn\\": [\\n \\"[\\\\n \\\\\\"2025-03-21 10:31:25 LOADING_ENTER\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:25 LOADING_EXIT\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:39 GUIDE_PAGE_SHOW\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:39 GUIDE_PAGE_LEAVE\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:42 FACE_ENTER\\\\\\",\\\\n \\\\\\"2025-03-21 10:31:43 FACE_EXIT\\\\\\"\\\\n]\\"\\n ],\\n \\"InterruptPageEn\\": \\"LOADING\\"\\n }\\n}","type":"json"}]',
- 'title' => '认证日志查询',
- ],
- 'AddFaceRecord' => [
- 'summary' => '添加人脸图片到指定人脸库',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '印尼权威数据源认证',
+ 'summary' => '在独立业务场景中,直接调用权威源接口完成印尼用户身份核验',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"hk573be80f944d95ac812e0*******a8\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtSourceInfo\\": \\"{\\\\n \\\\\\"govId\\\\\\": 1.0,\\\\n \\\\\\"fullName\\\\\\": 1.0,\\\\n \\\\\\"dob\\\\\\": 0.9,\\\\n \\\\\\"selfiePhoto\\\\\\": 0.8777,\\\\n \\\\\\"liveness\\\\\\": 0.1152,\\\\n \\\\\\"imgManipulationScore\\\\\\": 0.2253\\\\n}\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'Initialize' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeCode' => '149600',
+ 'abilityTreeNodes' => ['FEATUREcloudauthCW0JNH', 'FEATUREcloudauth6RJHVQ'],
],
'parameters' => [
[
- 'name' => 'FaceGroupCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '人脸库编码。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'sgl****7uc',
- ],
+ 'name' => 'ProductCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '要接入的产品方案'."\n"
+ .'>具体详见官方文档 :https://www.alibabacloud.com/help/zh/ekyc/latest/product-introduction?spm=a2c63.p38356.0.i1', 'type' => 'string', 'required' => false, 'example' => 'eKYC'],
],
[
- 'name' => 'ProductCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '产品code。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'FACE_ENROLL',
- ],
+ 'name' => 'MerchantBizId',
+ 'in' => 'query',
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一。', 'type' => 'string', 'required' => false, 'example' => 'e0c34a***353888'],
+ ],
+ [
+ 'name' => 'MetaInfo',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Metainfo环境参数,需要通过客户端SDK获取。', 'type' => 'string', 'required' => false, 'example' => '{\\"bioMetaInfo\\":\\"4.1.0:2916352,0\\",\\"deviceType\\":\\"web\\",\\"ua\\":\\"Mozilla/5.0 (Macintosh'],
+ ],
+ [
+ 'name' => 'DocType',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件类型'."\n"
+ .'>eKYC_PRO和ID_OCR_MAX方案,详见官方文档 https://www.alibabacloud.com/help/zh/ekyc/latest/certificate-code-table?spm=a2c63.p38356.help-menu-445633.d_2_8_2_0.279147abwKAWbr'."\n"
+ ."\n"
+ .'>ID_OCR,eKYC和eYKC_MIN方案,相见官方文档 证件类型列表 https://www.alibabacloud.com/help/zh/ekyc/latest/gnhekqy05ni51m4c?spm=a2c63.p38356.help-menu-445633.d_2_3_1_0_0_0.6243244777KoZ7', 'type' => 'string', 'required' => false, 'example' => '00000001'."\n"],
],
[
'name' => 'MerchantUserId',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '自定义的用户唯一ID,不能超过32位。'."\n"
- .'- 若客户传入优先以该MerchantUserId注册;'."\n"
- .'- 若未传入默认选图片名',
- 'type' => 'string',
- 'required' => false,
- 'example' => '130A2C10B9EE4D8488E35384FF03hst',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '您自定义的用户ID,或者其他可以识别特定用户的标识,例如手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '1221****6543'],
],
[
- 'name' => 'FacePicture',
+ 'name' => 'SceneCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '场景码。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => '123****123'],
+ ],
+ [
+ 'name' => 'Pages',
+ 'in' => 'query',
+ 'schema' => ['description' => '采集页配置,多页使用,连接。取值范围:'."\n"
+ .'- **01**:证件人像面'."\n"
+ ."\n"
+ .'- **01,02**:证件人像面与背面'."\n"
+ ."\n"
+ .'> 此值传入01,02时,目前仅支持中国身份证和越南身份证。', 'type' => 'string', 'required' => false, 'example' => '01'],
+ ],
+ [
+ 'name' => 'FacePictureBase64',
'in' => 'formData',
- 'schema' => [
- 'description' => '注册人脸图片base64',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
- ],
+ 'schema' => ['description' => '照片Base64编码。如果您选择FacePictureBase64方式传入人脸照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'Base64'],
],
[
'name' => 'FacePictureUrl',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '注册人脸图片URL',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://www.xxxxx.com/test.jpg',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸照片地址。公网可访问的HTTP、HTTPS链接', 'type' => 'string', 'required' => false, 'example' => '***'],
],
[
- 'name' => 'FacePictureFile',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '注册人脸图片文件流',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'InputStream',
- 'isFileTransferUrl' => true,
- ],
+ 'name' => 'Crop',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否裁剪。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'N'],
],
[
- 'name' => 'FaceQualityCheck',
- 'in' => 'formData',
+ 'name' => 'Ocr',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启OCR。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'IdFaceQuality',
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸图片质量。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'IdSpoof',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否启用证书防伪检测。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'ReturnUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '端侧回调地址。', 'type' => 'string', 'required' => false, 'example' => 'http*****'],
+ ],
+ [
+ 'name' => 'Authorize',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启身份权威核验,目前仅适用于中国大陆二代身份证(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'DocScanMode',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件采集拍照模式。'."\n"
+ ."\n"
+ .'- manual:手动拍照。'."\n"
+ .'- auto:自动拍照(默认)', 'type' => 'string', 'required' => false, 'example' => 'manual'],
+ ],
+ [
+ 'name' => 'ProductFlow',
+ 'in' => 'query',
+ 'schema' => ['description' => '支持卡证和人脸顺序编排:'."\n"
+ ."\n"
+ .'- DOC_FACE(默认)'."\n"
+ .'- FACE_DOC'."\n"
+ ."\n"
+ .'注:只有当ProductCode为KYC_GLOBAL需传', 'type' => 'string', 'required' => false, 'example' => 'DOC_FACE'],
+ ],
+ [
+ 'name' => 'CallbackUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '认证结果的回调通知地址,回调请求方式默认为GET,回调地址必须以https开头。平台在完成认证后会回调该地址,并自动添加transactionId、passed和subcode字段。', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com?callbackToken=1000004826&transactionId=shaxxxx&passed=Y&subCode=200'],
+ ],
+ [
+ 'name' => 'CallbackToken',
+ 'in' => 'query',
+ 'schema' => ['description' => '安全Token,用于防重复、防篡改校验。如果传入该参数会在回调地址显示CallbackToken字段。', 'type' => 'string', 'required' => false, 'example' => '7ca5c68d869344ea8eeb30cdfd544544-6358700'],
+ ],
+ [
+ 'name' => 'LanguageConfig',
+ 'in' => 'query',
+ 'schema' => ['description' => '语言配置(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'en'],
+ ],
+ [
+ 'name' => 'SecurityLevel',
+ 'in' => 'query',
+ 'schema' => ['description' => '代表认证流程不同安全水位的模式,可选值:'."\n"
+ ."\n"
+ .'01:普通模式(默认)。'."\n"
+ .'02:安全模式,相对严格的模式,可用于高风险场景(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => '01'],
+ ],
+ [
+ 'name' => 'StyleConfig',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义UI配置。根据配置模板,将您自定义的UI配置转换为JSON字符串后,通过该接口传入实现。更多信息,请参见[IDV UI样式自定义](https://www.alibabacloud.com/help/zh/ekyc/latest/idv-kyc-custom-skin?spm=a2c63.p38356.0.i60)。', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
+ .' "guidepage:": {****}, '."\n"
+ .' "ocrPage": {****},'."\n"
+ .' "ocrResultPage": [****],'."\n"
+ .' "facePage": {****},'."\n"
+ .'}'],
+ ],
+ [
+ 'name' => 'ExperienceCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '体验码', 'type' => 'string', 'required' => false, 'example' => '9be7b7d0180041219e5ab03ac6dab5fb'],
+ ],
+ [
+ 'name' => 'DocVideo',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否需要存证视频。'."\n"
+ ."\n"
+ .'- N:不需要(默认)。'."\n"
+ ."\n"
+ .'- Y:认证过程中会同时采集用户的刷脸过程视频(1~2s视频文件),并通过查询接口返回。'."\n"
+ ."\n"
+ .'> 因为视频文件较大,当网络不稳定时系统会丢弃视频文件,优先保障认证必要图片传输。', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'Model',
+ 'in' => 'query',
+ 'schema' => ['description' => '要进行活体检测的类型:'."\n"
+ ."\n"
+ .'- **LIVENESS**(默认):眨眼动作活体检测。'."\n"
+ ."\n"
+ .'- **PHOTINUS_LIVENESS**:眨眼动作活体+炫彩活体双重检测。'."\n"
+ ."\n"
+ .'> '."\n"
+ .'> - 支持集成的SDK版本,请参见[SDK发布记录](https://www.alibabacloud.com/help/zh/ekyc/latest/sdk-publishing-record?spm=a2c63.p38356.0.i99)。'."\n"
+ .'> - PC端不支持炫彩活体双重检测。', 'type' => 'string', 'required' => false, 'example' => 'PHOTINUS_LIVENESS'],
+ ],
+ [
+ 'name' => 'IdThreshold',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义OCR质量检测阈值模式:'."\n"
+ .'- **0**:标准模式'."\n"
+ .'- **1**:严格模式'."\n"
+ .'- **2**:宽松模式'."\n"
+ .'- **3**(默认):关闭质量检测', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'ShowAlbumIcon',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件OCR识别环节,是否展示相册上传入口:'."\n"
+ ."\n"
+ .'- **1**:展示(默认)'."\n"
+ ."\n"
+ .'- **0**:不展示', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'ShowOcrResult',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件OCR识别环节,是否展示识别结果页:'."\n"
+ ."\n"
+ .'- **1**:展示(默认)'."\n"
+ ."\n"
+ .'- **0**:不展示', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'ShowGuidePage',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否展示引导页面开关:'."\n"
+ ."\n"
+ .'- **1**:展示(默认)'."\n"
+ ."\n"
+ .'- **0**:不展示', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'ProcedurePriority',
+ 'in' => 'query',
+ 'schema' => ['description' => '当移动端H5方式认证出现兼容性问题时,是否允许展示降级的处理方式。'."\n"
+ ."\n"
+ .'- **url(默认)**:支持降级。页面展示认证URL,用户可复制URL打开或者切换浏览器继续认证。'."\n"
+ ."\n"
+ .'- **keep**:不支持降级。直接返回错误原因,并结束认证流程。'."\n"
+ ."\n\n"
+ .'> '."\n"
+ .'> - PC端不支持此开关。'."\n"
+ .'> - 若业务应用场景为App内嵌网页完成认证,建议此参数设置为keep,不允许降级URL。', 'type' => 'string', 'required' => false, 'example' => 'url'],
+ ],
+ [
+ 'name' => 'AppQualityCheck',
+ 'in' => 'query',
+ 'schema' => ['description' => '<warning>该功能**Web SDK**暂不支持,如需使用请参考App SDK接入。</warning>'."\n"
+ ."\n"
+ .'是否开启人脸严格质量检测:'."\n"
+ .'- Y:开启(默认)'."\n"
+ .'- N:不开启', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'DocPageConfig',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '是否检测人脸图片质量'."\n"
- .'- Y:开启'."\n"
- .'- N:关闭(默认)',
- 'type' => 'string',
+ 'description' => '客户自定义传入是否要采集更多页面',
+ 'type' => 'array',
+ 'items' => ['description' => '采集面', 'type' => 'string', 'required' => false, 'example' => 'OCR_ID_BACK'],
'required' => false,
- 'example' => 'N',
],
],
+ [
+ 'name' => 'MRTDInput',
+ 'in' => 'query',
+ 'schema' => ['description' => 'MRTD校验参数输入来源。NFC读取证件芯片信息时依赖该参数解密信息。'."\n"
+ ."\n"
+ .'- **0**:用户输入'."\n"
+ ."\n"
+ .'- **1**:ocr读取'."\n"
+ ."\n"
+ .'- **2**:接口传入', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'DocumentNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件号'."\n"
+ ."\n"
+ .'**MRTDInput = 2**时,必传。', 'type' => 'string', 'required' => false, 'example' => '-'],
+ ],
+ [
+ 'name' => 'DateOfBirth',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件上的出生日期'."\n"
+ ."\n"
+ .'**MRTDInput = 2**时,必传。', 'type' => 'string', 'required' => false, 'example' => '-'],
+ ],
+ [
+ 'name' => 'DateOfExpiry',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件上的过期时间'."\n"
+ ."\n"
+ .'**MRTDInput** = 2时,必传。', 'type' => 'string', 'required' => false, 'example' => '-'],
+ ],
+ [
+ 'name' => 'UseNFC',
+ 'in' => 'query',
+ 'schema' => ['description' => '当**DocType**=01000000(全球护照)时,可选是否启用NFC验证。'."\n"
+ .'- **Y**(启用)'."\n"
+ .'- **N**(不启用)', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'ChameleonFrameEnable',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启自适应变色窗口边框'."\n"
+ .'- **Y**:开启'."\n"
+ .'- **N**:不开启', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'DocNo',
+ 'in' => 'query',
+ 'schema' => ['description' => '用户的证件号码。', 'type' => 'string', 'required' => false, 'example' => '411xxxxxxxxxxx0001'],
+ ],
+ [
+ 'name' => 'DocName',
+ 'in' => 'query',
+ 'schema' => ['description' => '用户的真实姓名。', 'type' => 'string', 'required' => false, 'example' => '张三'],
+ ],
+ [
+ 'name' => 'EditOcrResult',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件OCR识别环节,识别结果页是否可编辑:'."\n"
+ ."\n"
+ .'- **0**:不可编辑'."\n"
+ ."\n"
+ .'- **1**(默认):可编辑', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'VerifyModel',
+ 'in' => 'query',
+ 'schema' => ['title' => '验证的类型', 'description' => '验证的类型', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceGroupCodes',
+ 'in' => 'query',
+ 'schema' => ['title' => '需要比对的人脸库', 'description' => '需要比对的人脸库', 'type' => 'string', 'required' => false, 'example' => '0e0c34a77f'],
+ ],
+ [
+ 'name' => 'TargetFacePicture',
+ 'in' => 'query',
+ 'schema' => ['title' => '人像照片Base64编码。', 'description' => '人像照片Base64编码。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
+ ],
+ [
+ 'name' => 'TargetFacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['title' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://www.xxxxx.com/1.jpg'],
+ ],
+ [
+ 'name' => 'AutoRegistration',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否开启自动注册', 'description' => '是否开启自动注册', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceRegisterGroupCode',
+ 'in' => 'query',
+ 'schema' => ['title' => '注册人脸库。', 'description' => '注册人脸库。', 'type' => 'string', 'required' => false, 'example' => '0e0c34a77f'],
+ ],
+ [
+ 'name' => 'SaveFacePicture',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否保存人脸图片', 'description' => '是否保存人脸图片', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceVerifyThreshold',
+ 'in' => 'query',
+ 'schema' => ['title' => '人脸验证阈值', 'description' => '人脸验证阈值', 'type' => 'string', 'required' => false, 'example' => '0.5'],
+ ],
+ [
+ 'name' => 'ReturnFaces',
+ 'in' => 'query',
+ 'schema' => ['title' => '返回重复人脸数量', 'description' => '返回重复人脸数量', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'Mobile',
+ 'in' => 'query',
+ 'schema' => ['description' => '传入印度尼西亚电话号码,需校验格式(以+62开头,后接9-11位数字),此字段仅在Authorize=T时生效。'."\n"
+ ."\n"
+ .'> '."\n"
+ .'> - 该字段仅在开启印尼数据源时必传。', 'type' => 'string', 'required' => false, 'example' => '+6281293671234'],
+ ],
+ [
+ 'name' => 'Email',
+ 'in' => 'query',
+ 'schema' => ['description' => '传入印度尼西亚邮箱,此字段仅在Authorize=T时生效。'."\n"
+ ."\n"
+ .'> '."\n"
+ .'> - 该字段仅在开启印尼数据源时必传。', 'type' => 'string', 'required' => false, 'example' => 'evxxx@imigxxxxx.go.id'],
+ ],
+ [
+ 'name' => 'TemplateType',
+ 'in' => 'query',
+ 'schema' => ['description' => 'TemplateConfig活体检测动作执行顺序。'."\n"
+ .'当 Model 为 TEMPLATE 时,需传入此参数。'."\n"
+ ."\n"
+ .'- Seq:按TemplateConfig配置的顺序从左至右执行。'."\n"
+ .'- Ran :随机乱序执行,选择此项时,TemplateConfig必须配置多于1个动作。', 'type' => 'string', 'required' => false, 'example' => 'Seq'],
+ ],
+ [
+ 'name' => 'TemplateConfig',
+ 'in' => 'query',
+ 'schema' => ['description' => '活体检测自定义动作池配置。'."\n"
+ .'当 Model 为 TEMPLATE 时,需传入此参数。'."\n"
+ .'配置规则:多个动作代码使用英文逗号分隔。最佳实践:建议包含至少一个正脸动作(如眨眼),且总数不超过 3 个。'."\n"
+ .'动作代码表:'."\n"
+ ."\n"
+ .'- 眨眼(Blink):01'."\n"
+ .'- 张嘴(Open Mouth):02'."\n"
+ .'- 左摇头(Shake Head Left):03'."\n"
+ .'- 右摇头(Shake Head Right):04'."\n"
+ .'- 拉远摄像头(Move Farther):05'."\n"
+ .'- 拉近摄像头(Move Closer):06'."\n"
+ .'- 炫彩检测(Photinus):07', 'type' => 'string', 'required' => false, 'example' => '01,02,07'],
+ ],
+ [
+ 'name' => 'TemplateRanCount',
+ 'in' => 'query',
+ 'schema' => ['description' => '从TemplateConfig中随机抽取的动作数量。'."\n"
+ .'仅当 TemplateType 为 Ran 时生效。'."\n"
+ ."\n"
+ .'-校验规则:'."\n"
+ .'- 数值必须大于1。数值小于等于 TemplateConfig 中配置的动作总数。若不传,默认等于 TemplateConfig 中的动作总数。', 'type' => 'string', 'required' => false, 'example' => '2'],
+ ],
+ [
+ 'name' => 'OcrValueStandard',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否需要额外返回OCR识别标准化格式字段:'."\n"
+ ."\n"
+ .'0:否 (默认)'."\n"
+ ."\n"
+ .'1:是', 'description' => '是否需要额外返回OCR识别标准化格式字段:'."\n"
+ ."\n"
+ .'0:否 (默认)'."\n"
+ ."\n"
+ .'1:是', 'type' => 'string', 'required' => false, 'example' => '0', 'default' => '0'],
+ ],
+ [
+ 'name' => 'FaceAttributeCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
+ ],
],
'responses' => [
200 => [
@@ -5360,136 +5258,490 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '7A0D192A-CC0C-5DE5-A3B6-A14CF45508F2',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
'Result' => [
- 'description' => '返回结果。',
+ 'description' => '返回结果',
'type' => 'object',
'properties' => [
- 'Passed' => [
- 'description' => '认证是否通过'."\n"
- ."\n"
- .'- Y:通过'."\n"
- .'- N:不通过',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'ExtFaceInfo' => [
- 'description' => '人脸结果信息',
- 'type' => 'string',
- 'example' => '{'."\n"
- .'"faceQuality": "HIGH"'."\n"
- .'}'."\n"
- ."\n",
- ],
+ 'TransactionId' => ['description' => '认证ID', 'type' => 'string', 'example' => '08573be80f944d95ac812e019e3655a8'],
+ 'ClientCfg' => ['description' => '客户端配置', 'type' => 'string', 'example' => '***'],
+ 'TransactionUrl' => ['description' => 'Web认证Url', 'type' => 'string', 'example' => 'http****'],
+ 'Protocol' => ['description' => '认证标准加密协议。'."\n"
+ ."\n"
+ .'> H5网页接入,选择iframe内嵌集成时依赖该字段。', 'type' => 'string', 'example' => 'hksb7ba1b28130d24e015d*********'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7A0D192A-CC0C-5DE5-A3B6-A14CF45508F2\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Passed\\": \\"Y\\",\\n \\"ExtFaceInfo\\": \\"{\\\\n\\\\\\"faceQuality\\\\\\": \\\\\\"HIGH\\\\\\"\\\\n}\\\\n\\\\n\\"\\n }\\n}","type":"json"}]',
- 'title' => '添加人脸记录',
- ],
- 'DownloadVerifyRecordIntl' => [
- 'summary' => '核验任务下载。',
- 'methods' => [
- 'post',
- 'get',
+ 'title' => '认证初始化',
+ 'summary' => '初始化。',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Initialize'],
+ ],
],
- 'schemes' => [
- 'https',
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Initialize',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"ClientCfg\\": \\"***\\",\\n \\"TransactionUrl\\": \\"http****\\",\\n \\"Protocol\\": \\"hksb7ba1b28130d24e015d*********\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'InitializeV2' => [
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '225500',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauth6RJHVQ',
- ],
- 'tenantRelevance' => 'publicInformation',
+ 'abilityTreeCode' => '149600',
+ 'abilityTreeNodes' => ['FEATUREcloudauthCW0JNH', 'FEATUREcloudauth6RJHVQ'],
],
'parameters' => [
[
- 'name' => 'Code',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '查询code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'vrf_intl_verify_record_real_id_idv_invoke_statistics_query',
- ],
+ 'schema' => ['description' => '要接入的产品方案'."\n"
+ ."\n"
+ .'>说明 具体详见官方文档 :https://www.alibabacloud.com/help/zh/ekyc/latest/product-introduction?spm=a2c63.p38356.0.i1', 'type' => 'string', 'required' => false, 'example' => 'eKYC'],
],
[
- 'name' => 'Param',
+ 'name' => 'MerchantBizId',
'in' => 'query',
- 'schema' => [
- 'description' => '导出下载查询任务的相关参数。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{\\"productCode\\":\\"FACE_LIVENESS\\",\\"startDs\\":\\"20251121\\",\\"endDs\\":\\"20251128\\",\\"language\\":\\"en\\"}',
- ],
+ 'schema' => ['description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长 32 位,请确保唯一', 'type' => 'string', 'required' => false, 'example' => 'e0c34a***353888'],
],
[
- 'name' => 'ProductType',
+ 'name' => 'MetaInfo',
'in' => 'query',
- 'schema' => [
- 'description' => '产品Code。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'KYC',
- ],
+ 'schema' => ['description' => 'Metainfo环境参数,需要通过客户端SDK获取。', 'type' => 'string', 'required' => false, 'example' => '{\\"bioMetaInfo\\":\\"4.1.0:2916352,0\\",\\"deviceType\\":\\"web\\",\\"ua\\":\\"Mozilla/5.0\\"}'],
],
[
- 'name' => 'DownloadMode',
+ 'name' => 'DocType',
'in' => 'query',
- 'schema' => [
- 'description' => '下载模式:'."\n"
- ."\n"
- .'- **async**:异步'."\n"
- .'- **sync**:同步',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'async',
- ],
+ 'schema' => ['description' => '证件类型'."\n"
+ .'>eKYC_PRO和ID_OCR_MAX方案,详见官方文档 https://www.alibabacloud.com/help/zh/ekyc/latest/certificate-code-table?spm=a2c63.p38356.help-menu-445633.d_2_8_2_0.279147abwKAWbr'."\n"
+ ."\n"
+ .'>ID_OCR,eKYC和eYKC_MIN方案,相见官方文档 证件类型列表 https://www.alibabacloud.com/help/zh/ekyc/latest/gnhekqy05ni51m4c?spm=a2c63.p38356.help-menu-445633.d_2_3_1_0_0_0.6243244777KoZ7', 'type' => 'string', 'required' => false, 'example' => '00000001'."\n"],
],
[
- 'name' => 'BizType',
+ 'name' => 'MerchantUserId',
+ 'in' => 'query',
+ 'schema' => ['description' => '您自定义的用户 ID,或者其他可以识别特定用户的标识,例如手机号码、邮箱地址等。强烈建议对该字段的值进行预先脱敏,例如对值进行哈希处理。', 'type' => 'string', 'required' => false, 'example' => '1221****6543'],
+ ],
+ [
+ 'name' => 'SceneCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '场景码。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => '1234567890'],
+ ],
+ [
+ 'name' => 'Pages',
+ 'in' => 'query',
+ 'schema' => ['description' => '采集页配置,多页使用,连接。取值范围:'."\n"
+ .'- **01**:证件人像面'."\n"
+ ."\n"
+ .'- **01,02**:证件人像面与背面'."\n"
+ ."\n"
+ .'> 此值传入01,02时,目前仅支持中国身份证和越南身份证。', 'type' => 'string', 'required' => false, 'example' => '01'],
+ ],
+ [
+ 'name' => 'FacePictureBase64',
+ 'in' => 'formData',
+ 'schema' => ['description' => '照片Base64编码。如果您选择FacePictureBase64方式传入人脸照片,请注意检查照片大小,不要传入过大的照片。', 'type' => 'string', 'required' => false, 'example' => 'Base64'],
+ ],
+ [
+ 'name' => 'FacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸照片地址。公网可访问的HTTP、HTTPS链接', 'type' => 'string', 'required' => false, 'example' => 'https://digital-face-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'],
+ ],
+ [
+ 'name' => 'Crop',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否裁剪。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'Ocr',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启OCR。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'IdFaceQuality',
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸图片质量。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'IdSpoof',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否启用证书防伪检测。(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'Y'],
+ ],
+ [
+ 'name' => 'ReturnUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '端侧回调地址。', 'type' => 'string', 'required' => false, 'example' => 'http*****'],
+ ],
+ [
+ 'name' => 'Authorize',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启身份权威核验,目前仅适用于中国大陆二代身份证(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'T'],
+ ],
+ [
+ 'name' => 'DocScanMode',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件采集拍照模式。'."\n"
+ ."\n"
+ .'- manual:手动拍照。'."\n"
+ .'- auto:自动拍照(默认)', 'type' => 'string', 'required' => false, 'example' => 'manual'],
+ ],
+ [
+ 'name' => 'ProductFlow',
+ 'in' => 'query',
+ 'schema' => ['description' => '支持卡证和人脸顺序编排:'."\n"
+ ."\n"
+ .'- DOC_FACE(默认)'."\n"
+ .'- FACE_DOC'."\n"
+ ."\n"
+ .'注:只有当ProductCode为KYC_GLOBAL需传', 'type' => 'string', 'required' => false, 'example' => 'DOC_FACE'],
+ ],
+ [
+ 'name' => 'CallbackUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => '认证结果的回调通知地址,回调请求方式默认为GET,回调地址必须以https开头。平台在完成认证后会回调该地址,并自动添加transactionId、passed和subcode字段。', 'type' => 'string', 'required' => false, 'example' => 'https://www.aliyun.com?callbackToken=1000004826&transactionId=shaxxxx&passed=Y&subCode=200'],
+ ],
+ [
+ 'name' => 'CallbackToken',
+ 'in' => 'query',
+ 'schema' => ['description' => '安全Token,用于防重复、防篡改校验。如果传入该参数会在回调地址显示CallbackToken字段。', 'type' => 'string', 'required' => false, 'example' => '7ca5c68d869344ea8eeb30cdfd544544-6358700'],
+ ],
+ [
+ 'name' => 'LanguageConfig',
+ 'in' => 'query',
+ 'schema' => ['description' => '语言配置(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => 'en'],
+ ],
+ [
+ 'name' => 'SecurityLevel',
+ 'in' => 'query',
+ 'schema' => ['description' => '代表认证流程不同安全水位的模式,可选值:'."\n"
+ ."\n"
+ .'01:普通模式(默认)。'."\n"
+ .'02:安全模式,相对严格的模式,可用于高风险场景(IDV产品入参)', 'type' => 'string', 'required' => false, 'example' => '01'],
+ ],
+ [
+ 'name' => 'StyleConfig',
+ 'in' => 'query',
+ 'schema' => ['description' => '自定义UI配置。根据配置模板,将您自定义的UI配置转换为JSON字符串后,通过该接口传入实现。更多信息,请参见[IDV UI样式自定义](https://www.alibabacloud.com/help/zh/ekyc/latest/idv-kyc-custom-skin?spm=a2c63.p38356.0.i60)。', 'type' => 'string', 'required' => false, 'example' => '{'."\n"
+ .' "guidepage:": {****}, '."\n"
+ .' "ocrPage": {****},'."\n"
+ .' "ocrResultPage": [****],'."\n"
+ .' "facePage": {****},'."\n"
+ .'}'],
+ ],
+ [
+ 'name' => 'ExperienceCode',
+ 'in' => 'query',
+ 'schema' => ['description' => '体验码', 'type' => 'string', 'required' => false, 'example' => '9be7b7d0180041219e5ab03ac6dab5fb'],
+ ],
+ [
+ 'name' => 'DocVideo',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否需要存证视频。'."\n"
+ ."\n"
+ .'- N:不需要(默认)。'."\n"
+ ."\n"
+ .'- Y:认证过程中会同时采集用户的刷脸过程视频(1~2s视频文件),并通过查询接口返回。'."\n"
+ ."\n"
+ .'> 因为视频文件较大,当网络不稳定时系统会丢弃视频文件,优先保障认证必要图片传输。', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'Model',
+ 'in' => 'query',
+ 'schema' => ['description' => '要进行活体检测的类型:'."\n"
+ ."\n"
+ .'- **LIVENESS**(默认):眨眼动作活体检测。'."\n"
+ ."\n"
+ .'- **PHOTINUS_LIVENESS**:眨眼动作活体+炫彩活体双重检测。'."\n"
+ ."\n"
+ .'> '."\n"
+ .'> - 支持集成的SDK版本,请参见[SDK发布记录](https://www.alibabacloud.com/help/zh/ekyc/latest/sdk-publishing-record?spm=a2c63.p38356.0.i99)。'."\n"
+ .'> - PC端不支持炫彩活体双重检测。', 'type' => 'string', 'required' => false, 'example' => 'PHOTINUS_LIVENESS'],
+ ],
+ [
+ 'name' => 'IdThreshold',
'in' => 'query',
+ 'schema' => ['description' => '自定义 OCR 质量检测阈值模式:'."\n"
+ ."\n"
+ .'- 0:系统默认'."\n"
+ .'- 1:严格模式'."\n"
+ .'- 2:宽松模式'."\n"
+ .'- 3(默认):关闭质量检测', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'ShowAlbumIcon',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件OCR识别环节,是否展示相册上传入口:'."\n"
+ ."\n"
+ .'- **1**:展示(默认)'."\n"
+ ."\n"
+ .'- **0**:不展示', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'ShowOcrResult',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件OCR识别环节,是否展示识别结果页:'."\n"
+ ."\n"
+ .'- **1**:展示(默认)'."\n"
+ ."\n"
+ .'- **0**:不展示', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'ShowGuidePage',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否展示引导页面开关:'."\n"
+ ."\n"
+ .'- **1**:展示(默认)'."\n"
+ ."\n"
+ .'- **0**:不展示', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'ProcedurePriority',
+ 'in' => 'query',
+ 'schema' => ['description' => '当移动端H5方式认证出现兼容性问题时,是否允许展示降级的处理方式。'."\n"
+ ."\n"
+ .'- **url(默认)**:支持降级。页面展示认证URL,用户可复制URL打开或者切换浏览器继续认证。'."\n"
+ ."\n"
+ .'- **keep**:不支持降级。直接返回错误原因,并结束认证流程。'."\n"
+ ."\n\n"
+ .'> '."\n"
+ .'> - PC端不支持此开关。'."\n"
+ .'> - 若业务应用场景为App内嵌网页完成认证,建议此参数设置为keep,不允许降级URL。', 'type' => 'string', 'required' => false, 'example' => 'url'],
+ ],
+ [
+ 'name' => 'AppQualityCheck',
+ 'in' => 'query',
+ 'schema' => ['description' => '<warning>该功能**Web SDK**暂不支持,如需使用请参考App SDK接入。</warning>'."\n"
+ ."\n"
+ .'是否开启人脸严格质量检测:'."\n"
+ .'- Y:开启(默认)'."\n"
+ .'- N:不开启', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'DocPageConfig',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => '业务类型:'."\n"
- .'- INVOKE_STATISTICS'."\n"
- .'- INVOKE_RECORD',
- 'type' => 'string',
+ 'description' => '客户自定义传入是否要采集更多页面',
+ 'type' => 'array',
+ 'items' => ['description' => '采集面', 'type' => 'string', 'required' => false, 'example' => 'OCR_ID_BACK'],
'required' => false,
- 'example' => 'INVOKE_RECORD',
+ 'example' => 'OCR_ID_BACK',
],
],
+ [
+ 'name' => 'MRTDInput',
+ 'in' => 'query',
+ 'schema' => ['description' => 'MRTD校验参数输入来源。NFC读取证件芯片信息时依赖该参数解密信息。'."\n"
+ ."\n"
+ .'- **0**:用户输入'."\n"
+ ."\n"
+ .'- **1**:ocr读取'."\n"
+ ."\n"
+ .'- **2**:接口传入', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'DocumentNumber',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件号'."\n"
+ ."\n"
+ .'**MRTDInput = 2**时,必传。', 'type' => 'string', 'required' => false, 'example' => '-'],
+ ],
+ [
+ 'name' => 'DateOfBirth',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件上的出生日期'."\n"
+ ."\n"
+ .'**MRTDInput = 2**时,必传。', 'type' => 'string', 'required' => false, 'example' => '-'],
+ ],
+ [
+ 'name' => 'DateOfExpiry',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件上的过期时间'."\n"
+ ."\n"
+ .'**MRTDInput** = 2时,必传。', 'type' => 'string', 'required' => false, 'example' => '-'],
+ ],
+ [
+ 'name' => 'UseNFC',
+ 'in' => 'query',
+ 'schema' => ['description' => '当**DocType**=01000000(全球护照)时,可选是否启用NFC验证。'."\n"
+ .'- **Y**(启用)'."\n"
+ .'- **N**(不启用)', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'ChameleonFrameEnable',
+ 'in' => 'query',
+ 'schema' => ['description' => '是否开启自适应变色窗口边框'."\n"
+ .'- **Y**:开启'."\n"
+ .'- **N**:不开启', 'type' => 'string', 'required' => false, 'example' => 'N'],
+ ],
+ [
+ 'name' => 'DocNo',
+ 'in' => 'query',
+ 'schema' => ['description' => '用户的证件号码。', 'type' => 'string', 'required' => false, 'example' => '410***************'."\n"],
+ ],
+ [
+ 'name' => 'DocName',
+ 'in' => 'query',
+ 'schema' => ['description' => '用户的真实姓名。', 'type' => 'string', 'required' => false, 'example' => '张**'],
+ ],
+ [
+ 'name' => 'EditOcrResult',
+ 'in' => 'query',
+ 'schema' => ['description' => '证件OCR识别环节,识别结果页是否可编辑:'."\n"
+ ."\n"
+ .'- **0**:不可编辑'."\n"
+ ."\n"
+ .'- **1**(默认):可编辑', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'VerifyModel',
+ 'in' => 'query',
+ 'schema' => ['title' => '验证的类型', 'description' => '验证的类型', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceGroupCodes',
+ 'in' => 'query',
+ 'schema' => ['title' => '需要比对的人脸库', 'description' => '需要比对的人脸库', 'type' => 'string', 'required' => false, 'example' => '0e0c34a77f'],
+ ],
+ [
+ 'name' => 'TargetFacePicture',
+ 'in' => 'formData',
+ 'schema' => ['title' => '人像照片Base64编码。', 'description' => '人像照片Base64编码。', 'type' => 'string', 'required' => false, 'example' => 'base64'],
+ ],
+ [
+ 'name' => 'TargetFacePictureUrl',
+ 'in' => 'query',
+ 'schema' => ['title' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'description' => '人像图片地址,公网可访问的HTTP、HTTPS链接。', 'type' => 'string', 'required' => false, 'example' => 'https://www.xxxxx.com/1.jpg'],
+ ],
+ [
+ 'name' => 'AutoRegistration',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否开启自动注册', 'description' => '是否开启自动注册', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceRegisterGroupCode',
+ 'in' => 'query',
+ 'schema' => ['title' => '注册人脸库。', 'description' => '注册人脸库。', 'type' => 'string', 'required' => false, 'example' => '0e0c34a77f'],
+ ],
+ [
+ 'name' => 'SaveFacePicture',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否保存人脸图片', 'description' => '是否保存人脸图片', 'type' => 'string', 'required' => false, 'example' => '0'],
+ ],
+ [
+ 'name' => 'FaceVerifyThreshold',
+ 'in' => 'query',
+ 'schema' => ['title' => '人脸验证阈值', 'description' => '人脸验证阈值', 'type' => 'string', 'required' => false, 'example' => '0.5'],
+ ],
+ [
+ 'name' => 'ReturnFaces',
+ 'in' => 'query',
+ 'schema' => ['title' => '返回重复人脸数量', 'description' => '返回重复人脸数量', 'type' => 'string', 'required' => false, 'example' => '1'],
+ ],
+ [
+ 'name' => 'Mobile',
+ 'in' => 'query',
+ 'schema' => ['description' => '传入印度尼西亚电话号码,需校验格式(以+62开头,后接9-11位数字),此字段仅在Authorize=T时生效。'."\n"
+ ."\n"
+ .'> '."\n"
+ .'> - 该字段仅在开启印尼数据源时必传。', 'type' => 'string', 'required' => false, 'example' => '+6281293671234'],
+ ],
+ [
+ 'name' => 'Email',
+ 'in' => 'query',
+ 'schema' => ['description' => '传入印度尼西亚邮箱,此字段仅在 Authorize=T 时生效。'."\n"
+ ."\n"
+ .'>说明'."\n"
+ .'该字段仅在开启印尼数据源时必传。', 'type' => 'string', 'required' => false, 'example' => 'evxxx@imigxxxxx.go.id'],
+ ],
+ [
+ 'name' => 'TemplateType',
+ 'in' => 'query',
+ 'schema' => ['description' => 'TemplateConfig活体检测动作执行顺序。'."\n"
+ .'当 Model 为 TEMPLATE 时,需传入此参数。'."\n"
+ ."\n"
+ .'- Seq:按TemplateConfig配置的顺序从左至右执行。'."\n"
+ .'- Ran :随机乱序执行,选择此项时,TemplateConfig必须配置多于1个动作。', 'type' => 'string', 'required' => false, 'example' => 'Seq'],
+ ],
+ [
+ 'name' => 'TemplateConfig',
+ 'in' => 'query',
+ 'schema' => ['description' => '活体检测自定义动作池配置。'."\n"
+ .'当 Model 为 TEMPLATE 时,需传入此参数。'."\n"
+ .'配置规则:多个动作代码使用英文逗号分隔。最佳实践:建议包含至少一个正脸动作(如眨眼),且总数不超过 3 个。'."\n"
+ .'动作代码表:'."\n"
+ ."\n"
+ .'- 眨眼(Blink):01'."\n"
+ .'- 张嘴(Open Mouth):02'."\n"
+ .'- 左摇头(Shake Head Left):03'."\n"
+ .'- 右摇头(Shake Head Right):04'."\n"
+ .'- 拉远摄像头(Move Farther):05'."\n"
+ .'- 拉近摄像头(Move Closer):06'."\n"
+ .'- 炫彩检测(Photinus):07', 'type' => 'string', 'required' => false, 'example' => '01,02,07'],
+ ],
+ [
+ 'name' => 'TemplateRanCount',
+ 'in' => 'query',
+ 'schema' => ['description' => '从TemplateConfig中随机抽取的动作数量。'."\n"
+ .'仅当 TemplateType 为 Ran 时生效。'."\n"
+ ."\n"
+ .'-校验规则:'."\n"
+ .'- 数值必须大于1。数值小于等于 TemplateConfig 中配置的动作总数。若不传,默认等于 TemplateConfig 中的动作总数。', 'type' => 'string', 'required' => false, 'example' => '2'],
+ ],
+ [
+ 'name' => 'OcrValueStandard',
+ 'in' => 'query',
+ 'schema' => ['title' => '是否需要额外返回OCR识别标准化格式字段:'."\n"
+ ."\n"
+ .'0:否 (默认)'."\n"
+ ."\n"
+ .'1:是', 'description' => '是否需要额外返回OCR识别标准化格式字段:'."\n"
+ ."\n"
+ .'0:否 (默认)'."\n"
+ ."\n"
+ .'1:是', 'type' => 'string', 'required' => false, 'example' => '0', 'default' => '0'],
+ ],
+ [
+ 'name' => 'TargetFacePictureFile',
+ 'in' => 'query',
+ 'schema' => ['description' => '底库人脸图片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'FacePictureFile',
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸照片 文件流', 'type' => 'string', 'required' => false, 'example' => 'InputStream', 'isFileTransferUrl' => true],
+ ],
+ [
+ 'name' => 'FaceAttributeCheck',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string'],
+ ],
],
'responses' => [
200 => [
@@ -5498,58 +5750,51 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'."\n",
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回消息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Data' => [
- 'description' => '返回数据。',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'."\n"],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果。',
'type' => 'object',
'properties' => [
- 'DownloadTaskId' => [
- 'description' => '任务id,异步模式返回,后续使用QueryDownloadTaskIntl下载导出文件。',
- 'type' => 'string',
- 'example' => '202511284106866',
- ],
- 'Url' => [
- 'description' => '导出文件下载链接。',
- 'type' => 'string',
- 'example' => 'https://cn-shanghai-aliyun-cloudauth.oss-cn-shanghai.aliyuncs.com/console/xxxxxx/KYC_INVOKE_STATISTICS.xlxs',
- ],
+ 'TransactionId' => ['description' => '认证请求的唯一标识。', 'type' => 'string', 'example' => '4ab0b***cbde97'],
+ 'ClientCfg' => ['description' => '客户端配置', 'type' => 'string', 'example' => '***'],
+ 'TransactionUrl' => ['description' => 'Web认证Url', 'type' => 'string', 'example' => 'http****'],
+ 'Protocol' => ['description' => '认证标准加密协议。'."\n"
+ ."\n"
+ .'> H5网页接入,选择iframe内嵌集成时依赖该字段。', 'type' => 'string', 'example' => 'hksb7ba1b28130d24e015d*********'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'title' => '认证初始化',
+ 'summary' => '认证初始化',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:InitializeV2',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\\\n\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"DownloadTaskId\\": \\"202511284106866\\",\\n \\"Url\\": \\"https://cn-shanghai-aliyun-cloudauth.oss-cn-shanghai.aliyuncs.com/console/xxxxxx/KYC_INVOKE_STATISTICS.xlxs\\"\\n }\\n}","type":"json"}]',
- 'title' => '下载认证记录',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\\\n\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"4ab0b***cbde97\\",\\n \\"ClientCfg\\": \\"***\\",\\n \\"TransactionUrl\\": \\"http****\\",\\n \\"Protocol\\": \\"hksb7ba1b28130d24e015d*********\\"\\n }\\n}","type":"json"}]',
],
- 'QueryFaceGroup' => [
- 'summary' => '查询人脸库',
+ 'KeepaliveIntl' => [
+ 'summary' => '客户端连接保持',
'path' => '',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -5558,76 +5803,199 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'list',
+ 'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
+ 'abilityTreeNodes' => ['FEATUREcloudauthNOQ41U'],
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求ID。', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'Result' => ['description' => '返回结果', 'type' => 'string', 'example' => 'SUCCESS'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '客户端连接保持',
+ 'description' => '客户端连接保持',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"Result\\": \\"SUCCESS\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'Mobile2MetaVerifyIntl' => [
+ 'summary' => '手机号二要素核验API',
+ 'path' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
],
],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeNodes' => ['FEATUREcloudauthPZCZ2I'],
+ 'tenantRelevance' => 'tenant',
+ ],
'parameters' => [
[
- 'name' => 'Name',
- 'in' => 'query',
+ 'name' => 'ProductCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => '产品code(固定值:MOBILE_2META)', 'type' => 'string', 'required' => true, 'example' => 'MOBILE_2META'],
+ ],
+ [
+ 'name' => 'ParamType',
+ 'in' => 'formData',
+ 'schema' => ['description' => '参数类型:'."\n"
+ ."\n"
+ .'- normal:不加密'."\n"
+ .'- md5:md5加密', 'type' => 'string', 'required' => true, 'example' => 'normal'],
+ ],
+ [
+ 'name' => 'UserName',
+ 'in' => 'formData',
+ 'schema' => ['description' => '姓名:'."\n"
+ ."\n"
+ .'- paramType 传 normal 时:传入姓名明文。'."\n"
+ .'- paramType 传 md5 时:传入姓名密文(输入32位小写md5字符串)。', 'type' => 'string', 'required' => true, 'example' => '张*'],
+ ],
+ [
+ 'name' => 'Mobile',
+ 'in' => 'formData',
+ 'schema' => ['description' => '手机号码。'."\n"
+ ."\n"
+ .'- 当paramType取值normal时,输入明文'."\n"
+ .'- 当paramType取值md5时,传入手机号码密文,输入32位小写md5字符串', 'type' => 'string', 'required' => true, 'example' => '186****1234'],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => '人脸库名称。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test008',
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'BizCode' => ['description' => '核验结果码。'."\n"
+ .'- 1:核验一致'."\n"
+ .'- 2:核验不一致'."\n"
+ .'- 3:未查得', 'type' => 'string', 'example' => '1'],
+ 'IspName' => ['description' => '运营商名称'."\n"
+ ."\n"
+ .'- CMCC:移动'."\n"
+ .'- CUCC:联通'."\n"
+ .'- CTCC:电信', 'type' => 'string', 'example' => 'CMCC'],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '手机号二要素核验',
+ 'description' => '传入手机号、姓名,通过权威数据源验证其真实性和一致性。请确保在使用该接口前,已充分了解手机二要素产品的收费方式和价格',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Mobile2MetaVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"BizCode\\": \\"1\\",\\n \\"IspName\\": \\"CMCC\\"\\n }\\n}","type":"json"}]',
+ ],
+ 'Mobile3MetaVerifyIntl' => [
+ 'summary' => '传入手机号、姓名、身份证号,通过权威数据源验证其真实性和一致性,如果不一致,返回不一致的原因。',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'paid',
+ 'abilityTreeCode' => '199210',
+ 'abilityTreeNodes' => ['FEATUREcloudauthPZCZ2I'],
+ ],
+ 'parameters' => [
[
- 'name' => 'GroupCode',
+ 'name' => 'ProductCode',
'in' => 'query',
- 'schema' => [
- 'description' => '人脸库编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'groupCode001',
- ],
+ 'schema' => ['description' => '接入的产品方案,固定值:MOBILE_3META', 'type' => 'string', 'required' => false, 'example' => 'MOBILE_3META'],
],
[
- 'name' => 'CurrentPage',
+ 'name' => 'ParamType',
'in' => 'query',
- 'schema' => [
- 'description' => '当前页。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '参数类型:'."\n"
+ ."\n"
+ .'- normal:不加密'."\n"
+ .'- md5:md5加密', 'type' => 'string', 'required' => false, 'example' => 'normal'],
],
[
- 'name' => 'PageSize',
+ 'name' => 'IdentifyNum',
'in' => 'query',
- 'schema' => [
- 'description' => '查询每页数目。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '10',
- ],
+ 'schema' => ['description' => '身份证号'."\n"
+ ."\n"
+ .'- 当paramType取值normal时,输入明文'."\n"
+ .'- 当paramType取值md5时,输入32位小写md5字符串', 'type' => 'string', 'required' => false, 'example' => '429001********8211'."\n"],
],
[
- 'name' => 'MaxResults',
+ 'name' => 'UserName',
'in' => 'query',
- 'schema' => [
- 'description' => '每页的最大数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- ],
+ 'schema' => ['description' => '姓名'."\n"
+ ."\n"
+ .'- 当paramType取值normal时,输入明文'."\n"
+ .'- 当paramType取值md5时,输入32位小写md5字符串', 'type' => 'string', 'required' => false, 'example' => '张*'."\n"],
],
[
- 'name' => 'NextToken',
+ 'name' => 'Mobile',
'in' => 'query',
- 'schema' => [
- 'description' => '下一个查询开始Token',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'WpY9RBGa5Vrzxi3+mp2Cdw==',
- ],
+ 'schema' => ['description' => '手机号码。'."\n"
+ ."\n"
+ .'- 当paramType取值normal时,输入明文'."\n"
+ .'- 当paramType取值md5时,输入32位小写md5字符串', 'type' => 'string', 'required' => false, 'example' => '186****1234'],
],
],
'responses' => [
@@ -5637,107 +6005,64 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'TotalCount' => [
- 'description' => '总条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '0',
- ],
- 'TotalPage' => [
- 'description' => '总页数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CurrentPage' => [
- 'description' => '当前查询页数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '1',
- ],
- 'PageSize' => [
- 'description' => '查询每页数目。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'Items' => [
- 'description' => '返回信息列表。',
- 'type' => 'array',
- 'items' => [
- 'description' => '对象详情。',
- 'type' => 'object',
- 'properties' => [
- 'Id' => [
- 'description' => '主键ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '162261',
- ],
- 'Name' => [
- 'description' => '人脸库名称。',
- 'type' => 'string',
- 'example' => 'test-888',
- ],
- 'Code' => [
- 'description' => '人脸库编码。',
- 'type' => 'string',
- 'example' => 'faceGroup001',
- ],
- 'Description' => [
- 'description' => '描述。',
- 'type' => 'string',
- 'example' => 'desc',
- ],
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => '请求Id', 'type' => 'string', 'example' => 'D241532C-4EE9-5A2A-A5A5-C1FD98CE2EDD'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'Result' => [
+ 'description' => '返回结果',
+ 'type' => 'object',
+ 'properties' => [
+ 'BizCode' => ['description' => '核验结果码。'."\n"
+ .'- 1:核验一致'."\n"
+ .'- 2:核验不一致'."\n"
+ .'- 3:未查得', 'type' => 'string', 'example' => '1'],
+ 'SubCode' => ['description' => '核验详细结果'."\n"
+ ."\n"
+ .'- 101:验证通过 '."\n"
+ .'- 201:⼿机号和姓名不⼀致,⼿机号和证件号不⼀致 '."\n"
+ .'- 202:⼿机号和姓名⼀致,⼿机号和证件号不⼀致 '."\n"
+ .'- 203:⼿机号和证件号⼀致,⼿机号和姓名不⼀致 '."\n"
+ .'- 204:其他不⼀致'."\n"
+ .'- 301:查⽆记录', 'type' => 'string', 'example' => '101'],
+ 'IspName' => ['description' => '运营商名称'."\n"
+ ."\n"
+ .'- CMCC:移动'."\n"
+ .'- CUCC:联通'."\n"
+ .'- CTCC:电信', 'type' => 'string', 'example' => 'CMCC'],
],
],
- 'MaxResults' => [
- 'description' => '分页查询时每页行数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '50',
- ],
- 'NextToken' => [
- 'description' => '下一个查询开始的Token。',
- 'type' => 'string',
- 'example' => 'N/zmQeG/x9TDWmaB/pbfBQ==',
- ],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D241532C-4EE9-5A2A-A5A5-C1FD98CE2EDD\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"BizCode\\": \\"1\\",\\n \\"SubCode\\": \\"101\\",\\n \\"IspName\\": \\"CMCC\\"\\n }\\n}","type":"json"}]',
+ 'title' => '手机号三要素核验',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Mobile3MetaVerifyIntl'],
+ ],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Mobile3MetaVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"TotalCount\\": 0,\\n \\"TotalPage\\": 1,\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 100,\\n \\"Items\\": [\\n {\\n \\"Id\\": 162261,\\n \\"Name\\": \\"test-888\\",\\n \\"Code\\": \\"faceGroup001\\",\\n \\"Description\\": \\"desc\\"\\n }\\n ],\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"N/zmQeG/x9TDWmaB/pbfBQ==\\"\\n}","type":"json"}]',
- 'title' => '查询人脸库',
],
'ModifyFaceGroup' => [
'summary' => '修改人脸库',
'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -5749,40 +6074,23 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
'name' => 'Id',
'in' => 'formData',
- 'schema' => [
- 'description' => '主键ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => '65c030cd54b23283ceb27b4ade5da49d',
- ],
+ 'schema' => ['description' => '主键ID', 'type' => 'string', 'required' => false, 'example' => '65c030cd54b23283ceb27b4ade5da49d'],
],
[
'name' => 'Name',
'in' => 'formData',
- 'schema' => [
- 'description' => '人脸库名称。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test008',
- ],
+ 'schema' => ['description' => '人脸库名称。', 'type' => 'string', 'required' => true, 'example' => 'test008'],
],
[
'name' => 'Description',
'in' => 'formData',
- 'schema' => [
- 'description' => '描述。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'description',
- ],
+ 'schema' => ['description' => '描述。', 'type' => 'string', 'required' => false, 'example' => 'description'],
],
],
'responses' => [
@@ -5792,47 +6100,40 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Data' => [
- 'description' => '返回结果。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'Data' => ['description' => '返回结果。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '修改人脸库',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:ModifyFaceGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": 1\\n}","type":"json"}]',
- 'title' => '修改人脸库',
],
- 'DeleteFaceGroup' => [
- 'summary' => '删除人脸库',
+ 'ModifyFaceRecord' => [
+ 'summary' => '编辑人脸记录',
'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -5844,20 +6145,18 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
- 'name' => 'Id',
+ 'name' => 'ImgOssInfos',
'in' => 'formData',
- 'schema' => [
- 'description' => '主键ID',
- 'type' => 'string',
- 'required' => true,
- 'example' => '16681',
- ],
+ 'schema' => ['description' => '图片oss信息。', 'type' => 'string', 'required' => true, 'example' => 'JSON'],
+ ],
+ [
+ 'name' => 'FaceGroupCode',
+ 'in' => 'formData',
+ 'schema' => ['description' => '人脸库编码。', 'type' => 'string', 'required' => true, 'example' => '4EB35****87'],
],
],
'responses' => [
@@ -5867,48 +6166,39 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '595E387B-3F0E-5C52-BD02-8EFE63D41FD5',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Data' => [
- 'description' => '返回结果。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '4EB35****87EBA1'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'Data' => ['description' => '结果。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '编辑人脸记录',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:ModifyFaceRecord',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"595E387B-3F0E-5C52-BD02-8EFE63D41FD5\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": 1\\n}","type":"json"}]',
- 'title' => '删除人脸库',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": 1\\n}","type":"json"}]',
],
- 'QueryFaceRecord' => [
- 'summary' => '查询人脸记录',
+ 'QueryFaceGroup' => [
'path' => '',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -5920,93 +6210,38 @@
'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
- 'name' => 'FaceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '⼈脸ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '5006538',
- ],
- ],
- [
- 'name' => 'MerchantUserId',
+ 'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'description' => '商户用户ID。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'CuN6hiD08qr',
- ],
+ 'schema' => ['description' => '人脸库名称。', 'type' => 'string', 'required' => false, 'example' => 'test008'],
],
[
- 'name' => 'RegistrationType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '注册类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'MANUAL',
- ],
- ],
- [
- 'name' => 'FaceGroupCode',
+ 'name' => 'GroupCode',
'in' => 'query',
- 'schema' => [
- 'description' => '人脸库编码。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Cu****D08q',
- ],
+ 'schema' => ['description' => '人脸库编码。', 'type' => 'string', 'required' => false, 'example' => 'groupCode001'],
],
[
'name' => 'CurrentPage',
'in' => 'query',
- 'schema' => [
- 'description' => '当前页。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => '当前页。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => '查询每页数目。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'example' => '20',
- ],
+ 'schema' => ['description' => '查询每页数目。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '10'],
],
[
'name' => 'MaxResults',
'in' => 'query',
- 'schema' => [
- 'description' => '分页查询时每页行数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '100',
- ],
+ 'schema' => ['description' => '每页的最大数据条数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
],
[
'name' => 'NextToken',
'in' => 'query',
- 'schema' => [
- 'description' => '用于请求下一页检索的结果。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'AAAAARbaCuN6hiD08qrLdwJ9Fh0OP1yH8z+7FV4KKGUw4X32',
- ],
+ 'schema' => ['description' => '下一个查询开始Token', 'type' => 'string', 'required' => false, 'example' => 'WpY9RBGa5Vrzxi3+mp2Cdw=='],
],
],
'responses' => [
@@ -6016,152 +6251,113 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '7F971622-38C0-5F56-B2EC-315367979B4F',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'TotalCount' => [
- 'description' => '总记录数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '6',
- ],
- 'TotalPage' => [
- 'description' => '页码总数',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
- ],
- 'CurrentPage' => [
- 'description' => '当前查询页数。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '2',
- ],
- 'PageSize' => [
- 'description' => '每页数目。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '10',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '5E63B760-0ECB-5C07-8503-A65C27876968'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => '200'],
+ 'Message' => ['description' => '返回信息', 'type' => 'string', 'example' => 'success'],
+ 'TotalCount' => ['description' => '总条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '0'],
+ 'TotalPage' => ['description' => '总页数。', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CurrentPage' => ['description' => '当前查询页数。', 'type' => 'integer', 'format' => 'int64', 'example' => '1'],
+ 'PageSize' => ['description' => '查询每页数目。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
'Items' => [
- 'description' => '返回信息列表',
+ 'description' => '返回信息列表。',
'type' => 'array',
'items' => [
- 'description' => '返回对象详情。',
+ 'description' => '对象详情。',
'type' => 'object',
'properties' => [
- 'Id' => [
- 'description' => '主键ID。',
- 'type' => 'integer',
- 'format' => 'int64',
- 'example' => '16112',
- ],
- 'FaceId' => [
- 'description' => '⼈脸ID。',
- 'type' => 'string',
- 'example' => '230642938',
- ],
- 'GmtCreate' => [
- 'description' => '创建时间。',
- 'type' => 'string',
- 'example' => '2025-01-15T02:20:28Z',
- ],
- 'RegistrationType' => [
- 'description' => '注册类型。',
- 'type' => 'string',
- 'example' => 'MANUAL',
- ],
- 'ImgOssUrl' => [
- 'description' => '人脸图片地址。',
- 'type' => 'string',
- 'example' => 'http://www.xxxx.com/1.jpg',
- ],
- 'MerchantUserId' => [
- 'description' => '商户用户ID。',
- 'type' => 'string',
- 'example' => 'CuN6hiD08qr',
- ],
+ 'Id' => ['description' => '主键ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '162261'],
+ 'Name' => ['description' => '人脸库名称。', 'type' => 'string', 'example' => 'test-888'],
+ 'Code' => ['description' => '人脸库编码。', 'type' => 'string', 'example' => 'faceGroup001'],
+ 'Description' => ['description' => '描述。', 'type' => 'string', 'example' => 'desc'],
],
],
],
- 'MaxResults' => [
- 'description' => '每页的最大数据条数。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '100',
- ],
- 'NextToken' => [
- 'description' => '下一个查询开始Token。',
- 'type' => 'string',
- 'example' => 'AAAAARfZmVDe9NvRXloR5+8CK9nwqHyx44CQz3pa71+mmu0e',
- ],
+ 'MaxResults' => ['description' => '分页查询时每页行数。', 'type' => 'integer', 'format' => 'int32', 'example' => '50'],
+ 'NextToken' => ['description' => '下一个查询开始的Token。', 'type' => 'string', 'example' => 'N/zmQeG/x9TDWmaB/pbfBQ=='],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '查询人脸库',
+ 'summary' => '查询人脸库',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:QueryFaceGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7F971622-38C0-5F56-B2EC-315367979B4F\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"TotalCount\\": 6,\\n \\"TotalPage\\": 1,\\n \\"CurrentPage\\": 2,\\n \\"PageSize\\": 10,\\n \\"Items\\": [\\n {\\n \\"Id\\": 16112,\\n \\"FaceId\\": \\"230642938\\",\\n \\"GmtCreate\\": \\"2025-01-15T02:20:28Z\\",\\n \\"RegistrationType\\": \\"MANUAL\\",\\n \\"ImgOssUrl\\": \\"http://www.xxxx.com/1.jpg\\",\\n \\"MerchantUserId\\": \\"CuN6hiD08qr\\"\\n }\\n ],\\n \\"MaxResults\\": 100,\\n \\"NextToken\\": \\"AAAAARfZmVDe9NvRXloR5+8CK9nwqHyx44CQz3pa71+mmu0e\\"\\n}","type":"json"}]',
- 'title' => '查询人脸记录',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5E63B760-0ECB-5C07-8503-A65C27876968\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"TotalCount\\": 0,\\n \\"TotalPage\\": 1,\\n \\"CurrentPage\\": 1,\\n \\"PageSize\\": 100,\\n \\"Items\\": [\\n {\\n \\"Id\\": 162261,\\n \\"Name\\": \\"test-888\\",\\n \\"Code\\": \\"faceGroup001\\",\\n \\"Description\\": \\"desc\\"\\n }\\n ],\\n \\"MaxResults\\": 50,\\n \\"NextToken\\": \\"N/zmQeG/x9TDWmaB/pbfBQ==\\"\\n}","type":"json"}]',
],
- 'ModifyFaceRecord' => [
- 'summary' => '编辑人脸记录',
+ 'QueryFaceRecord' => [
+ 'summary' => '查询人脸记录',
'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'none',
+ 'operationType' => 'list',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
- 'name' => 'ImgOssInfos',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '图片oss信息。',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'JSON',
- ],
+ 'name' => 'FaceId',
+ 'in' => 'query',
+ 'schema' => ['description' => '⼈脸ID。', 'type' => 'string', 'required' => false, 'example' => '5006538'],
+ ],
+ [
+ 'name' => 'MerchantUserId',
+ 'in' => 'query',
+ 'schema' => ['description' => '商户用户ID。', 'type' => 'string', 'required' => false, 'example' => 'CuN6hiD08qr'],
+ ],
+ [
+ 'name' => 'RegistrationType',
+ 'in' => 'query',
+ 'schema' => ['description' => '注册类型。', 'type' => 'string', 'required' => false, 'example' => 'MANUAL'],
],
[
'name' => 'FaceGroupCode',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '人脸库编码。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '4EB35****87',
- ],
+ 'in' => 'query',
+ 'schema' => ['description' => '人脸库编码。', 'type' => 'string', 'required' => true, 'example' => 'Cu****D08q'],
+ ],
+ [
+ 'name' => 'CurrentPage',
+ 'in' => 'query',
+ 'schema' => ['description' => '当前页。', 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1'],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => '查询每页数目。', 'type' => 'integer', 'format' => 'int32', 'required' => true, 'example' => '20'],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => ['description' => '分页查询时每页行数。', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '100'],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => ['description' => '用于请求下一页检索的结果。', 'type' => 'string', 'required' => false, 'example' => 'AAAAARbaCuN6hiD08qrLdwJ9Fh0OP1yH8z+7FV4KKGUw4X32'],
],
],
'responses' => [
@@ -6171,72 +6367,78 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Data' => [
- 'description' => '结果。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '7F971622-38C0-5F56-B2EC-315367979B4F'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
+ 'TotalCount' => ['description' => '总记录数。', 'type' => 'integer', 'format' => 'int32', 'example' => '6'],
+ 'TotalPage' => ['description' => '页码总数', 'type' => 'integer', 'format' => 'int32', 'example' => '1'],
+ 'CurrentPage' => ['description' => '当前查询页数。', 'type' => 'integer', 'format' => 'int64', 'example' => '2'],
+ 'PageSize' => ['description' => '每页数目。', 'type' => 'integer', 'format' => 'int32', 'example' => '10'],
+ 'Items' => [
+ 'description' => '返回信息列表',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '返回对象详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Id' => ['description' => '主键ID。', 'type' => 'integer', 'format' => 'int64', 'example' => '16112'],
+ 'FaceId' => ['description' => '⼈脸ID。', 'type' => 'string', 'example' => '230642938'],
+ 'GmtCreate' => ['description' => '创建时间。', 'type' => 'string', 'example' => '2025-01-15T02:20:28Z'],
+ 'RegistrationType' => ['description' => '注册类型。', 'type' => 'string', 'example' => 'MANUAL'],
+ 'ImgOssUrl' => ['description' => '人脸图片地址。', 'type' => 'string', 'example' => 'http://www.xxxx.com/1.jpg'],
+ 'MerchantUserId' => ['description' => '商户用户ID。', 'type' => 'string', 'example' => 'CuN6hiD08qr'],
+ ],
+ ],
],
+ 'MaxResults' => ['description' => '每页的最大数据条数。', 'type' => 'integer', 'format' => 'int32', 'example' => '100'],
+ 'NextToken' => ['description' => '下一个查询开始Token。', 'type' => 'string', 'example' => 'AAAAARfZmVDe9NvRXloR5+8CK9nwqHyx44CQz3pa71+mmu0e'],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '查询人脸记录',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:QueryFaceRecord',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": 1\\n}","type":"json"}]',
- 'title' => '编辑人脸记录',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7F971622-38C0-5F56-B2EC-315367979B4F\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"TotalCount\\": 6,\\n \\"TotalPage\\": 1,\\n \\"CurrentPage\\": 2,\\n \\"PageSize\\": 10,\\n \\"Items\\": [\\n {\\n \\"Id\\": 16112,\\n \\"FaceId\\": \\"230642938\\",\\n \\"GmtCreate\\": \\"2025-01-15T02:20:28Z\\",\\n \\"RegistrationType\\": \\"MANUAL\\",\\n \\"ImgOssUrl\\": \\"http://www.xxxx.com/1.jpg\\",\\n \\"MerchantUserId\\": \\"CuN6hiD08qr\\"\\n }\\n ],\\n \\"MaxResults\\": 100,\\n \\"NextToken\\": \\"AAAAARfZmVDe9NvRXloR5+8CK9nwqHyx44CQz3pa71+mmu0e\\"\\n}","type":"json"}]',
],
- 'DeleteFaceRecord' => [
- 'summary' => '删除人脸记录',
- 'path' => '',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'TempAccessTokenIntl' => [
+ 'summary' => '获取临时token',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthNYJI62'],
],
'parameters' => [
[
- 'name' => 'Id',
+ 'name' => 'Type',
'in' => 'formData',
- 'schema' => [
- 'description' => '主键ID',
- 'type' => 'string',
- 'required' => false,
- 'example' => '344537',
- ],
+ 'schema' => ['description' => '类型。', 'type' => 'string', 'required' => false, 'example' => 'none'],
],
],
'responses' => [
@@ -6246,46 +6448,50 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540'],
+ 'Code' => ['description' => '返回码', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '返回结果。',
- 'type' => 'integer',
- 'format' => 'int32',
- 'example' => '1',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccessKeyId' => ['description' => '文件上传临时凭证的AccessKeyId。', 'type' => 'string', 'example' => '***'],
+ 'AccessKeySecret' => ['description' => '临时授权secret。', 'type' => 'string', 'example' => '3hxuRpEJ3Jv2Rtzyg4HooFCYqps762XcNtzhn19wQymk'],
+ 'SecurityToken' => ['description' => '文件上传临时凭证的安全令牌。', 'type' => 'string', 'example' => '***'],
+ 'OssEndPoint' => ['description' => 'OssEndPoint。', 'type' => 'string', 'example' => ' ossEndPoint'],
+ 'BucketName' => ['description' => '存储空间名称。', 'type' => 'string', 'example' => 'liyi'],
+ 'FileNamePrefix' => ['description' => '文件前缀。', 'type' => 'string', 'example' => 'test001'],
+ ],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取临时token',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:TempAccessTokenIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": 1\\n}","type":"json"}]',
- 'title' => '删除人脸记录',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"AccessKeyId\\": \\"***\\",\\n \\"AccessKeySecret\\": \\"3hxuRpEJ3Jv2Rtzyg4HooFCYqps762XcNtzhn19wQymk\\",\\n \\"SecurityToken\\": \\"***\\",\\n \\"OssEndPoint\\": \\" ossEndPoint\\",\\n \\"BucketName\\": \\"liyi\\",\\n \\"FileNamePrefix\\": \\"test001\\"\\n }\\n}","type":"json"}]',
],
'TempOssUrlIntl' => [
'summary' => '获取文件临时地址',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -6297,20 +6503,13 @@
'operationType' => 'none',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthHJ4WQV',
- ],
+ 'abilityTreeNodes' => ['FEATUREcloudauthHJ4WQV'],
],
'parameters' => [
[
'name' => 'ObjectName',
'in' => 'formData',
- 'schema' => [
- 'description' => '对象名。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '20250512/pdf/579047.pdf',
- ],
+ 'schema' => ['description' => '对象名。', 'type' => 'string', 'required' => true, 'example' => '20250512/pdf/579047.pdf'],
],
],
'responses' => [
@@ -6320,703 +6519,638 @@
'description' => 'Schema of Response',
'type' => 'object',
'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => 'EFA11401-C961-5E89-A2D3-BF9883E5CC3D',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
+ 'RequestId' => ['title' => 'Id of the request', 'description' => 'Id of the request', 'type' => 'string', 'example' => 'EFA11401-C961-5E89-A2D3-BF9883E5CC3D'],
+ 'Code' => ['description' => '返回码。', 'type' => 'string', 'example' => 'Success'],
+ 'Message' => ['description' => '返回信息。', 'type' => 'string', 'example' => 'success'],
'Data' => [
'description' => '结果。',
'type' => 'object',
'properties' => [
- 'Url' => [
- 'description' => '文件url',
- 'type' => 'string',
- 'example' => 'http://bzxh.cdn.weijin365.com/assets/index-55338127.png',
- ],
+ 'Url' => ['description' => '文件url', 'type' => 'string', 'example' => 'http://bzxh.cdn.weijin365.com/assets/index-55338127.png'],
],
],
],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => '获取文件临时地址',
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [],
+ ],
+ 'ramActions' => [
+ [
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:TempOssUrlIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
+ ],
],
'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EFA11401-C961-5E89-A2D3-BF9883E5CC3D\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"Url\\": \\"http://bzxh.cdn.weijin365.com/assets/index-55338127.png\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取文件临时地址',
],
- 'TempAccessTokenIntl' => [
- 'summary' => '获取临时token',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ ],
+ 'endpoints' => [
+ ['regionId' => 'cn-hongkong', 'regionName' => '中国香港', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cloudauth-intl.cn-hongkong.aliyuncs.com', 'endpoint' => 'cloudauth-intl.cn-hongkong.aliyuncs.com', 'vpc' => 'cloudauth-intl-vpc.cn-hongkong.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'cloudauth-intl.ap-southeast-1.aliyuncs.com', 'endpoint' => 'cloudauth-intl.ap-southeast-1.aliyuncs.com', 'vpc' => 'cloudauth-intl-vpc.ap-southeast-1.aliyuncs.com'],
+ ],
+ 'errorCodes' => [],
+ 'changeSet' => [],
+ 'flowControl' => [
+ 'flowControlList' => [
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AddressVerifyIntl'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FaceCompare'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeepfakeDetectIntl'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FaceLiveness'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FaceGuardRisk'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'EkycVerify'],
+ ['threshold' => '30', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Initialize'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Id2MetaPeriodVerifyIntl'],
+ ['threshold' => '1', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DocOcrMax'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CardOcr'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'BankMetaVerifyIntl'],
+ ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DocOcr'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckResult'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CredentialVerifyIntl'],
+ ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'FraudResultCallBack'],
+ ['threshold' => '5', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteVerifyResult'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Mobile3MetaVerifyIntl'],
+ ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CheckVerifyLog'],
+ ['threshold' => '50', 'countWindow' => 1, 'regionId' => '*', 'api' => 'Id2MetaVerifyIntl'],
+ ],
+ ],
+ 'ram' => [
+ 'productCode' => 'Cloudauth',
+ 'productName' => '实人认证',
+ 'ramCodes' => ['yundun-cloudauth', 'antcloudauth'],
+ 'ramLevel' => '操作级',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'TempOssUrlIntl',
+ 'description' => '获取文件临时地址',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-cloudauth:TempOssUrlIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'readAndWrite',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'DeleteFaceGroup',
+ 'description' => '删除人脸库',
'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthNYJI62',
+ 'ramAction' => [
+ 'action' => 'yundun-cloudauth:DeleteFaceGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'Type',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'none',
+ [
+ 'apiName' => 'QueryFaceRecord',
+ 'description' => '查询人脸记录',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'yundun-cloudauth:QueryFaceRecord',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Data' => [
- 'description' => '返回结果。',
- 'type' => 'object',
- 'properties' => [
- 'AccessKeyId' => [
- 'description' => '文件上传临时凭证的AccessKeyId。',
- 'type' => 'string',
- 'example' => '***',
- ],
- 'AccessKeySecret' => [
- 'description' => '临时授权secret。',
- 'type' => 'string',
- 'example' => '3hxuRpEJ3Jv2Rtzyg4HooFCYqps762XcNtzhn19wQymk',
- ],
- 'SecurityToken' => [
- 'description' => '文件上传临时凭证的安全令牌。',
- 'type' => 'string',
- 'example' => '***',
- ],
- 'OssEndPoint' => [
- 'description' => 'OssEndPoint。',
- 'type' => 'string',
- 'example' => ' ossEndPoint',
- ],
- 'BucketName' => [
- 'description' => '存储空间名称。',
- 'type' => 'string',
- 'example' => 'liyi',
- ],
- 'FileNamePrefix' => [
- 'description' => '文件前缀。',
- 'type' => 'string',
- 'example' => 'test001',
- ],
- ],
- ],
- ],
+ [
+ 'apiName' => 'QueryFaceGroup',
+ 'description' => '查询人脸库',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'yundun-cloudauth:QueryFaceGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"AccessKeyId\\": \\"***\\",\\n \\"AccessKeySecret\\": \\"3hxuRpEJ3Jv2Rtzyg4HooFCYqps762XcNtzhn19wQymk\\",\\n \\"SecurityToken\\": \\"***\\",\\n \\"OssEndPoint\\": \\" ossEndPoint\\",\\n \\"BucketName\\": \\"liyi\\",\\n \\"FileNamePrefix\\": \\"test001\\"\\n }\\n}","type":"json"}]',
- 'title' => '获取临时token',
- ],
- 'CardOcr' => [
- 'summary' => '卡证Ocr纯服务端能力Api。',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'TempAccessTokenIntl',
+ 'description' => '获取临时token',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-cloudauth:TempAccessTokenIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'readAndWrite',
- 'deprecated' => true,
- 'systemTags' => [
+ [
+ 'apiName' => 'ModifyFaceRecord',
+ 'description' => '编辑人脸记录',
'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeCode' => '178782',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthCW0JNH',
- 'FEATUREcloudauthHOSIED',
- 'FEATUREcloudauthWSJE4H',
+ 'ramAction' => [
+ 'action' => 'yundun-cloudauth:ModifyFaceRecord',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'MerchantBizId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '商户侧自定义的业务唯一标识,用于后续定位排查问题使用。支持字母和数字的组合,长度最长32位,请确保唯一',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'dso9322***dsjsd22',
+ [
+ 'apiName' => 'ModifyFaceGroup',
+ 'description' => '修改人脸库',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'yundun-cloudauth:ModifyFaceGroup',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'MerchantUserId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '商户用户ID,或可用于识别特定用户的其他标识符,例如手机号码、电子邮件地址等。强烈建议对userId字段的值进行预脱敏处理,例如对该值进行hash处理',
- 'type' => 'string',
- 'required' => false,
- 'example' => '123456789',
+ ],
+ [
+ 'apiName' => 'DeleteFaceRecord',
+ 'description' => '删除人脸记录',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'yundun-cloudauth:DeleteFaceRecord',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'IdOcrPictureBase64',
- 'in' => 'formData',
- 'schema' => [
- 'description' => '证件正面图片base64编码。',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'base64',
+ ],
+ [
+ 'apiName' => 'FraudResultCallBack',
+ 'description' => '防伪回调接口',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FraudResultCallBack',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'IdOcrPictureUrl',
- 'in' => 'query',
- 'schema' => [
- 'description' => '证件正面图片URL',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://digital-cardocr-prod8.oss-cn-hangzhou.aliyuncs.com/1669520556530-expo/default/face/20221127114236530_w3kx2e6t.jpg'."\n",
+ ],
+ [
+ 'apiName' => 'CredentialSubmitIntl',
+ 'description' => '凭证识别任务提交(异步)',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CredentialSubmitIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'DocType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '证件类型。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '00000006',
+ ],
+ [
+ 'apiName' => 'AddFaceRecord',
+ 'description' => '添加人脸记录',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:AddFaceRecord',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'ProductCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '产品code',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ID_OCR_MIN',
+ ],
+ [
+ 'apiName' => 'CheckVerifyLog',
+ 'description' => '认证日志查询',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CheckVerifyLog',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'Ocr',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否进行证件OCR'."\n"
- .'- T:表示需要证件OCR(默认T)'."\n"
- .'- F:表示不需要',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'T',
+ ],
+ [
+ 'apiName' => 'Id2MetaVerifyIntl',
+ 'description' => '身份二要素认证核验',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Id2MetaVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'IdFaceQuality',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否进行证脸质量检测'."\n"
- .'- T:表示需要检测'."\n"
- .'- F:表示需要检测(默认F)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'F',
+ ],
+ [
+ 'apiName' => 'AddressCompareIntl',
+ 'description' => '地址相似比对',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:AddressCompareIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'Spoof',
- 'in' => 'query',
- 'schema' => [
- 'description' => '是否开启防伪检测'."\n"
- .'- T:表示开启防伪'."\n"
- .'- F:表示关闭(默认F)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'F',
+ ],
+ [
+ 'apiName' => 'DeepfakeDetectIntl',
+ 'description' => '人脸Deepfake检测',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DeepfakeDetectIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => 'Id of the request',
- 'type' => 'string',
- 'example' => '4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'Result' => [
- 'description' => '返回结果',
- 'type' => 'object',
- 'properties' => [
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识',
- 'type' => 'string',
- 'example' => '08573be80f944d95ac812e019e3655a8',
- ],
- 'Passed' => [
- 'description' => '认证是否通过。'."\n"
- ."\n"
- .'- Y:通过。'."\n"
- .'- N:不通过。',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'SubCode' => [
- 'description' => '子结果码。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'ExtIdInfo' => [
- 'description' => '额外结果信息',
- 'type' => 'string',
- 'example' => '**',
- ],
- 'ExtCardInfo' => [
- 'description' => '卡证识别结果',
- 'type' => 'string',
- 'example' => '{'."\n"
- .' "idFaceQualityScore": 98.90,'."\n"
- .' "ocrIdInfo": {'."\n"
- .' "expiryDate": "2024-04-20",'."\n"
- .' "placeOfIssue": "广东",'."\n"
- .' "englishName": "ZHENGJIAN,YANGBEN",'."\n"
- .' "originOfIssue": "公安部出入境管理局",'."\n"
- .' "sex": "女",'."\n"
- .' "name": "证件样本",'."\n"
- .' "idNumber": "C00000000",'."\n"
- .' "issueDate": "2014-04-21",'."\n"
- .' "birthDate": "1981-08-03"'."\n"
- .' },'."\n"
- .' "spoofInfo": {'."\n"
- .' "spoofResult": "N",'."\n"
- .' "spoofType": ['."\n"
- .' "SCREEN_REMARK"'."\n"
- .' ]'."\n"
- .' }'."\n"
- .'}',
- ],
- ],
- ],
- ],
+ [
+ 'apiName' => 'CredentialRecognitionIntl',
+ 'description' => '凭证识别',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CredentialRecognitionIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'substitutions' => [
- 'Cloudauth-intl::2022-08-09::DocOcr',
+ [
+ 'apiName' => 'DownloadVerifyRecordIntl',
+ 'description' => '下载认证记录',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DownloadVerifyRecordIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'returnType' => 'synchronous',
- ],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB356FE-BB6A-5DCC-B4C5-E8051787EBA1\\",\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\",\\n \\"Result\\": {\\n \\"TransactionId\\": \\"08573be80f944d95ac812e019e3655a8\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"ExtIdInfo\\": \\"**\\",\\n \\"ExtCardInfo\\": \\"{\\\\n \\\\\\"idFaceQualityScore\\\\\\": 98.90,\\\\n \\\\\\"ocrIdInfo\\\\\\": {\\\\n \\\\\\"expiryDate\\\\\\": \\\\\\"2024-04-20\\\\\\",\\\\n \\\\\\"placeOfIssue\\\\\\": \\\\\\"广东\\\\\\",\\\\n \\\\\\"englishName\\\\\\": \\\\\\"ZHENGJIAN,YANGBEN\\\\\\",\\\\n \\\\\\"originOfIssue\\\\\\": \\\\\\"公安部出入境管理局\\\\\\",\\\\n \\\\\\"sex\\\\\\": \\\\\\"女\\\\\\",\\\\n \\\\\\"name\\\\\\": \\\\\\"证件样本\\\\\\",\\\\n \\\\\\"idNumber\\\\\\": \\\\\\"C00000000\\\\\\",\\\\n \\\\\\"issueDate\\\\\\": \\\\\\"2014-04-21\\\\\\",\\\\n \\\\\\"birthDate\\\\\\": \\\\\\"1981-08-03\\\\\\"\\\\n },\\\\n \\\\\\"spoofInfo\\\\\\": {\\\\n \\\\\\"spoofResult\\\\\\": \\\\\\"N\\\\\\",\\\\n \\\\\\"spoofType\\\\\\": [\\\\n \\\\\\"SCREEN_REMARK\\\\\\"\\\\n ]\\\\n }\\\\n}\\"\\n }\\n}","type":"json"}]',
- 'title' => '卡证Ocr纯服务端能力Api',
- ],
- 'FraudResultCallBack' => [
- 'summary' => 'ekyc-global防伪回调接口',
- 'methods' => [
- 'get',
- 'post',
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'DeepfakeDetectIntlStream',
+ 'description' => '人脸Deepfake检测(文件流)',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DeepfakeDetectIntlStream',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'CardOcr',
+ 'description' => '卡证Ocr纯服务端能力Api',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CardOcr',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => true,
- 'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '184671',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthCW0JNH',
- 'FEATUREcloudauthHOSIED',
- 'FEATUREcloudauthWSJE4H',
+ [
+ 'apiName' => 'DocOcrMax',
+ 'description' => '全球卡证OCR识别',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DocOcrMax',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'tenantRelevance' => 'publicInformation',
],
- 'parameters' => [
- [
- 'name' => 'CertifyId',
- 'in' => 'query',
- 'schema' => [
- 'description' => '实人认证唯一标识,对应蚂蚁的verifyId',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'shs2b27333914876c01de4cb22f5841f',
+ [
+ 'apiName' => 'Initialize',
+ 'description' => '认证初始化',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Initialize',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'ResultCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '防伪是否通过'."\n"
- .'- PASS (通过)'."\n"
- .'- REJECT (不通过)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'PASS',
+ ],
+ [
+ 'apiName' => 'IdnAuthorityVerifyIntl',
+ 'description' => '印尼权威数据源认证',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:IdnAuthorityVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'VerifyDeployEnv',
- 'in' => 'query',
- 'schema' => [
- 'description' => '环境路由参数'."\n"
- .'- staging (预发环境)'."\n"
- .'- production (线上环境)',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'production',
+ ],
+ [
+ 'apiName' => 'DocOcrMaxV2',
+ 'description' => '全球卡证OCR识别',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DocOcrMaxV2',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'ExtParams',
- 'in' => 'query',
- 'schema' => [
- 'description' => '扩展参数,json字符串。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '{}',
+ ],
+ [
+ 'apiName' => 'FaceVerifyIntl',
+ 'description' => '人脸验证',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求Id',
- 'type' => 'string',
- 'example' => '4EB35****87EBA1',
- ],
- 'Success' => [
- 'description' => '是否调用成功。'."\n"
- .'- **true**:调用成功。'."\n"
- .'- **false**:调用失败。',
- 'type' => 'boolean',
- 'example' => 'true',
- ],
- 'Code' => [
- 'description' => '返回码',
- 'type' => 'string',
- 'example' => 'Success',
- ],
- 'Message' => [
- 'description' => '返回信息',
- 'type' => 'string',
- 'example' => 'success',
- ],
- ],
+ [
+ 'apiName' => 'CredentialGetResultIntl',
+ 'description' => '凭证识别结果查询(异步)',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CredentialGetResultIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'noSubstitutionReason' => '无替代API,历史原因导致该API被标记为弃用。',
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'FaceCompare',
+ 'description' => '人脸比对',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceCompare',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"4EB35****87EBA1\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"Success\\",\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
- 'title' => '防伪回调接口',
- ],
- 'AddressVerifyIntl' => [
- 'summary' => '常用地址核验 API 基于运营商能力,通过手机号码、地址(或经纬度),验证传入地址是否属于该用户的常住地址。',
- 'path' => '',
- 'methods' => [
- 'post',
+ [
+ 'apiName' => 'Mobile3MetaVerifyIntl',
+ 'description' => '手机号三要素核验',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Mobile3MetaVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'Id2MetaPeriodVerifyIntl',
+ 'description' => '身份证有效期核验',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Id2MetaPeriodVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'InitializeV2',
+ 'description' => '认证初始化',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:InitializeV2',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'operationType' => 'readAndWrite',
- 'deprecated' => true,
- 'systemTags' => [
+ [
+ 'apiName' => 'AddressVerifyIntl',
+ 'description' => '地址核验',
'operationType' => 'none',
- 'riskType' => 'none',
- 'chargeType' => 'paid',
- 'abilityTreeNodes' => [
- 'FEATUREcloudauthZN5W38',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:AddressVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
],
- 'parameters' => [
- [
- 'name' => 'ProductCode',
- 'in' => 'query',
- 'schema' => [
- 'description' => '固定值:ADD_VERIFY_PRO',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ADD_VERIFY_PRO',
+ [
+ 'apiName' => 'BankMetaVerifyIntl',
+ 'description' => '银行卡要素核验',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:BankMetaVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'VerifyType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '地址核验方式:'."\n"
- .'- HOME:家庭地址核验'."\n"
- .'- WORK:工作地址核验',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'HOME',
+ ],
+ [
+ 'apiName' => 'EkycVerify',
+ 'description' => '纯服务端实人认证(eKYC_MIN)',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:EkycVerify',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'Mobile',
- 'in' => 'query',
- 'schema' => [
- 'description' => '支持中国手机号码。',
- 'type' => 'string',
- 'required' => true,
- 'example' => '1872334****',
+ ],
+ [
+ 'apiName' => 'FaceDuplicationCheckIntl',
+ 'description' => '纯服务端活体人脸防重注册(FACE_IDU_MIN)',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceDuplicationCheckIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'DefaultCountry',
- 'in' => 'query',
- 'schema' => [
- 'description' => '国家名称,当前仅支持:中国',
- 'type' => 'string',
- 'required' => true,
- 'example' => '中国',
+ ],
+ [
+ 'apiName' => 'DocOcr',
+ 'description' => '中国卡证OCR识别(ID_OCR_MIN)',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DocOcr',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'AddressType',
- 'in' => 'query',
- 'schema' => [
- 'description' => '验证地址类型:'."\n"
- .'- “0”:文本地址'."\n"
- .'- “1”:经纬度',
- 'type' => 'string',
- 'required' => true,
- 'example' => '“0”',
+ ],
+ [
+ 'apiName' => 'KeepaliveIntl',
+ 'description' => '客户端连接保持',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:KeepaliveIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'Longitude',
- 'in' => 'query',
- 'schema' => [
- 'description' => '经度。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '“121.4737”',
+ ],
+ [
+ 'apiName' => 'FaceGuardRisk',
+ 'description' => '设备助手',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceGuardRisk',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'Latitude',
- 'in' => 'query',
- 'schema' => [
- 'description' => '纬度。',
- 'type' => 'string',
- 'required' => false,
- 'example' => '“31.2304”',
+ ],
+ [
+ 'apiName' => 'CredentialVerifyIntl',
+ 'description' => '凭证篡改检测',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CredentialVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'Text',
- 'in' => 'query',
- 'schema' => [
- 'description' => '详细地址文本内容',
- 'type' => 'string',
- 'required' => false,
- 'example' => '阿里巴巴西溪园区',
+ ],
+ [
+ 'apiName' => 'CheckResult',
+ 'description' => '查询认证结果',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:CheckResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'DefaultProvince',
- 'in' => 'query',
- 'schema' => [
- 'description' => '默认省份',
- 'type' => 'string',
- 'required' => false,
- 'example' => '浙江省',
+ ],
+ [
+ 'apiName' => 'Mobile2MetaVerifyIntl',
+ 'description' => '手机号二要素核验',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:Mobile2MetaVerifyIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'DefaultCity',
- 'in' => 'query',
- 'schema' => [
- 'description' => '默认城市',
- 'type' => 'string',
- 'required' => false,
- 'example' => '杭州市',
+ ],
+ [
+ 'apiName' => 'FaceCrossCompareIntl',
+ 'description' => '人脸交叉比对',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceCrossCompareIntl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
- [
- 'name' => 'DefaultDistrict',
- 'in' => 'query',
- 'schema' => [
- 'description' => '默认行政区',
- 'type' => 'string',
- 'required' => false,
- 'example' => '余杭区',
+ ],
+ [
+ 'apiName' => 'DeleteVerifyResult',
+ 'description' => '删除认证记录',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:DeleteVerifyResult',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'responses' => [
- 200 => [
- 'schema' => [
- 'title' => 'Schema of Response',
- 'description' => 'Schema of Response',
- 'type' => 'object',
- 'properties' => [
- 'RequestId' => [
- 'title' => 'Id of the request',
- 'description' => '请求ID。',
- 'type' => 'string',
- 'example' => '86C40EC3-5940-5F47-995C-BFE90B70E540',
- ],
- 'Code' => [
- 'description' => '返回码。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'Message' => [
- 'description' => '返回信息。',
- 'type' => 'string',
- 'example' => 'success',
- ],
- 'ResultObject' => [
- 'description' => '返回的结果信息。',
- 'type' => 'object',
- 'properties' => [
- 'TransactionId' => [
- 'description' => '认证请求的唯一标识。',
- 'type' => 'string',
- 'example' => 'hksb7ba1b28130d24e015d69********',
- ],
- 'Passed' => [
- 'description' => '核验结果,取值:'."\n"
- .'- Y:是,验证地址距离小于等于10KM。'."\n"
- .'- N:否,验证地址距离大于10KM。',
- 'type' => 'string',
- 'example' => 'Y',
- ],
- 'SubCode' => [
- 'description' => '认证结果描述。',
- 'type' => 'string',
- 'example' => '200',
- ],
- 'AddressInfo' => [
- 'description' => '地址核验详情信息。',
- 'type' => 'string',
- 'example' => '0-3000',
- ],
- 'IspName' => [
- 'description' => '运营商名称:'."\n"
- .'- CMCC:中国移动'."\n"
- .'- CTCC:中国电信'."\n"
- .'- CUCC:中国联通',
- 'type' => 'string',
- 'example' => 'CMCC',
- ],
- ],
- ],
- ],
+ [
+ 'apiName' => 'FaceLiveness',
+ 'description' => '人脸静默活体(FACE_LIVENESS_MIN)',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:FaceLiveness',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
],
],
],
- 'staticInfo' => [
- 'substitutions' => [
- 'Cloudauth-intl::2022-08-09::AddressVerifyV2Intl',
+ [
+ 'apiName' => 'AddressVerifyV2Intl',
+ 'description' => '地址核验',
+ 'operationType' => 'none',
+ 'ramAction' => [
+ 'action' => 'antcloudauth:AddressVerifyV2Intl',
+ 'authLevel' => 'operate',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'Cloudauth', 'resourceType' => '全部资源', 'arn' => '*'],
+ ],
],
- 'returnType' => 'synchronous',
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"86C40EC3-5940-5F47-995C-BFE90B70E540\\",\\n \\"Code\\": \\"200\\",\\n \\"Message\\": \\"success\\",\\n \\"ResultObject\\": {\\n \\"TransactionId\\": \\"hksb7ba1b28130d24e015d69********\\",\\n \\"Passed\\": \\"Y\\",\\n \\"SubCode\\": \\"200\\",\\n \\"AddressInfo\\": \\"0-3000\\",\\n \\"IspName\\": \\"CMCC\\"\\n }\\n}","type":"json"}]',
- 'title' => '地址核验',
- 'description' => '基于运营商能力,输入手机号码、地址(或经纬度),验证传入地址是否属于该用户的常住地址。',
- ],
- ],
- 'endpoints' => [
- [
- 'regionId' => 'cn-hongkong',
- 'endpoint' => 'cloudauth-intl.cn-hongkong.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-1',
- 'endpoint' => 'cloudauth-intl.ap-southeast-1.aliyuncs.com',
- ],
- [
- 'regionId' => 'ap-southeast-5',
- 'endpoint' => 'cloudauth-intl.ap-southeast-5.aliyuncs.com',
],
+ 'resourceTypes' => [],
],
];