@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.
Files changed (136) hide show
  1. package/dist/client.d.ts +271 -10
  2. package/dist/client.js +390 -10
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ContrastFaceVerifyAdvanceRequest.d.ts +93 -0
  5. package/dist/models/ContrastFaceVerifyAdvanceRequest.js.map +1 -1
  6. package/dist/models/ContrastFaceVerifyRequest.d.ts +93 -0
  7. package/dist/models/ContrastFaceVerifyRequest.js.map +1 -1
  8. package/dist/models/ContrastFaceVerifyResponseBody.d.ts +32 -0
  9. package/dist/models/ContrastFaceVerifyResponseBody.js.map +1 -1
  10. package/dist/models/CreateAuthKeyRequest.d.ts +12 -0
  11. package/dist/models/CreateAuthKeyRequest.js.map +1 -1
  12. package/dist/models/CreateAuthKeyResponseBody.d.ts +6 -0
  13. package/dist/models/CreateAuthKeyResponseBody.js.map +1 -1
  14. package/dist/models/CreateVerifySettingRequest.d.ts +18 -0
  15. package/dist/models/CreateVerifySettingRequest.js.map +1 -1
  16. package/dist/models/CreateVerifySettingResponseBody.d.ts +20 -0
  17. package/dist/models/CreateVerifySettingResponseBody.js.map +1 -1
  18. package/dist/models/CredentialVerifyRequest.d.ts +132 -0
  19. package/dist/models/CredentialVerifyRequest.js.map +1 -1
  20. package/dist/models/CredentialVerifyResponseBody.d.ts +103 -0
  21. package/dist/models/CredentialVerifyResponseBody.js.map +1 -1
  22. package/dist/models/CredentialVerifyShrinkRequest.d.ts +116 -0
  23. package/dist/models/CredentialVerifyShrinkRequest.js.map +1 -1
  24. package/dist/models/DescribeCardVerifyRequest.d.ts +3 -0
  25. package/dist/models/DescribeCardVerifyRequest.js.map +1 -1
  26. package/dist/models/DescribeCardVerifyResponseBody.d.ts +52 -0
  27. package/dist/models/DescribeCardVerifyResponseBody.js.map +1 -1
  28. package/dist/models/DescribeDeviceInfoRequest.d.ts +21 -0
  29. package/dist/models/DescribeDeviceInfoRequest.js.map +1 -1
  30. package/dist/models/DescribeDeviceInfoResponseBody.d.ts +31 -0
  31. package/dist/models/DescribeDeviceInfoResponseBody.js.map +1 -1
  32. package/dist/models/DescribeFaceGuardRiskRequest.d.ts +14 -0
  33. package/dist/models/DescribeFaceGuardRiskRequest.js.map +1 -1
  34. package/dist/models/DescribeFaceGuardRiskResponseBody.d.ts +32 -1
  35. package/dist/models/DescribeFaceGuardRiskResponseBody.js.map +1 -1
  36. package/dist/models/DescribeFaceVerifyRequest.d.ts +9 -0
  37. package/dist/models/DescribeFaceVerifyRequest.js.map +1 -1
  38. package/dist/models/DescribeFaceVerifyResponseBody.d.ts +59 -0
  39. package/dist/models/DescribeFaceVerifyResponseBody.js.map +1 -1
  40. package/dist/models/DescribeOssUploadTokenResponseBody.d.ts +28 -0
  41. package/dist/models/DescribeOssUploadTokenResponseBody.js.map +1 -1
  42. package/dist/models/DescribePageFaceVerifyDataRequest.d.ts +18 -0
  43. package/dist/models/DescribePageFaceVerifyDataRequest.js.map +1 -1
  44. package/dist/models/DescribePageFaceVerifyDataResponseBody.d.ts +50 -0
  45. package/dist/models/DescribePageFaceVerifyDataResponseBody.js.map +1 -1
  46. package/dist/models/DescribeSmartStatisticsPageListRequest.d.ts +13 -0
  47. package/dist/models/DescribeSmartStatisticsPageListRequest.js.map +1 -1
  48. package/dist/models/DescribeSmartStatisticsPageListResponseBody.d.ts +44 -0
  49. package/dist/models/DescribeSmartStatisticsPageListResponseBody.js.map +1 -1
  50. package/dist/models/DescribeVerifyResultRequest.d.ts +4 -0
  51. package/dist/models/DescribeVerifyResultRequest.js.map +1 -1
  52. package/dist/models/DescribeVerifyResultResponseBody.d.ts +125 -0
  53. package/dist/models/DescribeVerifyResultResponseBody.js.map +1 -1
  54. package/dist/models/DescribeVerifySdkrequest.d.ts +2 -0
  55. package/dist/models/DescribeVerifySdkrequest.js.map +1 -1
  56. package/dist/models/DescribeVerifySdkresponseBody.d.ts +6 -0
  57. package/dist/models/DescribeVerifySdkresponseBody.js.map +1 -1
  58. package/dist/models/DescribeVerifyTokenRequest.d.ts +49 -0
  59. package/dist/models/DescribeVerifyTokenRequest.js.map +1 -1
  60. package/dist/models/DescribeVerifyTokenResponseBody.d.ts +34 -0
  61. package/dist/models/DescribeVerifyTokenResponseBody.js.map +1 -1
  62. package/dist/models/DetectFaceAttributesRequest.d.ts +5 -0
  63. package/dist/models/DetectFaceAttributesRequest.js.map +1 -1
  64. package/dist/models/DetectFaceAttributesResponseBody.d.ts +100 -0
  65. package/dist/models/DetectFaceAttributesResponseBody.js.map +1 -1
  66. package/dist/models/Id3metaVerifyAdvanceRequest.d.ts +87 -0
  67. package/dist/models/Id3metaVerifyAdvanceRequest.js +67 -0
  68. package/dist/models/Id3metaVerifyAdvanceRequest.js.map +1 -0
  69. package/dist/models/Id3metaVerifyRequest.d.ts +86 -0
  70. package/dist/models/Id3metaVerifyRequest.js +68 -0
  71. package/dist/models/Id3metaVerifyRequest.js.map +1 -0
  72. package/dist/models/Id3metaVerifyResponse.d.ts +19 -0
  73. package/dist/models/Id3metaVerifyResponse.js +69 -0
  74. package/dist/models/Id3metaVerifyResponse.js.map +1 -0
  75. package/dist/models/Id3metaVerifyResponseBody.d.ts +83 -0
  76. package/dist/models/Id3metaVerifyResponseBody.js +88 -0
  77. package/dist/models/Id3metaVerifyResponseBody.js.map +1 -0
  78. package/dist/models/InitFaceVerifyRequest.d.ts +347 -0
  79. package/dist/models/InitFaceVerifyRequest.js.map +1 -1
  80. package/dist/models/InitFaceVerifyResponseBody.d.ts +32 -0
  81. package/dist/models/InitFaceVerifyResponseBody.js.map +1 -1
  82. package/dist/models/LivenessFaceVerifyRequest.d.ts +46 -0
  83. package/dist/models/LivenessFaceVerifyRequest.js.map +1 -1
  84. package/dist/models/LivenessFaceVerifyResponseBody.d.ts +29 -0
  85. package/dist/models/LivenessFaceVerifyResponseBody.js.map +1 -1
  86. package/dist/models/VerifyMaterialRequest.d.ts +24 -0
  87. package/dist/models/VerifyMaterialRequest.js.map +1 -1
  88. package/dist/models/VerifyMaterialResponseBody.d.ts +118 -0
  89. package/dist/models/VerifyMaterialResponseBody.js.map +1 -1
  90. package/dist/models/model.d.ts +5 -0
  91. package/dist/models/model.js +15 -5
  92. package/dist/models/model.js.map +1 -1
  93. package/package.json +1 -1
  94. package/src/client.ts +403 -10
  95. package/src/models/ContrastFaceVerifyAdvanceRequest.ts +93 -0
  96. package/src/models/ContrastFaceVerifyRequest.ts +93 -0
  97. package/src/models/ContrastFaceVerifyResponseBody.ts +32 -0
  98. package/src/models/CreateAuthKeyRequest.ts +12 -0
  99. package/src/models/CreateAuthKeyResponseBody.ts +6 -0
  100. package/src/models/CreateVerifySettingRequest.ts +18 -0
  101. package/src/models/CreateVerifySettingResponseBody.ts +20 -0
  102. package/src/models/CredentialVerifyRequest.ts +132 -0
  103. package/src/models/CredentialVerifyResponseBody.ts +103 -0
  104. package/src/models/CredentialVerifyShrinkRequest.ts +116 -0
  105. package/src/models/DescribeCardVerifyRequest.ts +3 -0
  106. package/src/models/DescribeCardVerifyResponseBody.ts +52 -0
  107. package/src/models/DescribeDeviceInfoRequest.ts +21 -0
  108. package/src/models/DescribeDeviceInfoResponseBody.ts +31 -0
  109. package/src/models/DescribeFaceGuardRiskRequest.ts +14 -0
  110. package/src/models/DescribeFaceGuardRiskResponseBody.ts +32 -1
  111. package/src/models/DescribeFaceVerifyRequest.ts +9 -0
  112. package/src/models/DescribeFaceVerifyResponseBody.ts +59 -0
  113. package/src/models/DescribeOssUploadTokenResponseBody.ts +28 -0
  114. package/src/models/DescribePageFaceVerifyDataRequest.ts +18 -0
  115. package/src/models/DescribePageFaceVerifyDataResponseBody.ts +50 -0
  116. package/src/models/DescribeSmartStatisticsPageListRequest.ts +13 -0
  117. package/src/models/DescribeSmartStatisticsPageListResponseBody.ts +44 -0
  118. package/src/models/DescribeVerifyResultRequest.ts +4 -0
  119. package/src/models/DescribeVerifyResultResponseBody.ts +125 -0
  120. package/src/models/DescribeVerifySdkrequest.ts +2 -0
  121. package/src/models/DescribeVerifySdkresponseBody.ts +6 -0
  122. package/src/models/DescribeVerifyTokenRequest.ts +49 -0
  123. package/src/models/DescribeVerifyTokenResponseBody.ts +34 -0
  124. package/src/models/DetectFaceAttributesRequest.ts +5 -0
  125. package/src/models/DetectFaceAttributesResponseBody.ts +100 -0
  126. package/src/models/Id3metaVerifyAdvanceRequest.ts +110 -0
  127. package/src/models/Id3metaVerifyRequest.ts +109 -0
  128. package/src/models/Id3metaVerifyResponse.ts +40 -0
  129. package/src/models/Id3metaVerifyResponseBody.ts +117 -0
  130. package/src/models/InitFaceVerifyRequest.ts +347 -0
  131. package/src/models/InitFaceVerifyResponseBody.ts +32 -0
  132. package/src/models/LivenessFaceVerifyRequest.ts +46 -0
  133. package/src/models/LivenessFaceVerifyResponseBody.ts +29 -0
  134. package/src/models/VerifyMaterialRequest.ts +24 -0
  135. package/src/models/VerifyMaterialResponseBody.ts +118 -0
  136. package/src/models/model.ts +5 -0
@@ -5,6 +5,10 @@ import * as $dara from '@darabonba/typescript';
5
5
  export class VerifyMaterialRequest extends $dara.Model {
6
6
  /**
7
7
  * @remarks
8
+ * A unique ID that identifies a single authentication task, not exceeding 64 characters. For a single authentication task, the system supports unlimited submissions until the final authentication is passed and the task is completed.
9
+ *
10
+ * > Different BizIds are required for different authentication tasks.
11
+ *
8
12
  * This parameter is required.
9
13
  *
10
14
  * @example
@@ -13,6 +17,8 @@ export class VerifyMaterialRequest extends $dara.Model {
13
17
  bizId?: string;
14
18
  /**
15
19
  * @remarks
20
+ * Identifier for the business scenario using the real-person authentication service. Please refer to [Business Setup](https://help.aliyun.com/document_detail/127885.html) and complete the creation in the console first.
21
+ *
16
22
  * This parameter is required.
17
23
  *
18
24
  * @example
@@ -21,6 +27,8 @@ export class VerifyMaterialRequest extends $dara.Model {
21
27
  bizType?: string;
22
28
  /**
23
29
  * @remarks
30
+ * HTTP or HTTPS link to the frontal face image.
31
+ *
24
32
  * This parameter is required.
25
33
  *
26
34
  * @example
@@ -28,17 +36,25 @@ export class VerifyMaterialRequest extends $dara.Model {
28
36
  */
29
37
  faceImageUrl?: string;
30
38
  /**
39
+ * @remarks
40
+ * HTTP or HTTPS link to the national emblem side of the ID card.
41
+ *
31
42
  * @example
32
43
  * http://image-demo.img-cn-hangzhou.aliyuncs.com/example3.jpg
33
44
  */
34
45
  idCardBackImageUrl?: string;
35
46
  /**
47
+ * @remarks
48
+ * HTTP or HTTPS link to the portrait side of the ID card image.
49
+ *
36
50
  * @example
37
51
  * http://image-demo.img-cn-hangzhou.aliyuncs.com/example2.jpg
38
52
  */
39
53
  idCardFrontImageUrl?: string;
40
54
  /**
41
55
  * @remarks
56
+ * ID number.
57
+ *
42
58
  * This parameter is required.
43
59
  *
44
60
  * @example
@@ -47,10 +63,18 @@ export class VerifyMaterialRequest extends $dara.Model {
47
63
  idCardNumber?: string;
48
64
  /**
49
65
  * @remarks
66
+ * Name.
67
+ *
50
68
  * This parameter is required.
69
+ *
70
+ * @example
71
+ * 张三
51
72
  */
52
73
  name?: string;
53
74
  /**
75
+ * @remarks
76
+ * The ID of the end user, such as the account ID of the end user.
77
+ *
54
78
  * @example
55
79
  * 54sdj
56
80
  */
@@ -3,36 +3,82 @@ import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
5
  export class VerifyMaterialResponseBodyMaterialIdCardInfo extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Address.
9
+ *
10
+ * @example
11
+ * 浙江省杭州市余杭区文一西路969号
12
+ */
6
13
  address?: string;
14
+ /**
15
+ * @remarks
16
+ * Issuing authority.
17
+ *
18
+ * @example
19
+ * 杭州市公安局
20
+ */
7
21
  authority?: string;
8
22
  /**
23
+ * @remarks
24
+ * HTTP or HTTPS link to the national emblem side of the ID card. The link is valid for 5 minutes. It is recommended to store it in your business system to avoid any impact on usage.
25
+ *
9
26
  * @example
10
27
  * http://image-demo.img-cn-hangzhou.aliyuncs.com/example3.jpg
11
28
  */
12
29
  backImageUrl?: string;
13
30
  /**
31
+ * @remarks
32
+ * Date of birth.
33
+ *
14
34
  * @example
15
35
  * 19900101
16
36
  */
17
37
  birth?: string;
18
38
  /**
39
+ * @remarks
40
+ * End date of the document\\"s validity period. Format: yyyymmdd.
41
+ *
19
42
  * @example
20
43
  * 20201101
21
44
  */
22
45
  endDate?: string;
23
46
  /**
47
+ * @remarks
48
+ * HTTP or HTTPS link to the portrait side of the ID card. The link is valid for 5 minutes. It is recommended to store it in your business system to avoid any impact on usage.
49
+ *
24
50
  * @example
25
51
  * http://image-demo.img-cn-hangzhou.aliyuncs.com/example2.jpg
26
52
  */
27
53
  frontImageUrl?: string;
54
+ /**
55
+ * @remarks
56
+ * Name.
57
+ *
58
+ * @example
59
+ * 张三
60
+ */
28
61
  name?: string;
62
+ /**
63
+ * @remarks
64
+ * Nationality.
65
+ *
66
+ * @example
67
+ * 汉
68
+ */
29
69
  nationality?: string;
30
70
  /**
71
+ * @remarks
72
+ * ID number.
73
+ *
31
74
  * @example
32
75
  * 02343218901123****
33
76
  */
34
77
  number?: string;
35
78
  /**
79
+ * @remarks
80
+ * Start date of the document\\"s validity period. Format: yyyymmdd.
81
+ *
36
82
  * @example
37
83
  * 20201101
38
84
  */
@@ -78,28 +124,64 @@ export class VerifyMaterialResponseBodyMaterialIdCardInfo extends $dara.Model {
78
124
 
79
125
  export class VerifyMaterialResponseBodyMaterial extends $dara.Model {
80
126
  /**
127
+ * @remarks
128
+ * Global camera image captured by the real-person authentication SDK.
129
+ *
130
+ * > This parameter will take effect after configuration. If you need to use this parameter, please submit a [ticket](https://selfservice.console.aliyun.com/ticket/category/cloudauth/today) to contact us.
131
+ *
81
132
  * @example
82
133
  * http://image-demo.img-cn-hangzhou.aliyuncs.com/face-global-example.jpg
83
134
  */
84
135
  faceGlobalUrl?: string;
85
136
  /**
137
+ * @remarks
138
+ * HTTP or HTTPS link to the frontal face image, corresponding to the request parameter **FaceImageUrl**. The link is valid for 5 minutes, and it is recommended to store it in your business to avoid affecting usage.
139
+ *
86
140
  * @example
87
141
  * http://image-demo.img-cn-hangzhou.aliyuncs.com/example.jpg
88
142
  */
89
143
  faceImageUrl?: string;
90
144
  /**
145
+ * @remarks
146
+ * Whether the face is wearing a mask. Values:
147
+ * - **true**: Wearing a mask
148
+ * - **false**: Not wearing a mask
149
+ *
91
150
  * @example
92
151
  * false
93
152
  */
94
153
  faceMask?: string;
95
154
  /**
155
+ * @remarks
156
+ * The quality of the frontal face image. Possible values:
157
+ * - **UNQUALIFIED**: Poor quality
158
+ * - **LOW**: Low
159
+ * - **NORMAL**: Average
160
+ * - **HIGH**: High
161
+ *
96
162
  * @example
97
163
  * NORMAL
98
164
  */
99
165
  faceQuality?: string;
166
+ /**
167
+ * @remarks
168
+ * OCR result of the ID card information.
169
+ *
170
+ * > If there is no front or back of the ID card during the verification process, the OCR result of the ID card information will not be returned. Even if the front and back of the ID card are present during the verification process, it does not guarantee that all the information on the ID card will be returned. Due to issues such as poor ID card photography, the OCR may fail to recognize some information, leading to incomplete OCR results. It is recommended that the business side does not heavily rely on the ID card OCR information.
171
+ */
100
172
  idCardInfo?: VerifyMaterialResponseBodyMaterialIdCardInfo;
173
+ /**
174
+ * @remarks
175
+ * Name, corresponding to the request parameter **Name**.
176
+ *
177
+ * @example
178
+ * 张三
179
+ */
101
180
  idCardName?: string;
102
181
  /**
182
+ * @remarks
183
+ * ID number, corresponding to the request parameter **IdCardNumber**.
184
+ *
103
185
  * @example
104
186
  * 02343218901123****
105
187
  */
@@ -142,27 +224,63 @@ export class VerifyMaterialResponseBodyMaterial extends $dara.Model {
142
224
 
143
225
  export class VerifyMaterialResponseBody extends $dara.Model {
144
226
  /**
227
+ * @remarks
228
+ * Comparison score between the facial photo submitted during the authentication process and authoritative data, with a range of **0**~**100**.
229
+ *
230
+ * Confidence threshold references:
231
+ * - False recognition rate 0.001% corresponds to a threshold of 95.
232
+ * - False recognition rate 0.01% corresponds to a threshold of 90.
233
+ * - False recognition rate 0.1% corresponds to a threshold of 80.
234
+ * - False recognition rate 1% corresponds to a threshold of 60.
235
+ *
236
+ * > This field only indicates the comparison result between the face and authoritative data, serving as a reference score. It is generally not recommended to use this score alone as the pass/fail criterion. For the comprehensive authentication result, please refer to the **VerifyStatus** field. The **VerifyStatus** result integrates the face-to-authoritative data comparison and other various strategies, enhancing security levels.
237
+ *
145
238
  * @example
146
239
  * 97
147
240
  */
148
241
  authorityComparisionScore?: number;
149
242
  /**
243
+ * @remarks
244
+ * Comparison score between the facial photo submitted during the authentication process and the face on the portrait side of the ID card image, with a range of **0**~**100**.
245
+ *
246
+ * Confidence threshold references:
247
+ * - False recognition rate 0.001% corresponds to a threshold of 95.
248
+ * - False recognition rate 0.01% corresponds to a threshold of 90.
249
+ * - False recognition rate 0.1% corresponds to a threshold of 80.
250
+ * - False recognition rate 1% corresponds to a threshold of 60.
251
+ *
150
252
  * @example
151
253
  * 97
152
254
  */
153
255
  idCardFaceComparisonScore?: number;
256
+ /**
257
+ * @remarks
258
+ * Authentication materials.
259
+ */
154
260
  material?: VerifyMaterialResponseBodyMaterial;
155
261
  /**
262
+ * @remarks
263
+ * Request ID.
264
+ *
156
265
  * @example
157
266
  * 04F0F334-1335-436C-A1D7-6C044FE73368
158
267
  */
159
268
  requestId?: string;
160
269
  /**
270
+ * @remarks
271
+ * Authentication status. Values:
272
+ *
273
+ * - **1**: Authentication passed.
274
+ * - **2**~**n**: Authentication failed due to various reasons. For detailed descriptions, see the **Authentication Status Explanation** below.
275
+ *
161
276
  * @example
162
277
  * 1
163
278
  */
164
279
  verifyStatus?: number;
165
280
  /**
281
+ * @remarks
282
+ * Token for this authentication, used to link various interfaces in the authentication request, valid for 30 minutes.
283
+ *
166
284
  * @example
167
285
  * c302c0797679457685410ee51a5ba375
168
286
  */
@@ -35,6 +35,7 @@ export { Id2MetaPeriodVerifyResponseBodyResultObject } from './Id2metaPeriodVeri
35
35
  export { Id2MetaStandardVerifyResponseBodyResultObject } from './Id2metaStandardVerifyResponseBody';
36
36
  export { Id2MetaVerifyResponseBodyResultObject } from './Id2metaVerifyResponseBody';
37
37
  export { Id2MetaVerifyWithOCRResponseBodyResultObject } from './Id2metaVerifyWithOcrresponseBody';
38
+ export { Id3MetaVerifyResponseBodyResultObject } from './Id3metaVerifyResponseBody';
38
39
  export { InitCardVerifyResponseBodyResultObject } from './InitCardVerifyResponseBody';
39
40
  export { InitFaceVerifyResponseBodyResultObject } from './InitFaceVerifyResponseBody';
40
41
  export { LivenessFaceVerifyResponseBodyResultObject } from './LivenessFaceVerifyResponseBody';
@@ -141,6 +142,10 @@ export { Id2MetaVerifyWithOCRRequest } from './Id2metaVerifyWithOcrrequest';
141
142
  export { Id2MetaVerifyWithOCRAdvanceRequest } from './Id2metaVerifyWithOcradvanceRequest';
142
143
  export { Id2MetaVerifyWithOCRResponseBody } from './Id2metaVerifyWithOcrresponseBody';
143
144
  export { Id2MetaVerifyWithOCRResponse } from './Id2metaVerifyWithOcrresponse';
145
+ export { Id3MetaVerifyRequest } from './Id3metaVerifyRequest';
146
+ export { Id3MetaVerifyAdvanceRequest } from './Id3metaVerifyAdvanceRequest';
147
+ export { Id3MetaVerifyResponseBody } from './Id3metaVerifyResponseBody';
148
+ export { Id3MetaVerifyResponse } from './Id3metaVerifyResponse';
144
149
  export { InitCardVerifyRequest } from './InitCardVerifyRequest';
145
150
  export { InitCardVerifyResponseBody } from './InitCardVerifyResponseBody';
146
151
  export { InitCardVerifyResponse } from './InitCardVerifyResponse';