@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
|
@@ -3,103 +3,450 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class InitFaceVerifyRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Whether the SDK enables strict face quality detection:
|
|
9
|
+
*
|
|
10
|
+
* - **Y**: Enable
|
|
11
|
+
*
|
|
12
|
+
* - **N** (default): Disable
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* >
|
|
16
|
+
* > - If this parameter is enabled, the SDK needs to integrate the [strict face quality detection module](https://help.aliyun.com/zh/id-verification/financial-grade-id-verification/description-of-sdk-package-clipping?spm=a2c4g.11186623.0.0.1a9d35c6ySFUPW). Enabling strict quality detection may decrease the success rate of user face recognition.
|
|
17
|
+
* > - Only supported in Android SDK version 2.3.24 and above.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* N
|
|
21
|
+
*/
|
|
6
22
|
appQualityCheck?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* User authorization ID, with a maximum length of 64 characters.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* 92d46b9e9e2d703f2897f350d5bd4149
|
|
29
|
+
*/
|
|
7
30
|
authId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* Date of birth on the document.
|
|
34
|
+
*
|
|
35
|
+
* This field is required when the document type **CertType** is **PASSPORT** and **Mode** is **3**.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* 1993-10-10
|
|
39
|
+
*/
|
|
8
40
|
birthday?: string;
|
|
41
|
+
/**
|
|
42
|
+
* @remarks
|
|
43
|
+
* Security token, generated by you, used for preventing duplication and tampering.
|
|
44
|
+
*
|
|
45
|
+
* If this value is set, the **CallbackToken** field will be displayed in the callback address.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* NMjvQanQgplBSaEI0sL86WnQplB
|
|
49
|
+
*/
|
|
9
50
|
callbackToken?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* Callback notification address for the authentication result, with the default callback request method being GET. The callback address must start with `https`. After completing the authentication, the platform will call back this address and automatically add the `certifyId` and `passed` fields, where the value of the `passed` field is the subcode, for example: `https://www.aliyun.com?callbackToken=1000004826&certifyId=shaxxxx&passed=200`.
|
|
54
|
+
*
|
|
55
|
+
* <notice>
|
|
56
|
+
*
|
|
57
|
+
* - Callbacks are triggered only when the authentication is completed (including both successful and unsuccessful authentications). If the authentication is abandoned, interrupted abnormally, or not performed, no notification will be sent. It is recommended that you retrieve detailed authentication information through a query interface if needed after receiving the callback notification.
|
|
58
|
+
* - The accessibility of the provided address will be verified before the API call. If the address cannot be accessed over the public network, a 401 error will be returned.
|
|
59
|
+
* - The callback interface must return an HTTP status code of 200; otherwise, it will trigger a retry, with two callbacks within 3 seconds.
|
|
60
|
+
*
|
|
61
|
+
* </notice>
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* https://www.aliyun.com
|
|
65
|
+
*/
|
|
10
66
|
callbackUrl?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* Whether to enable the camera selection feature:
|
|
70
|
+
*
|
|
71
|
+
* - **Y**: Enable
|
|
72
|
+
*
|
|
73
|
+
* - **N** (default): Disable
|
|
74
|
+
*
|
|
75
|
+
* > This feature only takes effect in PC integration mode. When enabled, it allows users to select the camera for authentication.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* N
|
|
79
|
+
*/
|
|
11
80
|
cameraSelection?: string;
|
|
81
|
+
/**
|
|
82
|
+
* @remarks
|
|
83
|
+
* Real name.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* 张三
|
|
87
|
+
*/
|
|
12
88
|
certName?: string;
|
|
13
89
|
/**
|
|
90
|
+
* @remarks
|
|
91
|
+
* Document number.
|
|
92
|
+
*
|
|
14
93
|
* @example
|
|
15
94
|
* 330103xxxxxxxxxxxx
|
|
16
95
|
*/
|
|
17
96
|
certNo?: string;
|
|
18
97
|
/**
|
|
98
|
+
* @remarks
|
|
99
|
+
* Document type.
|
|
100
|
+
* Currently, only IDENTITY_CARD (ID card) is supported.
|
|
101
|
+
*
|
|
19
102
|
* @example
|
|
20
103
|
* IDENTITY_CARD
|
|
21
104
|
*/
|
|
22
105
|
certType?: string;
|
|
23
106
|
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* >Warning: To be deprecated
|
|
109
|
+
*
|
|
110
|
+
* Previously passed CertifyId for real-person authentication, where the photo taken during authentication is used as the comparison photo.
|
|
111
|
+
*
|
|
112
|
+
* > Among the four image input methods (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to input.
|
|
113
|
+
*
|
|
24
114
|
* @example
|
|
25
115
|
* 0bfa7c493f850e5178b9f8613634c9xx
|
|
26
116
|
*/
|
|
27
117
|
certifyId?: string;
|
|
118
|
+
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* Types of **CertifyUrl** returned, including:
|
|
121
|
+
*
|
|
122
|
+
* - **L**: Original long link
|
|
123
|
+
*
|
|
124
|
+
* - **S** (default): Short link
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* L
|
|
128
|
+
*/
|
|
28
129
|
certifyUrlStyle?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @remarks
|
|
132
|
+
* Web SDK device type, with values **WEB** or **H5**.
|
|
133
|
+
*
|
|
134
|
+
* > Only Web SDK device types are supported.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* WEB
|
|
138
|
+
*/
|
|
29
139
|
certifyUrlType?: string;
|
|
140
|
+
/**
|
|
141
|
+
* @remarks
|
|
142
|
+
* Whether to allow cropping of the face image, with the default being not allowed.
|
|
143
|
+
*
|
|
144
|
+
* - T: Indicates allowing cropping.
|
|
145
|
+
*
|
|
146
|
+
* - F: Indicates not allowing cropping.
|
|
147
|
+
*
|
|
148
|
+
* > If the image you are requesting is not from a standard liveness detection SDK, it is recommended to allow face image cropping. When this feature is enabled, the requested image will first undergo face cropping and alignment, and then the service request will be initiated.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* T
|
|
152
|
+
*/
|
|
30
153
|
crop?: string;
|
|
154
|
+
/**
|
|
155
|
+
* @remarks
|
|
156
|
+
* Encryption algorithm to be used, currently supporting only the SM2 national encryption algorithm.
|
|
157
|
+
*
|
|
158
|
+
* After enabling encrypted transmission, you need to pass in the encrypted CertName and CertNo. For how to encrypt, please refer to [Parameter Encryption Instructions](https://help.aliyun.com/zh/id-verification/financial-grade-id-verification/description-of-parameter-encryption?spm=a2c4g.11186623.0.0.1a9d566eWdqwy8#task-2229332).
|
|
159
|
+
*
|
|
160
|
+
* @example
|
|
161
|
+
* SM2
|
|
162
|
+
*/
|
|
31
163
|
encryptType?: string;
|
|
32
164
|
/**
|
|
165
|
+
* @remarks
|
|
166
|
+
* Base64 encoded photo.
|
|
167
|
+
*
|
|
168
|
+
* > Choose one of the following methods to upload the image: FaceContrastPicture, FaceContrastPictureUrl, CertifyId, or OSS.
|
|
169
|
+
*
|
|
33
170
|
* @example
|
|
34
171
|
* /9j/4AAQSkZJRgABAQAASxxxxxxx
|
|
35
172
|
*/
|
|
36
173
|
faceContrastPicture?: string;
|
|
37
174
|
/**
|
|
175
|
+
* @remarks
|
|
176
|
+
* OSS photo address, currently only supports authorized OSS photo addresses.
|
|
177
|
+
*
|
|
178
|
+
* > Among the four image input methods (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to input.
|
|
179
|
+
*
|
|
38
180
|
* @example
|
|
39
181
|
* https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg
|
|
40
182
|
*/
|
|
41
183
|
faceContrastPictureUrl?: string;
|
|
184
|
+
/**
|
|
185
|
+
* @remarks
|
|
186
|
+
* Device assistant label type, with the value: **DeviceRisk**.
|
|
187
|
+
*
|
|
188
|
+
* >
|
|
189
|
+
* > - Choosing to output the device assistant will incur additional costs. For details, see [Paid Value-Added Services](https://help.aliyun.com/zh/id-verification/financial-grade-id-verification/face-guard?spm=a2c4g.11186623.0.0.443e5522rbHsR4).
|
|
190
|
+
* > - If you do not need to output the device assistant label, you can either not pass the parameter or pass an empty value.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* DeviceRisk
|
|
194
|
+
*/
|
|
42
195
|
faceGuardOutput?: string;
|
|
43
196
|
/**
|
|
197
|
+
* @remarks
|
|
198
|
+
* User\\"s IP address.
|
|
199
|
+
*
|
|
44
200
|
* @example
|
|
45
201
|
* 114.xxx.xxx.xxx
|
|
46
202
|
*/
|
|
47
203
|
ip?: string;
|
|
48
204
|
/**
|
|
205
|
+
* @remarks
|
|
206
|
+
* Metainfo environment parameter, which needs to be obtained through the client SDK.
|
|
207
|
+
*
|
|
49
208
|
* @example
|
|
50
209
|
* {"zimVer":"3.0.0","appVersion": "1","bioMetaInfo": "4.1.0:11501568,0","appName": "com.aliyun.antcloudauth","deviceType": "ios","osVersion": "iOS 10.3.2","apdidToken": "","deviceModel": "iPhone9,1"}
|
|
51
210
|
*/
|
|
52
211
|
metaInfo?: string;
|
|
53
212
|
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* User\\"s phone number.
|
|
215
|
+
*
|
|
54
216
|
* @example
|
|
55
217
|
* 130xxxxxxxx
|
|
56
218
|
*/
|
|
57
219
|
mobile?: string;
|
|
220
|
+
/**
|
|
221
|
+
* @remarks
|
|
222
|
+
* Method to obtain passport NFC verification elements:
|
|
223
|
+
*
|
|
224
|
+
* - **1**: User input, where the end-user manually inputs the document information using the UI interface provided by the Alibaba Cloud SDK.
|
|
225
|
+
*
|
|
226
|
+
* - **3**: External parameter input, where the document information is passed through external parameters.
|
|
227
|
+
*
|
|
228
|
+
* > When decoding the encrypted information from the passport chip using NFC, three elements of the passport need to be obtained, including name, date of birth, and document expiration date.
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* 1
|
|
232
|
+
*/
|
|
58
233
|
mode?: string;
|
|
234
|
+
/**
|
|
235
|
+
* @remarks
|
|
236
|
+
* Liveness detection type, with values:
|
|
237
|
+
* > Only the following liveness detection types are supported; custom actions or combinations are not supported at this time.
|
|
238
|
+
*
|
|
239
|
+
* Note
|
|
240
|
+
* Only the following liveness detection types are supported; custom actions or combinations are not supported at this time.
|
|
241
|
+
*
|
|
242
|
+
* - **LIVENESS** (default): Blinking
|
|
243
|
+
*
|
|
244
|
+
* - **PHOTINUS_LIVENESS**: Blinking + Colorful Light
|
|
245
|
+
*
|
|
246
|
+
* - **MULTI_ACTION**: Blinking + Head Shaking (the order of blinking and head shaking is random)
|
|
247
|
+
*
|
|
248
|
+
* - **MOVE_ACTION** (recommended): Moving Closer and Farther + Blinking
|
|
249
|
+
*
|
|
250
|
+
* - **MOVE_PHOTINUS**: Moving Closer and Farther + Colorful Light
|
|
251
|
+
*
|
|
252
|
+
* >
|
|
253
|
+
* >- The **default liveness detection type** is supported in the following versions:
|
|
254
|
+
* > - Android SDK 1.2.6 and above
|
|
255
|
+
* > - iOS SDK 1.2.4 and above
|
|
256
|
+
* > - Harmony SDK 1.0.0 and above
|
|
257
|
+
* >- Other types are supported in the latest SDK versions for Android/iOS/Harmony. It is recommended to integrate the latest version.
|
|
258
|
+
*
|
|
259
|
+
* @example
|
|
260
|
+
* MOVE_ACTION
|
|
261
|
+
*/
|
|
59
262
|
model?: string;
|
|
263
|
+
/**
|
|
264
|
+
* @remarks
|
|
265
|
+
* Whether to intercept when multiple faces are detected, with the following values:
|
|
266
|
+
*
|
|
267
|
+
* - **Y**: Intercept, and the client prompts the user to re-scan their face.
|
|
268
|
+
*
|
|
269
|
+
* - **N** (default): Do not intercept, and send the largest face in the scanned image to the server for security checks.
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* Y
|
|
273
|
+
*/
|
|
60
274
|
needMultiFaceCheck?: string;
|
|
61
275
|
/**
|
|
276
|
+
* @remarks
|
|
277
|
+
* Authorized OSS bucket name.
|
|
278
|
+
*
|
|
279
|
+
* > Among the four image input methods (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to input.
|
|
280
|
+
*
|
|
62
281
|
* @example
|
|
63
282
|
* cn-shanghai-aliyun-cloudauth-xxxxx
|
|
64
283
|
*/
|
|
65
284
|
ossBucketName?: string;
|
|
66
285
|
/**
|
|
286
|
+
* @remarks
|
|
287
|
+
* Authorized OSS object name.
|
|
288
|
+
*
|
|
289
|
+
* > Among the four image input methods (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to input.
|
|
290
|
+
*
|
|
67
291
|
* @example
|
|
68
292
|
* verify/xxxxx/xxxxxx.jpeg
|
|
69
293
|
*/
|
|
70
294
|
ossObjectName?: string;
|
|
71
295
|
/**
|
|
296
|
+
* @remarks
|
|
297
|
+
* Unique identifier for the merchant\\"s request.
|
|
298
|
+
*
|
|
299
|
+
* The value is a 32-character alphanumeric combination. The first few characters are a custom abbreviation defined by the merchant, followed by a period, and the latter part can be a random or incremental sequence.
|
|
300
|
+
*
|
|
72
301
|
* @example
|
|
73
302
|
* e0c34a77f5ac40a5aa5e6ed20c353888
|
|
74
303
|
*/
|
|
75
304
|
outerOrderNo?: string;
|
|
305
|
+
/**
|
|
306
|
+
* @remarks
|
|
307
|
+
* Degradation configuration for mobile H5 authentication when WebRTC or Webassembly is incompatible.
|
|
308
|
+
*
|
|
309
|
+
* - **keep**: Does not support degradation, returns directly.
|
|
310
|
+
*
|
|
311
|
+
* - **url** (default): Supports degradation, returns an authentication URL. Users can use this URL to open or switch browsers for authentication.
|
|
312
|
+
*
|
|
313
|
+
* - **video**: Supports degradation, uses the system camera to record a 3~5 second blinking video for authentication.
|
|
314
|
+
*
|
|
315
|
+
*
|
|
316
|
+
* >
|
|
317
|
+
* > When the degradation mode is Video, the following functions will be disabled, and the product security will decrease. It is recommended to configure it only for secure scenarios.
|
|
318
|
+
* > - Liveness detection type settings will not take effect.
|
|
319
|
+
* > - The VideoEvidence function is not supported.
|
|
320
|
+
*
|
|
321
|
+
* @example
|
|
322
|
+
* url
|
|
323
|
+
*/
|
|
76
324
|
procedurePriority?: string;
|
|
77
325
|
/**
|
|
326
|
+
* @remarks
|
|
327
|
+
* Fixed value. The parameter value differs based on the product solution:
|
|
328
|
+
* - APP Authentication Scheme: Fixed value is ID_PRO
|
|
329
|
+
* - Live Face Verification Scheme: Fixed value is PV_FV
|
|
330
|
+
* - Liveness Detection Scheme: Fixed value is LR_FR
|
|
331
|
+
*
|
|
78
332
|
* @example
|
|
79
333
|
* ID_PRO
|
|
80
334
|
*/
|
|
81
335
|
productCode?: string;
|
|
336
|
+
/**
|
|
337
|
+
* @remarks
|
|
338
|
+
* Whether to enable rare character mode:
|
|
339
|
+
*
|
|
340
|
+
* - **Y**: Enable. A message input box will pop up before the user authenticates, requiring the input of the rare character name and ID number. The user must agree to the terms before starting the authentication process.
|
|
341
|
+
*
|
|
342
|
+
* - **N**: Not enabled (default)
|
|
343
|
+
*
|
|
344
|
+
* @example
|
|
345
|
+
* Y
|
|
346
|
+
*/
|
|
82
347
|
rarelyCharacters?: string;
|
|
348
|
+
/**
|
|
349
|
+
* @remarks
|
|
350
|
+
* Whether to read the document photo:
|
|
351
|
+
*
|
|
352
|
+
* - **Y**: Read
|
|
353
|
+
*
|
|
354
|
+
* - **N**: Do not read
|
|
355
|
+
*
|
|
356
|
+
* > If the document face photo is needed in subsequent authentication steps, it is recommended to set this parameter to Y.
|
|
357
|
+
*
|
|
358
|
+
* @example
|
|
359
|
+
* Y
|
|
360
|
+
*/
|
|
83
361
|
readImg?: string;
|
|
84
362
|
/**
|
|
363
|
+
* @remarks
|
|
364
|
+
* Target URL for the merchant\\"s business page to redirect to.
|
|
365
|
+
*
|
|
85
366
|
* @example
|
|
86
367
|
* www.aliyun.com
|
|
87
368
|
*/
|
|
88
369
|
returnUrl?: string;
|
|
89
370
|
/**
|
|
371
|
+
* @remarks
|
|
372
|
+
* Authentication Scene ID.
|
|
373
|
+
*
|
|
90
374
|
* @example
|
|
91
375
|
* 1000000006
|
|
92
376
|
*/
|
|
93
377
|
sceneId?: number;
|
|
378
|
+
/**
|
|
379
|
+
* @remarks
|
|
380
|
+
* Aging-friendly configuration parameters that take effect for each authentication request. You can choose different parameters based on your app\\"s business attributes, customer distribution, operational characteristics, etc., for each authentication request. The options include the following, with the default being 0.
|
|
381
|
+
*
|
|
382
|
+
* - **0**: Not enabled, indicating that the current authentication request does not enable aging-friendly mode.
|
|
383
|
+
*
|
|
384
|
+
* - **1**: Enabled, indicating that the current authentication request enables aging-friendly mode.
|
|
385
|
+
*
|
|
386
|
+
* - **2**: User choice.
|
|
387
|
+
*
|
|
388
|
+
*
|
|
389
|
+
* Supports end-users in choosing the authentication mode. The product guide page provides two authentication entry points: \\"Enable Authentication\\" and \\"Elderly Authentication Mode\\". When the user selects \\"Elderly Authentication Mode\\", the system enters aging-friendly mode.
|
|
390
|
+
* >
|
|
391
|
+
* > - Aging-friendly parameters are only effective when the liveness detection type **Model** is set to **LIVENESS** or **MULTI_ACTION**.
|
|
392
|
+
*
|
|
393
|
+
* @example
|
|
394
|
+
* 0
|
|
395
|
+
*/
|
|
94
396
|
suitableType?: string;
|
|
397
|
+
/**
|
|
398
|
+
* @remarks
|
|
399
|
+
* UI configuration file URL.
|
|
400
|
+
*
|
|
401
|
+
* You can view the complete configuration in the [Web SDK UI Customization Description](https://help.aliyun.com/zh/id-verification/financial-grade-id-verification/web-sdk-ui-custom-configuration-description?spm=a2c4g.11186623.0.0.4c683f5c8K3I9p).
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* www.aliyundoc.com
|
|
405
|
+
*/
|
|
95
406
|
uiCustomUrl?: string;
|
|
96
407
|
/**
|
|
408
|
+
* @remarks
|
|
409
|
+
* Custom user ID for the customer\\"s business, please ensure it is unique.
|
|
410
|
+
*
|
|
97
411
|
* @example
|
|
98
412
|
* 123456789
|
|
99
413
|
*/
|
|
100
414
|
userId?: string;
|
|
415
|
+
/**
|
|
416
|
+
* @remarks
|
|
417
|
+
* Document expiration date.
|
|
418
|
+
*
|
|
419
|
+
* This field is required when the document type **CertType** is **PASSPORT** and **Mode** is **3**.
|
|
420
|
+
*
|
|
421
|
+
* @example
|
|
422
|
+
* 2039-06-10
|
|
423
|
+
*/
|
|
101
424
|
validityDate?: string;
|
|
425
|
+
/**
|
|
426
|
+
* @remarks
|
|
427
|
+
* Whether to enable video evidence:
|
|
428
|
+
*
|
|
429
|
+
* - **true**: Enable
|
|
430
|
+
*
|
|
431
|
+
* - **false** (default): Disable
|
|
432
|
+
*
|
|
433
|
+
* > Due to the large size of video files, when the network is unstable, the system will discard the video file to prioritize the transmission of necessary images for authentication. It is recommended that your business set a weak dependency on the video.
|
|
434
|
+
*
|
|
435
|
+
* @example
|
|
436
|
+
* false
|
|
437
|
+
*/
|
|
102
438
|
videoEvidence?: string;
|
|
439
|
+
/**
|
|
440
|
+
* @remarks
|
|
441
|
+
* Customized content. Required when personalized settings are enabled. The format is a JSON String of a String List.
|
|
442
|
+
*
|
|
443
|
+
* - For the follow-reading scenario: It should not exceed 60 Chinese characters (excluding punctuation), and the List contains only one element.
|
|
444
|
+
*
|
|
445
|
+
* - For the Q&A scenario: Up to 3 questions can be set, with each question not exceeding 30 Chinese characters, and each question being an element in the List.
|
|
446
|
+
*
|
|
447
|
+
* @example
|
|
448
|
+
* ["本人王先生同意***协议。"]
|
|
449
|
+
*/
|
|
103
450
|
voluntaryCustomizedContent?: string;
|
|
104
451
|
static names(): { [key: string]: string } {
|
|
105
452
|
return {
|
|
@@ -4,10 +4,29 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class InitFaceVerifyResponseBodyResultObject extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Unique identifier for real-person authentication.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 91707dc296d469ad38e4c5efa6a0f24b
|
|
9
12
|
*/
|
|
10
13
|
certifyId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* URL for real-person authentication in a Web browser, which will redirect according to the ReturnUrl parameter after authentication.
|
|
17
|
+
*
|
|
18
|
+
* >Notice:
|
|
19
|
+
*
|
|
20
|
+
* - The CertifyUrl returned by the initialization interface is valid for **30 minutes and can only be used once**. Please use it within the validity period to avoid reuse.
|
|
21
|
+
* - This parameter requires the correct input of **MetaInfo** to return a CertifyUrl that matches the client. If you cannot obtain it, please check whether **MetaInfo** and other input parameters are correct.
|
|
22
|
+
*
|
|
23
|
+
* - The domain name of this URL may change with service updates. To ensure normal service availability, it is recommended not to apply access control to this domain name.
|
|
24
|
+
*
|
|
25
|
+
* - When redirecting in the browser, try not to use incognito mode or modify the URL, as this may result in a **signature error**.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* https://t.aliyun.com/****
|
|
29
|
+
*/
|
|
11
30
|
certifyUrl?: string;
|
|
12
31
|
static names(): { [key: string]: string } {
|
|
13
32
|
return {
|
|
@@ -34,20 +53,33 @@ export class InitFaceVerifyResponseBodyResultObject extends $dara.Model {
|
|
|
34
53
|
|
|
35
54
|
export class InitFaceVerifyResponseBody extends $dara.Model {
|
|
36
55
|
/**
|
|
56
|
+
* @remarks
|
|
57
|
+
* Return code: 200 indicates success, other values indicate failure.
|
|
58
|
+
*
|
|
37
59
|
* @example
|
|
38
60
|
* 200
|
|
39
61
|
*/
|
|
40
62
|
code?: string;
|
|
41
63
|
/**
|
|
64
|
+
* @remarks
|
|
65
|
+
* Error message.
|
|
66
|
+
*
|
|
42
67
|
* @example
|
|
43
68
|
* success
|
|
44
69
|
*/
|
|
45
70
|
message?: string;
|
|
46
71
|
/**
|
|
72
|
+
* @remarks
|
|
73
|
+
* Request ID.
|
|
74
|
+
*
|
|
47
75
|
* @example
|
|
48
76
|
* 130A2C10-B9EE-4D84-88E3-5384FF039795
|
|
49
77
|
*/
|
|
50
78
|
requestId?: string;
|
|
79
|
+
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* Result object.
|
|
82
|
+
*/
|
|
51
83
|
resultObject?: InitFaceVerifyResponseBodyResultObject;
|
|
52
84
|
static names(): { [key: string]: string } {
|
|
53
85
|
return {
|
|
@@ -4,71 +4,117 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class LivenessFaceVerifyRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Unique identifier for real-person authentication.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 91707dc296d469ad38e4c5efa6a0f24b
|
|
9
12
|
*/
|
|
10
13
|
certifyId?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Whether to allow cropping of the face image:
|
|
17
|
+
*
|
|
18
|
+
* - T: Allow cropping
|
|
19
|
+
*
|
|
20
|
+
* - F (default): Do not allow cropping.
|
|
21
|
+
*
|
|
12
22
|
* @example
|
|
13
23
|
* T
|
|
14
24
|
*/
|
|
15
25
|
crop?: string;
|
|
16
26
|
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* Device token, used for risk identification.
|
|
29
|
+
*
|
|
17
30
|
* @example
|
|
18
31
|
* McozS1ZWRcRZStlERcZZo_QOytx5jcgZoZJEoRLOxxxxxxx
|
|
19
32
|
*/
|
|
20
33
|
deviceToken?: string;
|
|
21
34
|
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* Base64 encoded photo.
|
|
37
|
+
*
|
|
22
38
|
* @example
|
|
23
39
|
* /9j/4AAQSkZJRgABAQAASxxxxxxx
|
|
24
40
|
*/
|
|
25
41
|
faceContrastPicture?: string;
|
|
26
42
|
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* Image URL.
|
|
45
|
+
*
|
|
27
46
|
* @example
|
|
28
47
|
* https://ware.cdeledu.com/upfile/uploadPic/2025/03/21/dd62fbb9c966433ab0ba9a7252816b30.jpg
|
|
29
48
|
*/
|
|
30
49
|
faceContrastPictureUrl?: string;
|
|
31
50
|
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* User\\"s network IP address.
|
|
53
|
+
*
|
|
32
54
|
* @example
|
|
33
55
|
* 114.xxx.xxx.xxx
|
|
34
56
|
*/
|
|
35
57
|
ip?: string;
|
|
36
58
|
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* User\\"s mobile phone number.
|
|
61
|
+
*
|
|
37
62
|
* @example
|
|
38
63
|
* 130xxxxxxxx
|
|
39
64
|
*/
|
|
40
65
|
mobile?: string;
|
|
41
66
|
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* Liveness detection parameters.
|
|
69
|
+
*
|
|
42
70
|
* @example
|
|
43
71
|
* FRONT_CAMERA_LIVENESS
|
|
44
72
|
*/
|
|
45
73
|
model?: string;
|
|
46
74
|
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* Authorized OSS bucket name.
|
|
77
|
+
*
|
|
47
78
|
* @example
|
|
48
79
|
* cn-shanghai-aliyun-cloudauth-1494517779820665
|
|
49
80
|
*/
|
|
50
81
|
ossBucketName?: string;
|
|
51
82
|
/**
|
|
83
|
+
* @remarks
|
|
84
|
+
* Authorized OSS file name.
|
|
85
|
+
*
|
|
52
86
|
* @example
|
|
53
87
|
* facedetect/17483113370916034.jpg
|
|
54
88
|
*/
|
|
55
89
|
ossObjectName?: string;
|
|
56
90
|
/**
|
|
91
|
+
* @remarks
|
|
92
|
+
* A unique business identifier defined by the client side, used for subsequent troubleshooting. The value should be a combination of letters and numbers up to 32 characters long, ensuring uniqueness.
|
|
93
|
+
*
|
|
57
94
|
* @example
|
|
58
95
|
* e0c34a77f5ac40a5aa5e6ed20c353888
|
|
59
96
|
*/
|
|
60
97
|
outerOrderNo?: string;
|
|
61
98
|
/**
|
|
99
|
+
* @remarks
|
|
100
|
+
* Fixed value: LR_FR_MIN.
|
|
101
|
+
*
|
|
62
102
|
* @example
|
|
63
103
|
* LR_FR_MIN
|
|
64
104
|
*/
|
|
65
105
|
productCode?: string;
|
|
66
106
|
/**
|
|
107
|
+
* @remarks
|
|
108
|
+
* Authentication scenario ID. This ID is automatically generated after creating an authentication scenario in the console.
|
|
109
|
+
*
|
|
67
110
|
* @example
|
|
68
111
|
* 100000****
|
|
69
112
|
*/
|
|
70
113
|
sceneId?: number;
|
|
71
114
|
/**
|
|
115
|
+
* @remarks
|
|
116
|
+
* Your custom user ID (up to 100 characters), please ensure it is unique.
|
|
117
|
+
*
|
|
72
118
|
* @example
|
|
73
119
|
* 123456789
|
|
74
120
|
*/
|
|
@@ -4,21 +4,37 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class LivenessFaceVerifyResponseBodyResultObject extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Unique identifier for the real-person authentication request.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 91707dc296d469ad38e4c5efa6a0f24b
|
|
9
12
|
*/
|
|
10
13
|
certifyId?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Attachment information of the face authentication subject, including data such as face quality, face attack, face or OCR image, and intent verification.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* {"faceAttack": "F","facialPictureFront": {"qualityScore": 88.3615493774414,"verifyScore": 50.28594166529785}}
|
|
14
20
|
*/
|
|
15
21
|
materialInfo?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Authentication result, values:
|
|
25
|
+
*
|
|
26
|
+
* - T: Passed
|
|
27
|
+
*
|
|
28
|
+
* - F: Not passed
|
|
29
|
+
*
|
|
17
30
|
* @example
|
|
18
31
|
* T
|
|
19
32
|
*/
|
|
20
33
|
passed?: string;
|
|
21
34
|
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* Authentication result code.
|
|
37
|
+
*
|
|
22
38
|
* @example
|
|
23
39
|
* 200
|
|
24
40
|
*/
|
|
@@ -52,20 +68,33 @@ export class LivenessFaceVerifyResponseBodyResultObject extends $dara.Model {
|
|
|
52
68
|
|
|
53
69
|
export class LivenessFaceVerifyResponseBody extends $dara.Model {
|
|
54
70
|
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* Return code, **200** indicates successful API response.
|
|
73
|
+
*
|
|
55
74
|
* @example
|
|
56
75
|
* 200
|
|
57
76
|
*/
|
|
58
77
|
code?: string;
|
|
59
78
|
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* Return message.
|
|
81
|
+
*
|
|
60
82
|
* @example
|
|
61
83
|
* success
|
|
62
84
|
*/
|
|
63
85
|
message?: string;
|
|
64
86
|
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* ID of this request.
|
|
89
|
+
*
|
|
65
90
|
* @example
|
|
66
91
|
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
|
|
67
92
|
*/
|
|
68
93
|
requestId?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* Return result.
|
|
97
|
+
*/
|
|
69
98
|
resultObject?: LivenessFaceVerifyResponseBodyResultObject;
|
|
70
99
|
static names(): { [key: string]: string } {
|
|
71
100
|
return {
|