@alicloud/cloudauth20190307 3.11.0 → 3.12.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.
Files changed (48) hide show
  1. package/dist/client.d.ts +30 -0
  2. package/dist/client.js +120 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAntCloudAuthSceneRequest.d.ts +2 -0
  5. package/dist/models/CreateAntCloudAuthSceneRequest.js +4 -0
  6. package/dist/models/CreateAntCloudAuthSceneRequest.js.map +1 -1
  7. package/dist/models/DescribeAuthVerifyRequest.d.ts +29 -0
  8. package/dist/models/DescribeAuthVerifyRequest.js +60 -0
  9. package/dist/models/DescribeAuthVerifyRequest.js.map +1 -0
  10. package/dist/models/DescribeAuthVerifyResponse.d.ts +19 -0
  11. package/dist/models/DescribeAuthVerifyResponse.js +69 -0
  12. package/dist/models/DescribeAuthVerifyResponse.js.map +1 -0
  13. package/dist/models/DescribeAuthVerifyResponseBody.d.ts +59 -0
  14. package/dist/models/DescribeAuthVerifyResponseBody.js +92 -0
  15. package/dist/models/DescribeAuthVerifyResponseBody.js.map +1 -0
  16. package/dist/models/DescribeListAntCloudAuthScenesResponseBody.d.ts +2 -0
  17. package/dist/models/DescribeListAntCloudAuthScenesResponseBody.js +4 -0
  18. package/dist/models/DescribeListAntCloudAuthScenesResponseBody.js.map +1 -1
  19. package/dist/models/InitAuthVerifyRequest.d.ts +90 -0
  20. package/dist/models/InitAuthVerifyRequest.js +76 -0
  21. package/dist/models/InitAuthVerifyRequest.js.map +1 -0
  22. package/dist/models/InitAuthVerifyResponse.d.ts +19 -0
  23. package/dist/models/InitAuthVerifyResponse.js +69 -0
  24. package/dist/models/InitAuthVerifyResponse.js.map +1 -0
  25. package/dist/models/InitAuthVerifyResponseBody.d.ts +46 -0
  26. package/dist/models/InitAuthVerifyResponseBody.js +86 -0
  27. package/dist/models/InitAuthVerifyResponseBody.js.map +1 -0
  28. package/dist/models/InitFaceVerifyRequest.d.ts +10 -0
  29. package/dist/models/InitFaceVerifyRequest.js.map +1 -1
  30. package/dist/models/UpdateAntCloudAuthSceneRequest.d.ts +2 -0
  31. package/dist/models/UpdateAntCloudAuthSceneRequest.js +4 -0
  32. package/dist/models/UpdateAntCloudAuthSceneRequest.js.map +1 -1
  33. package/dist/models/model.d.ts +8 -0
  34. package/dist/models/model.js +25 -9
  35. package/dist/models/model.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/client.ts +140 -0
  38. package/src/models/CreateAntCloudAuthSceneRequest.ts +6 -0
  39. package/src/models/DescribeAuthVerifyRequest.ts +44 -0
  40. package/src/models/DescribeAuthVerifyResponse.ts +40 -0
  41. package/src/models/DescribeAuthVerifyResponseBody.ts +97 -0
  42. package/src/models/DescribeListAntCloudAuthScenesResponseBody.ts +6 -0
  43. package/src/models/InitAuthVerifyRequest.ts +121 -0
  44. package/src/models/InitAuthVerifyResponse.ts +40 -0
  45. package/src/models/InitAuthVerifyResponseBody.ts +78 -0
  46. package/src/models/InitFaceVerifyRequest.ts +10 -0
  47. package/src/models/UpdateAntCloudAuthSceneRequest.ts +6 -0
  48. package/src/models/model.ts +8 -0
package/dist/client.d.ts CHANGED
@@ -633,6 +633,21 @@ export default class Client extends OpenApi {
633
633
  * @returns DescribeAntAndCloudAuthUserStatusResponse
634
634
  */
635
635
  describeAntAndCloudAuthUserStatus(): Promise<$_model.DescribeAntAndCloudAuthUserStatusResponse>;
636
+ /**
637
+ * 获取结果
638
+ *
639
+ * @param request - DescribeAuthVerifyRequest
640
+ * @param runtime - runtime options for this request RuntimeOptions
641
+ * @returns DescribeAuthVerifyResponse
642
+ */
643
+ describeAuthVerifyWithOptions(request: $_model.DescribeAuthVerifyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAuthVerifyResponse>;
644
+ /**
645
+ * 获取结果
646
+ *
647
+ * @param request - DescribeAuthVerifyRequest
648
+ * @returns DescribeAuthVerifyResponse
649
+ */
650
+ describeAuthVerify(request: $_model.DescribeAuthVerifyRequest): Promise<$_model.DescribeAuthVerifyResponse>;
636
651
  /**
637
652
  * Obtain Authentication Results from Image Element Verification
638
653
  *
@@ -1475,6 +1490,21 @@ export default class Client extends OpenApi {
1475
1490
  */
1476
1491
  id3MetaVerifyWithOCR(request: $_model.Id3MetaVerifyWithOCRRequest): Promise<$_model.Id3MetaVerifyWithOCRResponse>;
1477
1492
  id3MetaVerifyWithOCRAdvance(request: $_model.Id3MetaVerifyWithOCRAdvanceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.Id3MetaVerifyWithOCRResponse>;
1493
+ /**
1494
+ * 服务端初始化
1495
+ *
1496
+ * @param request - InitAuthVerifyRequest
1497
+ * @param runtime - runtime options for this request RuntimeOptions
1498
+ * @returns InitAuthVerifyResponse
1499
+ */
1500
+ initAuthVerifyWithOptions(request: $_model.InitAuthVerifyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.InitAuthVerifyResponse>;
1501
+ /**
1502
+ * 服务端初始化
1503
+ *
1504
+ * @param request - InitAuthVerifyRequest
1505
+ * @returns InitAuthVerifyResponse
1506
+ */
1507
+ initAuthVerify(request: $_model.InitAuthVerifyRequest): Promise<$_model.InitAuthVerifyResponse>;
1478
1508
  /**
1479
1509
  * Initiate an authentication request for image verification
1480
1510
  *
package/dist/client.js CHANGED
@@ -682,6 +682,12 @@ class Client extends openapi_core_1.default {
682
682
  if (!$dara.isNull(request.platform)) {
683
683
  query["Platform"] = request.platform;
684
684
  }
685
+ if (!$dara.isNull(request.returnPicCount)) {
686
+ query["ReturnPicCount"] = request.returnPicCount;
687
+ }
688
+ if (!$dara.isNull(request.returnVideoLength)) {
689
+ query["ReturnVideoLength"] = request.returnVideoLength;
690
+ }
685
691
  if (!$dara.isNull(request.sceneName)) {
686
692
  query["SceneName"] = request.sceneName;
687
693
  }
@@ -1972,6 +1978,48 @@ class Client extends openapi_core_1.default {
1972
1978
  let runtime = new $dara.RuntimeOptions({});
1973
1979
  return await this.describeAntAndCloudAuthUserStatusWithOptions(runtime);
1974
1980
  }
1981
+ /**
1982
+ * 获取结果
1983
+ *
1984
+ * @param request - DescribeAuthVerifyRequest
1985
+ * @param runtime - runtime options for this request RuntimeOptions
1986
+ * @returns DescribeAuthVerifyResponse
1987
+ */
1988
+ async describeAuthVerifyWithOptions(request, runtime) {
1989
+ request.validate();
1990
+ let body = {};
1991
+ if (!$dara.isNull(request.certifyId)) {
1992
+ body["CertifyId"] = request.certifyId;
1993
+ }
1994
+ if (!$dara.isNull(request.sceneId)) {
1995
+ body["SceneId"] = request.sceneId;
1996
+ }
1997
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1998
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
1999
+ });
2000
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2001
+ action: "DescribeAuthVerify",
2002
+ version: "2019-03-07",
2003
+ protocol: "HTTPS",
2004
+ pathname: "/",
2005
+ method: "POST",
2006
+ authType: "AK",
2007
+ style: "RPC",
2008
+ reqBodyType: "formData",
2009
+ bodyType: "json",
2010
+ });
2011
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeAuthVerifyResponse({}));
2012
+ }
2013
+ /**
2014
+ * 获取结果
2015
+ *
2016
+ * @param request - DescribeAuthVerifyRequest
2017
+ * @returns DescribeAuthVerifyResponse
2018
+ */
2019
+ async describeAuthVerify(request) {
2020
+ let runtime = new $dara.RuntimeOptions({});
2021
+ return await this.describeAuthVerifyWithOptions(request, runtime);
2022
+ }
1975
2023
  /**
1976
2024
  * Obtain Authentication Results from Image Element Verification
1977
2025
  *
@@ -4439,6 +4487,72 @@ class Client extends openapi_core_1.default {
4439
4487
  let id3MetaVerifyWithOCRResp = await this.id3MetaVerifyWithOCRWithOptions(id3MetaVerifyWithOCRReq, runtime);
4440
4488
  return id3MetaVerifyWithOCRResp;
4441
4489
  }
4490
+ /**
4491
+ * 服务端初始化
4492
+ *
4493
+ * @param request - InitAuthVerifyRequest
4494
+ * @param runtime - runtime options for this request RuntimeOptions
4495
+ * @returns InitAuthVerifyResponse
4496
+ */
4497
+ async initAuthVerifyWithOptions(request, runtime) {
4498
+ request.validate();
4499
+ let body = {};
4500
+ if (!$dara.isNull(request.callbackToken)) {
4501
+ body["CallbackToken"] = request.callbackToken;
4502
+ }
4503
+ if (!$dara.isNull(request.callbackUrl)) {
4504
+ body["CallbackUrl"] = request.callbackUrl;
4505
+ }
4506
+ if (!$dara.isNull(request.cardPageNumber)) {
4507
+ body["CardPageNumber"] = request.cardPageNumber;
4508
+ }
4509
+ if (!$dara.isNull(request.cardType)) {
4510
+ body["CardType"] = request.cardType;
4511
+ }
4512
+ if (!$dara.isNull(request.docScanMode)) {
4513
+ body["DocScanMode"] = request.docScanMode;
4514
+ }
4515
+ if (!$dara.isNull(request.idSpoof)) {
4516
+ body["IdSpoof"] = request.idSpoof;
4517
+ }
4518
+ if (!$dara.isNull(request.metaInfo)) {
4519
+ body["MetaInfo"] = request.metaInfo;
4520
+ }
4521
+ if (!$dara.isNull(request.outerOrderNo)) {
4522
+ body["OuterOrderNo"] = request.outerOrderNo;
4523
+ }
4524
+ if (!$dara.isNull(request.productCode)) {
4525
+ body["ProductCode"] = request.productCode;
4526
+ }
4527
+ if (!$dara.isNull(request.sceneId)) {
4528
+ body["SceneId"] = request.sceneId;
4529
+ }
4530
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
4531
+ body: openapi_core_2.OpenApiUtil.parseToMap(body),
4532
+ });
4533
+ let params = new openapi_core_2.$OpenApiUtil.Params({
4534
+ action: "InitAuthVerify",
4535
+ version: "2019-03-07",
4536
+ protocol: "HTTPS",
4537
+ pathname: "/",
4538
+ method: "POST",
4539
+ authType: "AK",
4540
+ style: "RPC",
4541
+ reqBodyType: "formData",
4542
+ bodyType: "json",
4543
+ });
4544
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.InitAuthVerifyResponse({}));
4545
+ }
4546
+ /**
4547
+ * 服务端初始化
4548
+ *
4549
+ * @param request - InitAuthVerifyRequest
4550
+ * @returns InitAuthVerifyResponse
4551
+ */
4552
+ async initAuthVerify(request) {
4553
+ let runtime = new $dara.RuntimeOptions({});
4554
+ return await this.initAuthVerifyWithOptions(request, runtime);
4555
+ }
4442
4556
  /**
4443
4557
  * Initiate an authentication request for image verification
4444
4558
  *
@@ -5968,6 +6082,12 @@ class Client extends openapi_core_1.default {
5968
6082
  if (!$dara.isNull(request.platform)) {
5969
6083
  query["Platform"] = request.platform;
5970
6084
  }
6085
+ if (!$dara.isNull(request.returnPicCount)) {
6086
+ query["ReturnPicCount"] = request.returnPicCount;
6087
+ }
6088
+ if (!$dara.isNull(request.returnVideoLength)) {
6089
+ query["ReturnVideoLength"] = request.returnVideoLength;
6090
+ }
5971
6091
  if (!$dara.isNull(request.sceneId)) {
5972
6092
  query["SceneId"] = request.sceneId;
5973
6093
  }