@alicloud/cloudauth20190307 3.9.5 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +271 -10
- package/dist/client.js +390 -10
- package/dist/client.js.map +1 -1
- package/dist/models/ContrastFaceVerifyAdvanceRequest.d.ts +93 -0
- package/dist/models/ContrastFaceVerifyAdvanceRequest.js.map +1 -1
- package/dist/models/ContrastFaceVerifyRequest.d.ts +93 -0
- package/dist/models/ContrastFaceVerifyRequest.js.map +1 -1
- package/dist/models/ContrastFaceVerifyResponseBody.d.ts +32 -0
- package/dist/models/ContrastFaceVerifyResponseBody.js.map +1 -1
- package/dist/models/CreateAuthKeyRequest.d.ts +12 -0
- package/dist/models/CreateAuthKeyRequest.js.map +1 -1
- package/dist/models/CreateAuthKeyResponseBody.d.ts +6 -0
- package/dist/models/CreateAuthKeyResponseBody.js.map +1 -1
- package/dist/models/CreateVerifySettingRequest.d.ts +18 -0
- package/dist/models/CreateVerifySettingRequest.js.map +1 -1
- package/dist/models/CreateVerifySettingResponseBody.d.ts +20 -0
- package/dist/models/CreateVerifySettingResponseBody.js.map +1 -1
- package/dist/models/CredentialVerifyRequest.d.ts +132 -0
- package/dist/models/CredentialVerifyRequest.js.map +1 -1
- package/dist/models/CredentialVerifyResponseBody.d.ts +103 -0
- package/dist/models/CredentialVerifyResponseBody.js.map +1 -1
- package/dist/models/CredentialVerifyShrinkRequest.d.ts +116 -0
- package/dist/models/CredentialVerifyShrinkRequest.js.map +1 -1
- package/dist/models/DescribeCardVerifyRequest.d.ts +3 -0
- package/dist/models/DescribeCardVerifyRequest.js.map +1 -1
- package/dist/models/DescribeCardVerifyResponseBody.d.ts +52 -0
- package/dist/models/DescribeCardVerifyResponseBody.js.map +1 -1
- package/dist/models/DescribeDeviceInfoRequest.d.ts +21 -0
- package/dist/models/DescribeDeviceInfoRequest.js.map +1 -1
- package/dist/models/DescribeDeviceInfoResponseBody.d.ts +31 -0
- package/dist/models/DescribeDeviceInfoResponseBody.js.map +1 -1
- package/dist/models/DescribeFaceGuardRiskRequest.d.ts +14 -0
- package/dist/models/DescribeFaceGuardRiskRequest.js.map +1 -1
- package/dist/models/DescribeFaceGuardRiskResponseBody.d.ts +32 -1
- package/dist/models/DescribeFaceGuardRiskResponseBody.js.map +1 -1
- package/dist/models/DescribeFaceVerifyRequest.d.ts +9 -0
- package/dist/models/DescribeFaceVerifyRequest.js.map +1 -1
- package/dist/models/DescribeFaceVerifyResponseBody.d.ts +59 -0
- package/dist/models/DescribeFaceVerifyResponseBody.js.map +1 -1
- package/dist/models/DescribeOssUploadTokenResponseBody.d.ts +28 -0
- package/dist/models/DescribeOssUploadTokenResponseBody.js.map +1 -1
- package/dist/models/DescribePageFaceVerifyDataRequest.d.ts +18 -0
- package/dist/models/DescribePageFaceVerifyDataRequest.js.map +1 -1
- package/dist/models/DescribePageFaceVerifyDataResponseBody.d.ts +50 -0
- package/dist/models/DescribePageFaceVerifyDataResponseBody.js.map +1 -1
- package/dist/models/DescribeSmartStatisticsPageListRequest.d.ts +13 -0
- package/dist/models/DescribeSmartStatisticsPageListRequest.js.map +1 -1
- package/dist/models/DescribeSmartStatisticsPageListResponseBody.d.ts +44 -0
- package/dist/models/DescribeSmartStatisticsPageListResponseBody.js.map +1 -1
- package/dist/models/DescribeVerifyResultRequest.d.ts +4 -0
- package/dist/models/DescribeVerifyResultRequest.js.map +1 -1
- package/dist/models/DescribeVerifyResultResponseBody.d.ts +125 -0
- package/dist/models/DescribeVerifyResultResponseBody.js.map +1 -1
- package/dist/models/DescribeVerifySdkrequest.d.ts +2 -0
- package/dist/models/DescribeVerifySdkrequest.js.map +1 -1
- package/dist/models/DescribeVerifySdkresponseBody.d.ts +6 -0
- package/dist/models/DescribeVerifySdkresponseBody.js.map +1 -1
- package/dist/models/DescribeVerifyTokenRequest.d.ts +49 -0
- package/dist/models/DescribeVerifyTokenRequest.js.map +1 -1
- package/dist/models/DescribeVerifyTokenResponseBody.d.ts +34 -0
- package/dist/models/DescribeVerifyTokenResponseBody.js.map +1 -1
- package/dist/models/DetectFaceAttributesRequest.d.ts +5 -0
- package/dist/models/DetectFaceAttributesRequest.js.map +1 -1
- package/dist/models/DetectFaceAttributesResponseBody.d.ts +100 -0
- package/dist/models/DetectFaceAttributesResponseBody.js.map +1 -1
- package/dist/models/Id3metaVerifyAdvanceRequest.d.ts +87 -0
- package/dist/models/Id3metaVerifyAdvanceRequest.js +67 -0
- package/dist/models/Id3metaVerifyAdvanceRequest.js.map +1 -0
- package/dist/models/Id3metaVerifyRequest.d.ts +86 -0
- package/dist/models/Id3metaVerifyRequest.js +68 -0
- package/dist/models/Id3metaVerifyRequest.js.map +1 -0
- package/dist/models/Id3metaVerifyResponse.d.ts +19 -0
- package/dist/models/Id3metaVerifyResponse.js +69 -0
- package/dist/models/Id3metaVerifyResponse.js.map +1 -0
- package/dist/models/Id3metaVerifyResponseBody.d.ts +83 -0
- package/dist/models/Id3metaVerifyResponseBody.js +88 -0
- package/dist/models/Id3metaVerifyResponseBody.js.map +1 -0
- package/dist/models/InitFaceVerifyRequest.d.ts +347 -0
- package/dist/models/InitFaceVerifyRequest.js.map +1 -1
- package/dist/models/InitFaceVerifyResponseBody.d.ts +32 -0
- package/dist/models/InitFaceVerifyResponseBody.js.map +1 -1
- package/dist/models/LivenessFaceVerifyRequest.d.ts +46 -0
- package/dist/models/LivenessFaceVerifyRequest.js.map +1 -1
- package/dist/models/LivenessFaceVerifyResponseBody.d.ts +29 -0
- package/dist/models/LivenessFaceVerifyResponseBody.js.map +1 -1
- package/dist/models/VerifyMaterialRequest.d.ts +24 -0
- package/dist/models/VerifyMaterialRequest.js.map +1 -1
- package/dist/models/VerifyMaterialResponseBody.d.ts +118 -0
- package/dist/models/VerifyMaterialResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +5 -0
- package/dist/models/model.js +15 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +403 -10
- package/src/models/ContrastFaceVerifyAdvanceRequest.ts +93 -0
- package/src/models/ContrastFaceVerifyRequest.ts +93 -0
- package/src/models/ContrastFaceVerifyResponseBody.ts +32 -0
- package/src/models/CreateAuthKeyRequest.ts +12 -0
- package/src/models/CreateAuthKeyResponseBody.ts +6 -0
- package/src/models/CreateVerifySettingRequest.ts +18 -0
- package/src/models/CreateVerifySettingResponseBody.ts +20 -0
- package/src/models/CredentialVerifyRequest.ts +132 -0
- package/src/models/CredentialVerifyResponseBody.ts +103 -0
- package/src/models/CredentialVerifyShrinkRequest.ts +116 -0
- package/src/models/DescribeCardVerifyRequest.ts +3 -0
- package/src/models/DescribeCardVerifyResponseBody.ts +52 -0
- package/src/models/DescribeDeviceInfoRequest.ts +21 -0
- package/src/models/DescribeDeviceInfoResponseBody.ts +31 -0
- package/src/models/DescribeFaceGuardRiskRequest.ts +14 -0
- package/src/models/DescribeFaceGuardRiskResponseBody.ts +32 -1
- package/src/models/DescribeFaceVerifyRequest.ts +9 -0
- package/src/models/DescribeFaceVerifyResponseBody.ts +59 -0
- package/src/models/DescribeOssUploadTokenResponseBody.ts +28 -0
- package/src/models/DescribePageFaceVerifyDataRequest.ts +18 -0
- package/src/models/DescribePageFaceVerifyDataResponseBody.ts +50 -0
- package/src/models/DescribeSmartStatisticsPageListRequest.ts +13 -0
- package/src/models/DescribeSmartStatisticsPageListResponseBody.ts +44 -0
- package/src/models/DescribeVerifyResultRequest.ts +4 -0
- package/src/models/DescribeVerifyResultResponseBody.ts +125 -0
- package/src/models/DescribeVerifySdkrequest.ts +2 -0
- package/src/models/DescribeVerifySdkresponseBody.ts +6 -0
- package/src/models/DescribeVerifyTokenRequest.ts +49 -0
- package/src/models/DescribeVerifyTokenResponseBody.ts +34 -0
- package/src/models/DetectFaceAttributesRequest.ts +5 -0
- package/src/models/DetectFaceAttributesResponseBody.ts +100 -0
- package/src/models/Id3metaVerifyAdvanceRequest.ts +110 -0
- package/src/models/Id3metaVerifyRequest.ts +109 -0
- package/src/models/Id3metaVerifyResponse.ts +40 -0
- package/src/models/Id3metaVerifyResponseBody.ts +117 -0
- package/src/models/InitFaceVerifyRequest.ts +347 -0
- package/src/models/InitFaceVerifyResponseBody.ts +32 -0
- package/src/models/LivenessFaceVerifyRequest.ts +46 -0
- package/src/models/LivenessFaceVerifyResponseBody.ts +29 -0
- package/src/models/VerifyMaterialRequest.ts +24 -0
- package/src/models/VerifyMaterialResponseBody.ts +118 -0
- package/src/models/model.ts +5 -0
package/dist/client.js
CHANGED
|
@@ -408,6 +408,21 @@ class Client extends openapi_core_1.default {
|
|
|
408
408
|
return await this.compareFacesWithOptions(request, runtime);
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
|
+
* This interface is used to submit authentication materials for verification and comparison, and it synchronously returns the authentication result.
|
|
412
|
+
*
|
|
413
|
+
* @remarks
|
|
414
|
+
* - Interface Name: ContrastFaceVerify.
|
|
415
|
+
* - Service Address: cloudauth.aliyuncs.com.
|
|
416
|
+
* - Request Method: HTTPS POST and GET.
|
|
417
|
+
* - Interface Description: An interface for real person authentication through server-side integration.
|
|
418
|
+
* #### Image Format Requirements
|
|
419
|
+
* When performing real person authentication, please ensure that the images you upload meet all of the following conditions:
|
|
420
|
+
* - Recent photo with a clear, unobstructed, and natural expression, facing the camera directly.
|
|
421
|
+
* - Clear and properly exposed photo, without overly dark, bright, or haloed faces, and with minimal angle deviation.
|
|
422
|
+
* - Resolution not exceeding 1920*1080, at least 640*480, with the shorter side recommended to be resized to 720 pixels, and a compression ratio greater than 0.9.
|
|
423
|
+
* - Photo size: <1MB.
|
|
424
|
+
* - Supports 90, 180, and 270-degree photos; in cases of multiple faces, the largest face will be selected.
|
|
425
|
+
*
|
|
411
426
|
* @param request - ContrastFaceVerifyRequest
|
|
412
427
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
413
428
|
* @returns ContrastFaceVerifyResponse
|
|
@@ -491,6 +506,21 @@ class Client extends openapi_core_1.default {
|
|
|
491
506
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ContrastFaceVerifyResponse({}));
|
|
492
507
|
}
|
|
493
508
|
/**
|
|
509
|
+
* This interface is used to submit authentication materials for verification and comparison, and it synchronously returns the authentication result.
|
|
510
|
+
*
|
|
511
|
+
* @remarks
|
|
512
|
+
* - Interface Name: ContrastFaceVerify.
|
|
513
|
+
* - Service Address: cloudauth.aliyuncs.com.
|
|
514
|
+
* - Request Method: HTTPS POST and GET.
|
|
515
|
+
* - Interface Description: An interface for real person authentication through server-side integration.
|
|
516
|
+
* #### Image Format Requirements
|
|
517
|
+
* When performing real person authentication, please ensure that the images you upload meet all of the following conditions:
|
|
518
|
+
* - Recent photo with a clear, unobstructed, and natural expression, facing the camera directly.
|
|
519
|
+
* - Clear and properly exposed photo, without overly dark, bright, or haloed faces, and with minimal angle deviation.
|
|
520
|
+
* - Resolution not exceeding 1920*1080, at least 640*480, with the shorter side recommended to be resized to 720 pixels, and a compression ratio greater than 0.9.
|
|
521
|
+
* - Photo size: <1MB.
|
|
522
|
+
* - Supports 90, 180, and 270-degree photos; in cases of multiple faces, the largest face will be selected.
|
|
523
|
+
*
|
|
494
524
|
* @param request - ContrastFaceVerifyRequest
|
|
495
525
|
* @returns ContrastFaceVerifyResponse
|
|
496
526
|
*/
|
|
@@ -580,6 +610,12 @@ class Client extends openapi_core_1.default {
|
|
|
580
610
|
return contrastFaceVerifyResp;
|
|
581
611
|
}
|
|
582
612
|
/**
|
|
613
|
+
* Call CreateAuthKey to get the authorization key, which is used for offline face recognition SDK activation.
|
|
614
|
+
*
|
|
615
|
+
* @remarks
|
|
616
|
+
* Request Method: Supports sending requests via HTTPS POST and GET methods.
|
|
617
|
+
* > The authorization key is valid for 30 minutes and cannot be reused. It is recommended to re-obtain it before each activation.
|
|
618
|
+
*
|
|
583
619
|
* @param request - CreateAuthKeyRequest
|
|
584
620
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
585
621
|
* @returns CreateAuthKeyResponse
|
|
@@ -616,6 +652,12 @@ class Client extends openapi_core_1.default {
|
|
|
616
652
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateAuthKeyResponse({}));
|
|
617
653
|
}
|
|
618
654
|
/**
|
|
655
|
+
* Call CreateAuthKey to get the authorization key, which is used for offline face recognition SDK activation.
|
|
656
|
+
*
|
|
657
|
+
* @remarks
|
|
658
|
+
* Request Method: Supports sending requests via HTTPS POST and GET methods.
|
|
659
|
+
* > The authorization key is valid for 30 minutes and cannot be reused. It is recommended to re-obtain it before each activation.
|
|
660
|
+
*
|
|
619
661
|
* @param request - CreateAuthKeyRequest
|
|
620
662
|
* @returns CreateAuthKeyResponse
|
|
621
663
|
*/
|
|
@@ -624,6 +666,11 @@ class Client extends openapi_core_1.default {
|
|
|
624
666
|
return await this.createAuthKeyWithOptions(request, runtime);
|
|
625
667
|
}
|
|
626
668
|
/**
|
|
669
|
+
* Call CreateVerifySetting to create a verification scenario configuration. This operation is equivalent to creating a new verification scenario on the console.
|
|
670
|
+
*
|
|
671
|
+
* @remarks
|
|
672
|
+
* Request Method: Only supports sending requests via HTTPS POST.
|
|
673
|
+
*
|
|
627
674
|
* @param request - CreateVerifySettingRequest
|
|
628
675
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
629
676
|
* @returns CreateVerifySettingResponse
|
|
@@ -666,6 +713,11 @@ class Client extends openapi_core_1.default {
|
|
|
666
713
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateVerifySettingResponse({}));
|
|
667
714
|
}
|
|
668
715
|
/**
|
|
716
|
+
* Call CreateVerifySetting to create a verification scenario configuration. This operation is equivalent to creating a new verification scenario on the console.
|
|
717
|
+
*
|
|
718
|
+
* @remarks
|
|
719
|
+
* Request Method: Only supports sending requests via HTTPS POST.
|
|
720
|
+
*
|
|
669
721
|
* @param request - CreateVerifySettingRequest
|
|
670
722
|
* @returns CreateVerifySettingResponse
|
|
671
723
|
*/
|
|
@@ -817,7 +869,7 @@ class Client extends openapi_core_1.default {
|
|
|
817
869
|
return credentialProductVerifyV2Resp;
|
|
818
870
|
}
|
|
819
871
|
/**
|
|
820
|
-
*
|
|
872
|
+
* Credential verification
|
|
821
873
|
*
|
|
822
874
|
* @param tmpReq - CredentialVerifyRequest
|
|
823
875
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -892,7 +944,7 @@ class Client extends openapi_core_1.default {
|
|
|
892
944
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CredentialVerifyResponse({}));
|
|
893
945
|
}
|
|
894
946
|
/**
|
|
895
|
-
*
|
|
947
|
+
* Credential verification
|
|
896
948
|
*
|
|
897
949
|
* @param request - CredentialVerifyRequest
|
|
898
950
|
* @returns CredentialVerifyResponse
|
|
@@ -1187,7 +1239,10 @@ class Client extends openapi_core_1.default {
|
|
|
1187
1239
|
return await this.deleteFaceVerifyResultWithOptions(request, runtime);
|
|
1188
1240
|
}
|
|
1189
1241
|
/**
|
|
1190
|
-
*
|
|
1242
|
+
* Obtain Authentication Results from Image Element Verification
|
|
1243
|
+
*
|
|
1244
|
+
* @remarks
|
|
1245
|
+
* After receiving the callback notification, you can use this interface on the server side to obtain the corresponding authentication status and information.
|
|
1191
1246
|
*
|
|
1192
1247
|
* @param request - DescribeCardVerifyRequest
|
|
1193
1248
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1216,7 +1271,10 @@ class Client extends openapi_core_1.default {
|
|
|
1216
1271
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeCardVerifyResponse({}));
|
|
1217
1272
|
}
|
|
1218
1273
|
/**
|
|
1219
|
-
*
|
|
1274
|
+
* Obtain Authentication Results from Image Element Verification
|
|
1275
|
+
*
|
|
1276
|
+
* @remarks
|
|
1277
|
+
* After receiving the callback notification, you can use this interface on the server side to obtain the corresponding authentication status and information.
|
|
1220
1278
|
*
|
|
1221
1279
|
* @param request - DescribeCardVerifyRequest
|
|
1222
1280
|
* @returns DescribeCardVerifyResponse
|
|
@@ -1226,6 +1284,11 @@ class Client extends openapi_core_1.default {
|
|
|
1226
1284
|
return await this.describeCardVerifyWithOptions(request, runtime);
|
|
1227
1285
|
}
|
|
1228
1286
|
/**
|
|
1287
|
+
* Call DescribeDeviceInfo to query device-related information, such as the validity period of authorization, business identifiers customized by the access party, and device ID, etc.
|
|
1288
|
+
*
|
|
1289
|
+
* @remarks
|
|
1290
|
+
* Request Method: Supports sending requests using HTTPS POST and GET methods.
|
|
1291
|
+
*
|
|
1229
1292
|
* @param request - DescribeDeviceInfoRequest
|
|
1230
1293
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1231
1294
|
* @returns DescribeDeviceInfoResponse
|
|
@@ -1271,6 +1334,11 @@ class Client extends openapi_core_1.default {
|
|
|
1271
1334
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeDeviceInfoResponse({}));
|
|
1272
1335
|
}
|
|
1273
1336
|
/**
|
|
1337
|
+
* Call DescribeDeviceInfo to query device-related information, such as the validity period of authorization, business identifiers customized by the access party, and device ID, etc.
|
|
1338
|
+
*
|
|
1339
|
+
* @remarks
|
|
1340
|
+
* Request Method: Supports sending requests using HTTPS POST and GET methods.
|
|
1341
|
+
*
|
|
1274
1342
|
* @param request - DescribeDeviceInfoRequest
|
|
1275
1343
|
* @returns DescribeDeviceInfoResponse
|
|
1276
1344
|
*/
|
|
@@ -1279,7 +1347,7 @@ class Client extends openapi_core_1.default {
|
|
|
1279
1347
|
return await this.describeDeviceInfoWithOptions(request, runtime);
|
|
1280
1348
|
}
|
|
1281
1349
|
/**
|
|
1282
|
-
*
|
|
1350
|
+
* Financial-Grade Face Guard Service
|
|
1283
1351
|
*
|
|
1284
1352
|
* @param request - DescribeFaceGuardRiskRequest
|
|
1285
1353
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1317,7 +1385,7 @@ class Client extends openapi_core_1.default {
|
|
|
1317
1385
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeFaceGuardRiskResponse({}));
|
|
1318
1386
|
}
|
|
1319
1387
|
/**
|
|
1320
|
-
*
|
|
1388
|
+
* Financial-Grade Face Guard Service
|
|
1321
1389
|
*
|
|
1322
1390
|
* @param request - DescribeFaceGuardRiskRequest
|
|
1323
1391
|
* @returns DescribeFaceGuardRiskResponse
|
|
@@ -1327,6 +1395,12 @@ class Client extends openapi_core_1.default {
|
|
|
1327
1395
|
return await this.describeFaceGuardRiskWithOptions(request, runtime);
|
|
1328
1396
|
}
|
|
1329
1397
|
/**
|
|
1398
|
+
* After the mobile end of the integrator receives the callback, its server can call this interface to obtain the corresponding authentication status and authentication information.
|
|
1399
|
+
*
|
|
1400
|
+
* @remarks
|
|
1401
|
+
* - Service Address: cloudauth.aliyuncs.com.
|
|
1402
|
+
* - Request Method: HTTPS POST and GET.
|
|
1403
|
+
*
|
|
1330
1404
|
* @param request - DescribeFaceVerifyRequest
|
|
1331
1405
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1332
1406
|
* @returns DescribeFaceVerifyResponse
|
|
@@ -1360,6 +1434,12 @@ class Client extends openapi_core_1.default {
|
|
|
1360
1434
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeFaceVerifyResponse({}));
|
|
1361
1435
|
}
|
|
1362
1436
|
/**
|
|
1437
|
+
* After the mobile end of the integrator receives the callback, its server can call this interface to obtain the corresponding authentication status and authentication information.
|
|
1438
|
+
*
|
|
1439
|
+
* @remarks
|
|
1440
|
+
* - Service Address: cloudauth.aliyuncs.com.
|
|
1441
|
+
* - Request Method: HTTPS POST and GET.
|
|
1442
|
+
*
|
|
1363
1443
|
* @param request - DescribeFaceVerifyRequest
|
|
1364
1444
|
* @returns DescribeFaceVerifyResponse
|
|
1365
1445
|
*/
|
|
@@ -1368,6 +1448,8 @@ class Client extends openapi_core_1.default {
|
|
|
1368
1448
|
return await this.describeFaceVerifyWithOptions(request, runtime);
|
|
1369
1449
|
}
|
|
1370
1450
|
/**
|
|
1451
|
+
* Call DescribeOssUploadToken to get the Token required for uploading photos to OSS.
|
|
1452
|
+
*
|
|
1371
1453
|
* @param request - DescribeOssUploadTokenRequest
|
|
1372
1454
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1373
1455
|
* @returns DescribeOssUploadTokenResponse
|
|
@@ -1388,6 +1470,7 @@ class Client extends openapi_core_1.default {
|
|
|
1388
1470
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeOssUploadTokenResponse({}));
|
|
1389
1471
|
}
|
|
1390
1472
|
/**
|
|
1473
|
+
* Call DescribeOssUploadToken to get the Token required for uploading photos to OSS.
|
|
1391
1474
|
* @returns DescribeOssUploadTokenResponse
|
|
1392
1475
|
*/
|
|
1393
1476
|
async describeOssUploadToken() {
|
|
@@ -1395,7 +1478,7 @@ class Client extends openapi_core_1.default {
|
|
|
1395
1478
|
return await this.describeOssUploadTokenWithOptions(runtime);
|
|
1396
1479
|
}
|
|
1397
1480
|
/**
|
|
1398
|
-
* Open API
|
|
1481
|
+
* Open API adds financial-grade data statistics API
|
|
1399
1482
|
*
|
|
1400
1483
|
* @param request - DescribePageFaceVerifyDataRequest
|
|
1401
1484
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1439,7 +1522,7 @@ class Client extends openapi_core_1.default {
|
|
|
1439
1522
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribePageFaceVerifyDataResponse({}));
|
|
1440
1523
|
}
|
|
1441
1524
|
/**
|
|
1442
|
-
* Open API
|
|
1525
|
+
* Open API adds financial-grade data statistics API
|
|
1443
1526
|
*
|
|
1444
1527
|
* @param request - DescribePageFaceVerifyDataRequest
|
|
1445
1528
|
* @returns DescribePageFaceVerifyDataResponse
|
|
@@ -1449,6 +1532,8 @@ class Client extends openapi_core_1.default {
|
|
|
1449
1532
|
return await this.describePageFaceVerifyDataWithOptions(request, runtime);
|
|
1450
1533
|
}
|
|
1451
1534
|
/**
|
|
1535
|
+
* Enhanced Real Person Authentication Call Statistics Pagination Query Interface
|
|
1536
|
+
*
|
|
1452
1537
|
* @param request - DescribeSmartStatisticsPageListRequest
|
|
1453
1538
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1454
1539
|
* @returns DescribeSmartStatisticsPageListResponse
|
|
@@ -1491,6 +1576,8 @@ class Client extends openapi_core_1.default {
|
|
|
1491
1576
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeSmartStatisticsPageListResponse({}));
|
|
1492
1577
|
}
|
|
1493
1578
|
/**
|
|
1579
|
+
* Enhanced Real Person Authentication Call Statistics Pagination Query Interface
|
|
1580
|
+
*
|
|
1494
1581
|
* @param request - DescribeSmartStatisticsPageListRequest
|
|
1495
1582
|
* @returns DescribeSmartStatisticsPageListResponse
|
|
1496
1583
|
*/
|
|
@@ -1499,6 +1586,15 @@ class Client extends openapi_core_1.default {
|
|
|
1499
1586
|
return await this.describeSmartStatisticsPageListWithOptions(request, runtime);
|
|
1500
1587
|
}
|
|
1501
1588
|
/**
|
|
1589
|
+
* Query the result of real-person authentication.
|
|
1590
|
+
*
|
|
1591
|
+
* @remarks
|
|
1592
|
+
* Prerequisites: Before accessing this API, please ensure that you have completed the necessary preparations. For more details, see [Real Person Authentication Server-side Preparation](https://help.aliyun.com/document_detail/127471.html) and [Liveness Face Verification Server-side Preparation](https://help.aliyun.com/document_detail/127717.html).
|
|
1593
|
+
* > Alibaba Cloud Real Person Authentication only stores authentication data for the last 180 days. For any subsequent business use, please call this interface in a timely manner to retrieve and store the data yourself to avoid any impact on usage.
|
|
1594
|
+
* Request Method: HTTPS POST and GET.
|
|
1595
|
+
* Interface Description: After the mobile end of the access party receives the callback, its server can call this interface to obtain the corresponding authentication status and authentication information.
|
|
1596
|
+
* Applicable Scope: This interface is applicable to the authentication solution with SDK + server-side integration.
|
|
1597
|
+
*
|
|
1502
1598
|
* @param request - DescribeVerifyResultRequest
|
|
1503
1599
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1504
1600
|
* @returns DescribeVerifyResultResponse
|
|
@@ -1529,6 +1625,15 @@ class Client extends openapi_core_1.default {
|
|
|
1529
1625
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeVerifyResultResponse({}));
|
|
1530
1626
|
}
|
|
1531
1627
|
/**
|
|
1628
|
+
* Query the result of real-person authentication.
|
|
1629
|
+
*
|
|
1630
|
+
* @remarks
|
|
1631
|
+
* Prerequisites: Before accessing this API, please ensure that you have completed the necessary preparations. For more details, see [Real Person Authentication Server-side Preparation](https://help.aliyun.com/document_detail/127471.html) and [Liveness Face Verification Server-side Preparation](https://help.aliyun.com/document_detail/127717.html).
|
|
1632
|
+
* > Alibaba Cloud Real Person Authentication only stores authentication data for the last 180 days. For any subsequent business use, please call this interface in a timely manner to retrieve and store the data yourself to avoid any impact on usage.
|
|
1633
|
+
* Request Method: HTTPS POST and GET.
|
|
1634
|
+
* Interface Description: After the mobile end of the access party receives the callback, its server can call this interface to obtain the corresponding authentication status and authentication information.
|
|
1635
|
+
* Applicable Scope: This interface is applicable to the authentication solution with SDK + server-side integration.
|
|
1636
|
+
*
|
|
1532
1637
|
* @param request - DescribeVerifyResultRequest
|
|
1533
1638
|
* @returns DescribeVerifyResultResponse
|
|
1534
1639
|
*/
|
|
@@ -1537,6 +1642,12 @@ class Client extends openapi_core_1.default {
|
|
|
1537
1642
|
return await this.describeVerifyResultWithOptions(request, runtime);
|
|
1538
1643
|
}
|
|
1539
1644
|
/**
|
|
1645
|
+
* Call DescribeVerifySDK to get the offline SDK download address.
|
|
1646
|
+
*
|
|
1647
|
+
* @remarks
|
|
1648
|
+
* Request Method: Supports sending requests via HTTPS POST and GET methods.
|
|
1649
|
+
* Interface Description: Obtain the SDK generation result based on the task ID for generating an offline facial recognition SDK.
|
|
1650
|
+
*
|
|
1540
1651
|
* @param request - DescribeVerifySDKRequest
|
|
1541
1652
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1542
1653
|
* @returns DescribeVerifySDKResponse
|
|
@@ -1564,6 +1675,12 @@ class Client extends openapi_core_1.default {
|
|
|
1564
1675
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeVerifySDKResponse({}));
|
|
1565
1676
|
}
|
|
1566
1677
|
/**
|
|
1678
|
+
* Call DescribeVerifySDK to get the offline SDK download address.
|
|
1679
|
+
*
|
|
1680
|
+
* @remarks
|
|
1681
|
+
* Request Method: Supports sending requests via HTTPS POST and GET methods.
|
|
1682
|
+
* Interface Description: Obtain the SDK generation result based on the task ID for generating an offline facial recognition SDK.
|
|
1683
|
+
*
|
|
1567
1684
|
* @param request - DescribeVerifySDKRequest
|
|
1568
1685
|
* @returns DescribeVerifySDKResponse
|
|
1569
1686
|
*/
|
|
@@ -1572,6 +1689,20 @@ class Client extends openapi_core_1.default {
|
|
|
1572
1689
|
return await this.describeVerifySDKWithOptions(request, runtime);
|
|
1573
1690
|
}
|
|
1574
1691
|
/**
|
|
1692
|
+
* Call DescribeVerifyToken to initiate an authentication request and obtain an authentication Token. This interface is suitable for authentication solutions using SDK + server-side integration.
|
|
1693
|
+
*
|
|
1694
|
+
* @remarks
|
|
1695
|
+
* Preparation for Access: When integrating this API, please ensure that the corresponding preparations have been completed. For details, see [Overview of Real Person Authentication Solution Integration Process](https://help.aliyun.com/document_detail/127536.html) and [Overview of Live Face Verification Solution (Liveness Detection Solution) Integration Process](https://help.aliyun.com/document_detail/127687.html).
|
|
1696
|
+
* Request Method: HTTPS POST and GET
|
|
1697
|
+
* API Description: Before each authentication, use this interface to obtain an authentication Token (VerifyToken), which is used to link various interfaces in the authentication request.
|
|
1698
|
+
* Applicable Scope: This interface is suitable for wireless SDK integration.
|
|
1699
|
+
* Image Address: Use HTTP or HTTPS addresses that are publicly accessible over the Internet. For example, `http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg`.
|
|
1700
|
+
* Image Restrictions:
|
|
1701
|
+
* - Relative or absolute paths of local images are not supported.
|
|
1702
|
+
* - The size of a single image should be controlled within 2 MB to avoid algorithm retrieval timeout.
|
|
1703
|
+
* - The face area in the image must be at least 64*64 pixels (px).
|
|
1704
|
+
* - There is an 8 MB size limit for the Body of a single request. Please calculate the total size of all images and other information in the request to ensure it does not exceed the limit.
|
|
1705
|
+
*
|
|
1575
1706
|
* @param request - DescribeVerifyTokenRequest
|
|
1576
1707
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1577
1708
|
* @returns DescribeVerifyTokenResponse
|
|
@@ -1641,6 +1772,20 @@ class Client extends openapi_core_1.default {
|
|
|
1641
1772
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeVerifyTokenResponse({}));
|
|
1642
1773
|
}
|
|
1643
1774
|
/**
|
|
1775
|
+
* Call DescribeVerifyToken to initiate an authentication request and obtain an authentication Token. This interface is suitable for authentication solutions using SDK + server-side integration.
|
|
1776
|
+
*
|
|
1777
|
+
* @remarks
|
|
1778
|
+
* Preparation for Access: When integrating this API, please ensure that the corresponding preparations have been completed. For details, see [Overview of Real Person Authentication Solution Integration Process](https://help.aliyun.com/document_detail/127536.html) and [Overview of Live Face Verification Solution (Liveness Detection Solution) Integration Process](https://help.aliyun.com/document_detail/127687.html).
|
|
1779
|
+
* Request Method: HTTPS POST and GET
|
|
1780
|
+
* API Description: Before each authentication, use this interface to obtain an authentication Token (VerifyToken), which is used to link various interfaces in the authentication request.
|
|
1781
|
+
* Applicable Scope: This interface is suitable for wireless SDK integration.
|
|
1782
|
+
* Image Address: Use HTTP or HTTPS addresses that are publicly accessible over the Internet. For example, `http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg`.
|
|
1783
|
+
* Image Restrictions:
|
|
1784
|
+
* - Relative or absolute paths of local images are not supported.
|
|
1785
|
+
* - The size of a single image should be controlled within 2 MB to avoid algorithm retrieval timeout.
|
|
1786
|
+
* - The face area in the image must be at least 64*64 pixels (px).
|
|
1787
|
+
* - There is an 8 MB size limit for the Body of a single request. Please calculate the total size of all images and other information in the request to ensure it does not exceed the limit.
|
|
1788
|
+
*
|
|
1644
1789
|
* @param request - DescribeVerifyTokenRequest
|
|
1645
1790
|
* @returns DescribeVerifyTokenResponse
|
|
1646
1791
|
*/
|
|
@@ -1649,6 +1794,20 @@ class Client extends openapi_core_1.default {
|
|
|
1649
1794
|
return await this.describeVerifyTokenWithOptions(request, runtime);
|
|
1650
1795
|
}
|
|
1651
1796
|
/**
|
|
1797
|
+
* Detect Validity Attributes in Face Photos
|
|
1798
|
+
*
|
|
1799
|
+
* @remarks
|
|
1800
|
+
* Request Method: Only supports sending requests via HTTPS POST.
|
|
1801
|
+
* Interface Description: Detects the validity-related attributes of faces in the input photo, which helps the business side to determine whether the photo meets their own business retention or comparison requirements. The currently supported face validity-related attributes include: whether it is a face, whether it is blurry, whether glasses are worn, face pose, whether it is a smile, etc.
|
|
1802
|
+
* Instructions for Uploading Image Addresses: When passing in images, you need to upload their corresponding HTTP, OSS addresses, or Base64 encoding.
|
|
1803
|
+
* - HTTP Address: A publicly accessible HTTP address. For example, `http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg`.
|
|
1804
|
+
* - Base64 Encoding: An image encoded through base64, with the format being `base64://<image base64 string>`.
|
|
1805
|
+
* Image Limitations:
|
|
1806
|
+
* - Does not support relative or absolute paths of local images.
|
|
1807
|
+
* - Please keep the size of a single image within 2 MB to avoid algorithm timeout.
|
|
1808
|
+
* - There is an 8 MB size limit for the Body of a single request; please calculate the total size of all images and other information in the request and do not exceed the limit.
|
|
1809
|
+
* - When using Base64 to pass images, the request method needs to be changed to POST; the header description of the image Base64 string, such as `data:image/png;base64`, should be removed.
|
|
1810
|
+
*
|
|
1652
1811
|
* @param request - DetectFaceAttributesRequest
|
|
1653
1812
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1654
1813
|
* @returns DetectFaceAttributesResponse
|
|
@@ -1679,6 +1838,20 @@ class Client extends openapi_core_1.default {
|
|
|
1679
1838
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DetectFaceAttributesResponse({}));
|
|
1680
1839
|
}
|
|
1681
1840
|
/**
|
|
1841
|
+
* Detect Validity Attributes in Face Photos
|
|
1842
|
+
*
|
|
1843
|
+
* @remarks
|
|
1844
|
+
* Request Method: Only supports sending requests via HTTPS POST.
|
|
1845
|
+
* Interface Description: Detects the validity-related attributes of faces in the input photo, which helps the business side to determine whether the photo meets their own business retention or comparison requirements. The currently supported face validity-related attributes include: whether it is a face, whether it is blurry, whether glasses are worn, face pose, whether it is a smile, etc.
|
|
1846
|
+
* Instructions for Uploading Image Addresses: When passing in images, you need to upload their corresponding HTTP, OSS addresses, or Base64 encoding.
|
|
1847
|
+
* - HTTP Address: A publicly accessible HTTP address. For example, `http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg`.
|
|
1848
|
+
* - Base64 Encoding: An image encoded through base64, with the format being `base64://<image base64 string>`.
|
|
1849
|
+
* Image Limitations:
|
|
1850
|
+
* - Does not support relative or absolute paths of local images.
|
|
1851
|
+
* - Please keep the size of a single image within 2 MB to avoid algorithm timeout.
|
|
1852
|
+
* - There is an 8 MB size limit for the Body of a single request; please calculate the total size of all images and other information in the request and do not exceed the limit.
|
|
1853
|
+
* - When using Base64 to pass images, the request method needs to be changed to POST; the header description of the image Base64 string, such as `data:image/png;base64`, should be removed.
|
|
1854
|
+
*
|
|
1682
1855
|
* @param request - DetectFaceAttributesRequest
|
|
1683
1856
|
* @returns DetectFaceAttributesResponse
|
|
1684
1857
|
*/
|
|
@@ -1994,6 +2167,147 @@ class Client extends openapi_core_1.default {
|
|
|
1994
2167
|
let id2MetaVerifyWithOCRResp = await this.id2MetaVerifyWithOCRWithOptions(id2MetaVerifyWithOCRReq, runtime);
|
|
1995
2168
|
return id2MetaVerifyWithOCRResp;
|
|
1996
2169
|
}
|
|
2170
|
+
/**
|
|
2171
|
+
* Identity Three Elements Verification
|
|
2172
|
+
*
|
|
2173
|
+
* @remarks
|
|
2174
|
+
* Input name, ID number, and face photo to verify their authenticity and consistency through authoritative sources.
|
|
2175
|
+
*
|
|
2176
|
+
* @param request - Id3MetaVerifyRequest
|
|
2177
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2178
|
+
* @returns Id3MetaVerifyResponse
|
|
2179
|
+
*/
|
|
2180
|
+
async id3MetaVerifyWithOptions(request, runtime) {
|
|
2181
|
+
request.validate();
|
|
2182
|
+
let body = {};
|
|
2183
|
+
if (!$dara.isNull(request.crop)) {
|
|
2184
|
+
body["Crop"] = request.crop;
|
|
2185
|
+
}
|
|
2186
|
+
if (!$dara.isNull(request.faceFile)) {
|
|
2187
|
+
body["FaceFile"] = request.faceFile;
|
|
2188
|
+
}
|
|
2189
|
+
if (!$dara.isNull(request.faceUrl)) {
|
|
2190
|
+
body["FaceUrl"] = request.faceUrl;
|
|
2191
|
+
}
|
|
2192
|
+
if (!$dara.isNull(request.identifyNum)) {
|
|
2193
|
+
body["IdentifyNum"] = request.identifyNum;
|
|
2194
|
+
}
|
|
2195
|
+
if (!$dara.isNull(request.paramType)) {
|
|
2196
|
+
body["ParamType"] = request.paramType;
|
|
2197
|
+
}
|
|
2198
|
+
if (!$dara.isNull(request.userName)) {
|
|
2199
|
+
body["UserName"] = request.userName;
|
|
2200
|
+
}
|
|
2201
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2202
|
+
body: openapi_core_2.OpenApiUtil.parseToMap(body),
|
|
2203
|
+
});
|
|
2204
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2205
|
+
action: "Id3MetaVerify",
|
|
2206
|
+
version: "2019-03-07",
|
|
2207
|
+
protocol: "HTTPS",
|
|
2208
|
+
pathname: "/",
|
|
2209
|
+
method: "POST",
|
|
2210
|
+
authType: "AK",
|
|
2211
|
+
style: "RPC",
|
|
2212
|
+
reqBodyType: "formData",
|
|
2213
|
+
bodyType: "json",
|
|
2214
|
+
});
|
|
2215
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.Id3MetaVerifyResponse({}));
|
|
2216
|
+
}
|
|
2217
|
+
/**
|
|
2218
|
+
* Identity Three Elements Verification
|
|
2219
|
+
*
|
|
2220
|
+
* @remarks
|
|
2221
|
+
* Input name, ID number, and face photo to verify their authenticity and consistency through authoritative sources.
|
|
2222
|
+
*
|
|
2223
|
+
* @param request - Id3MetaVerifyRequest
|
|
2224
|
+
* @returns Id3MetaVerifyResponse
|
|
2225
|
+
*/
|
|
2226
|
+
async id3MetaVerify(request) {
|
|
2227
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2228
|
+
return await this.id3MetaVerifyWithOptions(request, runtime);
|
|
2229
|
+
}
|
|
2230
|
+
async id3MetaVerifyAdvance(request, runtime) {
|
|
2231
|
+
// Step 0: init client
|
|
2232
|
+
if ($dara.isNull(this._credential)) {
|
|
2233
|
+
throw new $OpenApi.ClientError({
|
|
2234
|
+
code: "InvalidCredentials",
|
|
2235
|
+
message: "Please set up the credentials correctly. If you are setting them through environment variables, please ensure that ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET are set correctly. See https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems for more details.",
|
|
2236
|
+
});
|
|
2237
|
+
}
|
|
2238
|
+
let credentialModel = await this._credential.getCredential();
|
|
2239
|
+
let accessKeyId = credentialModel.accessKeyId;
|
|
2240
|
+
let accessKeySecret = credentialModel.accessKeySecret;
|
|
2241
|
+
let securityToken = credentialModel.securityToken;
|
|
2242
|
+
let credentialType = credentialModel.type;
|
|
2243
|
+
let openPlatformEndpoint = this._openPlatformEndpoint;
|
|
2244
|
+
if ($dara.isNull(openPlatformEndpoint) || openPlatformEndpoint == "") {
|
|
2245
|
+
openPlatformEndpoint = "openplatform.aliyuncs.com";
|
|
2246
|
+
}
|
|
2247
|
+
if ($dara.isNull(credentialType)) {
|
|
2248
|
+
credentialType = "access_key";
|
|
2249
|
+
}
|
|
2250
|
+
let authConfig = new openapi_core_2.$OpenApiUtil.Config({
|
|
2251
|
+
accessKeyId: accessKeyId,
|
|
2252
|
+
accessKeySecret: accessKeySecret,
|
|
2253
|
+
securityToken: securityToken,
|
|
2254
|
+
type: credentialType,
|
|
2255
|
+
endpoint: openPlatformEndpoint,
|
|
2256
|
+
protocol: this._protocol,
|
|
2257
|
+
regionId: this._regionId,
|
|
2258
|
+
});
|
|
2259
|
+
let authClient = new openapi_core_1.default(authConfig);
|
|
2260
|
+
let authRequest = {
|
|
2261
|
+
Product: "Cloudauth",
|
|
2262
|
+
RegionId: this._regionId,
|
|
2263
|
+
};
|
|
2264
|
+
let authReq = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2265
|
+
query: openapi_core_2.OpenApiUtil.query(authRequest),
|
|
2266
|
+
});
|
|
2267
|
+
let authParams = new openapi_core_2.$OpenApiUtil.Params({
|
|
2268
|
+
action: "AuthorizeFileUpload",
|
|
2269
|
+
version: "2019-12-19",
|
|
2270
|
+
protocol: "HTTPS",
|
|
2271
|
+
pathname: "/",
|
|
2272
|
+
method: "GET",
|
|
2273
|
+
authType: "AK",
|
|
2274
|
+
style: "RPC",
|
|
2275
|
+
reqBodyType: "formData",
|
|
2276
|
+
bodyType: "json",
|
|
2277
|
+
});
|
|
2278
|
+
let authResponse = {};
|
|
2279
|
+
let fileObj = new $dara.FileField({});
|
|
2280
|
+
let ossHeader = {};
|
|
2281
|
+
let tmpBody = {};
|
|
2282
|
+
let useAccelerate = false;
|
|
2283
|
+
let authResponseBody = {};
|
|
2284
|
+
let id3MetaVerifyReq = new $_model.Id3MetaVerifyRequest({});
|
|
2285
|
+
openapi_core_2.OpenApiUtil.convert(request, id3MetaVerifyReq);
|
|
2286
|
+
if (!$dara.isNull(request.faceFileObject)) {
|
|
2287
|
+
authResponse = await authClient.callApi(authParams, authReq, runtime);
|
|
2288
|
+
tmpBody = authResponse["body"];
|
|
2289
|
+
useAccelerate = Boolean(tmpBody["UseAccelerate"]);
|
|
2290
|
+
authResponseBody = openapi_core_2.OpenApiUtil.stringifyMapValue(tmpBody);
|
|
2291
|
+
fileObj = new $dara.FileField({
|
|
2292
|
+
filename: authResponseBody["ObjectKey"],
|
|
2293
|
+
content: request.faceFileObject,
|
|
2294
|
+
contentType: "",
|
|
2295
|
+
});
|
|
2296
|
+
ossHeader = {
|
|
2297
|
+
host: `${authResponseBody["Bucket"]}.${openapi_core_2.OpenApiUtil.getEndpoint(authResponseBody["Endpoint"], useAccelerate, this._endpointType)}`,
|
|
2298
|
+
OSSAccessKeyId: authResponseBody["AccessKeyId"],
|
|
2299
|
+
policy: authResponseBody["EncodedPolicy"],
|
|
2300
|
+
Signature: authResponseBody["Signature"],
|
|
2301
|
+
key: authResponseBody["ObjectKey"],
|
|
2302
|
+
file: fileObj,
|
|
2303
|
+
success_action_status: "201",
|
|
2304
|
+
};
|
|
2305
|
+
await this._postOSSObject(authResponseBody["Bucket"], ossHeader);
|
|
2306
|
+
id3MetaVerifyReq.faceFile = `http://${authResponseBody["Bucket"]}.${authResponseBody["Endpoint"]}/${authResponseBody["ObjectKey"]}`;
|
|
2307
|
+
}
|
|
2308
|
+
let id3MetaVerifyResp = await this.id3MetaVerifyWithOptions(id3MetaVerifyReq, runtime);
|
|
2309
|
+
return id3MetaVerifyResp;
|
|
2310
|
+
}
|
|
1997
2311
|
/**
|
|
1998
2312
|
* Initiate an authentication request for image verification
|
|
1999
2313
|
*
|
|
@@ -2067,7 +2381,19 @@ class Client extends openapi_core_1.default {
|
|
|
2067
2381
|
return await this.initCardVerifyWithOptions(request, runtime);
|
|
2068
2382
|
}
|
|
2069
2383
|
/**
|
|
2070
|
-
*
|
|
2384
|
+
* Real-Person Server Initialization Interface
|
|
2385
|
+
*
|
|
2386
|
+
* @remarks
|
|
2387
|
+
* - Service Address: cloudauth.aliyuncs.com
|
|
2388
|
+
* - Request Method: HTTPS POST and GET.
|
|
2389
|
+
* - This interface uses different parameters for different product solutions. For details, please refer to the [official documentation](https://help.aliyun.com/zh/id-verification/financial-grade-id-verification/product-overview/introduction/?spm=a2c4g.11186623.help-menu-2401581.d_0_0.13f644ecRzFHfm&scm=20140722.H_99169._.OR_help-T_cn~zh-V_1).
|
|
2390
|
+
* #### Image Format Requirements
|
|
2391
|
+
* When performing real-person authentication, please provide images that meet all of the following conditions:
|
|
2392
|
+
* - Recent photo with a clear, unobstructed face, natural expression, and facing the camera directly.
|
|
2393
|
+
* - Clear photo with normal exposure, no overexposure, underexposure, or halo effects, and no significant angle deviation.
|
|
2394
|
+
* - Resolution not exceeding 1920*1080, at least 640*480, recommended short side scaled to 720 pixels, compression ratio greater than 0.9.
|
|
2395
|
+
* - Photo size: <1MB.
|
|
2396
|
+
* - Supports 90, 180, and 270-degree photos; in the case of multiple faces, the largest face will be selected.
|
|
2071
2397
|
*
|
|
2072
2398
|
* @param request - InitFaceVerifyRequest
|
|
2073
2399
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2209,7 +2535,19 @@ class Client extends openapi_core_1.default {
|
|
|
2209
2535
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.InitFaceVerifyResponse({}));
|
|
2210
2536
|
}
|
|
2211
2537
|
/**
|
|
2212
|
-
*
|
|
2538
|
+
* Real-Person Server Initialization Interface
|
|
2539
|
+
*
|
|
2540
|
+
* @remarks
|
|
2541
|
+
* - Service Address: cloudauth.aliyuncs.com
|
|
2542
|
+
* - Request Method: HTTPS POST and GET.
|
|
2543
|
+
* - This interface uses different parameters for different product solutions. For details, please refer to the [official documentation](https://help.aliyun.com/zh/id-verification/financial-grade-id-verification/product-overview/introduction/?spm=a2c4g.11186623.help-menu-2401581.d_0_0.13f644ecRzFHfm&scm=20140722.H_99169._.OR_help-T_cn~zh-V_1).
|
|
2544
|
+
* #### Image Format Requirements
|
|
2545
|
+
* When performing real-person authentication, please provide images that meet all of the following conditions:
|
|
2546
|
+
* - Recent photo with a clear, unobstructed face, natural expression, and facing the camera directly.
|
|
2547
|
+
* - Clear photo with normal exposure, no overexposure, underexposure, or halo effects, and no significant angle deviation.
|
|
2548
|
+
* - Resolution not exceeding 1920*1080, at least 640*480, recommended short side scaled to 720 pixels, compression ratio greater than 0.9.
|
|
2549
|
+
* - Photo size: <1MB.
|
|
2550
|
+
* - Supports 90, 180, and 270-degree photos; in the case of multiple faces, the largest face will be selected.
|
|
2213
2551
|
*
|
|
2214
2552
|
* @param request - InitFaceVerifyRequest
|
|
2215
2553
|
* @returns InitFaceVerifyResponse
|
|
@@ -2273,6 +2611,11 @@ class Client extends openapi_core_1.default {
|
|
|
2273
2611
|
return await this.insertWhiteListSettingWithOptions(request, runtime);
|
|
2274
2612
|
}
|
|
2275
2613
|
/**
|
|
2614
|
+
* Silent Liveness Face (LivenessFaceVerify) refers to a service that performs real face detection by inputting pre-obtained face images through an API. The algorithm primarily identifies whether the face is from a screen recording, printed picture, or other types of liveness attacks. This service is suitable for low-risk business scenarios or in conjunction with offline facial recognition SDKs. If your business has higher requirements for real face security, it is recommended to integrate App or WebSDK mode, or integrate with Deepfake face detection services to assist in identifying more dimensions of face forgery risks.
|
|
2615
|
+
*
|
|
2616
|
+
* @remarks
|
|
2617
|
+
* Invoke the LivenessFaceVerify interface to perform liveness detection on a face image.
|
|
2618
|
+
*
|
|
2276
2619
|
* @param request - LivenessFaceVerifyRequest
|
|
2277
2620
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
2278
2621
|
* @returns LivenessFaceVerifyResponse
|
|
@@ -2341,6 +2684,11 @@ class Client extends openapi_core_1.default {
|
|
|
2341
2684
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.LivenessFaceVerifyResponse({}));
|
|
2342
2685
|
}
|
|
2343
2686
|
/**
|
|
2687
|
+
* Silent Liveness Face (LivenessFaceVerify) refers to a service that performs real face detection by inputting pre-obtained face images through an API. The algorithm primarily identifies whether the face is from a screen recording, printed picture, or other types of liveness attacks. This service is suitable for low-risk business scenarios or in conjunction with offline facial recognition SDKs. If your business has higher requirements for real face security, it is recommended to integrate App or WebSDK mode, or integrate with Deepfake face detection services to assist in identifying more dimensions of face forgery risks.
|
|
2688
|
+
*
|
|
2689
|
+
* @remarks
|
|
2690
|
+
* Invoke the LivenessFaceVerify interface to perform liveness detection on a face image.
|
|
2691
|
+
*
|
|
2344
2692
|
* @param request - LivenessFaceVerifyRequest
|
|
2345
2693
|
* @returns LivenessFaceVerifyResponse
|
|
2346
2694
|
*/
|
|
@@ -3193,6 +3541,22 @@ class Client extends openapi_core_1.default {
|
|
|
3193
3541
|
return await this.vehicleQueryWithOptions(request, runtime);
|
|
3194
3542
|
}
|
|
3195
3543
|
/**
|
|
3544
|
+
* Call VerifyMaterial, in a pure server-side access authentication solution, input name, ID number, portrait photo, and front and back photos of the ID card (optional) for real-person authentication, and return the authentication result synchronously.
|
|
3545
|
+
*
|
|
3546
|
+
* @remarks
|
|
3547
|
+
* Preparation for Access: When integrating this API, please ensure that the corresponding preparatory work has been completed. For details, please refer to [Server-side Access Preparation](https://help.aliyun.com/document_detail/127471.html).
|
|
3548
|
+
* Request Method: HTTPS POST and GET.
|
|
3549
|
+
* API Description: The server of the access party submits the authentication materials to the real-person authentication service for verification and comparison, with the results returned synchronously.
|
|
3550
|
+
* Applicable Scope: This interface is only applicable to pure server-side access authentication solutions.
|
|
3551
|
+
* Image Upload Address Explanation:
|
|
3552
|
+
* - HTTP or HTTPS address: Supports publicly accessible HTTP or HTTPS addresses. For example, `http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg`.
|
|
3553
|
+
* - OSS address: If the images from the access party are local files, Alibaba Cloud also provides an upload SDK, supporting the business party to upload the images to the specified OSS bucket of the real-person authentication service, and use the obtained OSS address as the image address parameter in the interface. If your business needs to use the upload SDK, please submit a [ticket](https://selfservice.console.aliyun.com/ticket/category/cloudauth/today) to contact us for acquisition.
|
|
3554
|
+
* Image Limitations:
|
|
3555
|
+
* - Does not support relative or absolute paths of local images.
|
|
3556
|
+
* - Please keep the size of a single image within 2 MB to avoid algorithm retrieval timeout.
|
|
3557
|
+
* - The face area in the image should be at least 64*64 pixels.
|
|
3558
|
+
* - There is an 8 MB size limit for the Body of a single request. Please calculate the total size of all images and other information in the request, and do not exceed the limit.
|
|
3559
|
+
*
|
|
3196
3560
|
* @param request - VerifyMaterialRequest
|
|
3197
3561
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
3198
3562
|
* @returns VerifyMaterialResponse
|
|
@@ -3241,6 +3605,22 @@ class Client extends openapi_core_1.default {
|
|
|
3241
3605
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.VerifyMaterialResponse({}));
|
|
3242
3606
|
}
|
|
3243
3607
|
/**
|
|
3608
|
+
* Call VerifyMaterial, in a pure server-side access authentication solution, input name, ID number, portrait photo, and front and back photos of the ID card (optional) for real-person authentication, and return the authentication result synchronously.
|
|
3609
|
+
*
|
|
3610
|
+
* @remarks
|
|
3611
|
+
* Preparation for Access: When integrating this API, please ensure that the corresponding preparatory work has been completed. For details, please refer to [Server-side Access Preparation](https://help.aliyun.com/document_detail/127471.html).
|
|
3612
|
+
* Request Method: HTTPS POST and GET.
|
|
3613
|
+
* API Description: The server of the access party submits the authentication materials to the real-person authentication service for verification and comparison, with the results returned synchronously.
|
|
3614
|
+
* Applicable Scope: This interface is only applicable to pure server-side access authentication solutions.
|
|
3615
|
+
* Image Upload Address Explanation:
|
|
3616
|
+
* - HTTP or HTTPS address: Supports publicly accessible HTTP or HTTPS addresses. For example, `http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg`.
|
|
3617
|
+
* - OSS address: If the images from the access party are local files, Alibaba Cloud also provides an upload SDK, supporting the business party to upload the images to the specified OSS bucket of the real-person authentication service, and use the obtained OSS address as the image address parameter in the interface. If your business needs to use the upload SDK, please submit a [ticket](https://selfservice.console.aliyun.com/ticket/category/cloudauth/today) to contact us for acquisition.
|
|
3618
|
+
* Image Limitations:
|
|
3619
|
+
* - Does not support relative or absolute paths of local images.
|
|
3620
|
+
* - Please keep the size of a single image within 2 MB to avoid algorithm retrieval timeout.
|
|
3621
|
+
* - The face area in the image should be at least 64*64 pixels.
|
|
3622
|
+
* - There is an 8 MB size limit for the Body of a single request. Please calculate the total size of all images and other information in the request, and do not exceed the limit.
|
|
3623
|
+
*
|
|
3244
3624
|
* @param request - VerifyMaterialRequest
|
|
3245
3625
|
* @returns VerifyMaterialResponse
|
|
3246
3626
|
*/
|