@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
|
@@ -4,77 +4,170 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export class ContrastFaceVerifyAdvanceRequest extends $dara.Model {
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* Real name.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* 张三
|
|
13
|
+
*/
|
|
7
14
|
certName?: string;
|
|
8
15
|
/**
|
|
16
|
+
* @remarks
|
|
17
|
+
* ID number
|
|
18
|
+
*
|
|
9
19
|
* @example
|
|
10
20
|
* 330103xxxxxxxxxxxx
|
|
11
21
|
*/
|
|
12
22
|
certNo?: string;
|
|
13
23
|
/**
|
|
24
|
+
* @remarks
|
|
25
|
+
* Type of identification. Currently, only IDENTITY_CARD is supported and must be provided.
|
|
26
|
+
*
|
|
14
27
|
* @example
|
|
15
28
|
* IDENTITY_CARD
|
|
16
29
|
*/
|
|
17
30
|
certType?: string;
|
|
18
31
|
/**
|
|
32
|
+
* @remarks
|
|
33
|
+
* The CertifyId of a previously passed real-person authentication, with the photo taken during that authentication used as the comparison photo.
|
|
34
|
+
* > Among the four ways to input images (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to provide.
|
|
35
|
+
*
|
|
19
36
|
* @example
|
|
20
37
|
* 0bfa7c493f850e5178b9f8613634c9xx
|
|
21
38
|
*/
|
|
22
39
|
certifyId?: string;
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* Allow face image cropping:
|
|
43
|
+
*
|
|
44
|
+
* - **T** – Cropping is allowed.
|
|
45
|
+
* - **F** (default) – Cropping is not allowed.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* T
|
|
49
|
+
*/
|
|
23
50
|
crop?: string;
|
|
24
51
|
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* Risk Identification - Device Token
|
|
54
|
+
*
|
|
25
55
|
* @example
|
|
26
56
|
* McozS1ZWRcRZStlERcZZo_QOytx5jcgZoZJEoRLOxxxxxxx
|
|
27
57
|
*/
|
|
28
58
|
deviceToken?: string;
|
|
59
|
+
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* Encryption type. Leave it empty if no encryption is required.
|
|
62
|
+
*
|
|
63
|
+
* If you enable encrypted transmission, you must specify the encryption algorithm; currently, only the SM2 (Chinese national standard) algorithm is supported.
|
|
64
|
+
*
|
|
65
|
+
* When an encryption algorithm is specified, encrypt both **CertName** and **CertNo** and submit the resulting ciphertext. For more details on parameter encryption, see the [Parameter Encryption documentation](https://help.aliyun.com/zh/id-verification/financial-grade-id-verification/description-of-parameter-encryption?spm=a2c4g.11186623.0.0.49541a8554cELI#task-2229332).
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* SM2
|
|
69
|
+
*/
|
|
29
70
|
encryptType?: string;
|
|
71
|
+
/**
|
|
72
|
+
* @remarks
|
|
73
|
+
* Local video file.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* -
|
|
77
|
+
*/
|
|
30
78
|
faceContrastFileObject?: Readable;
|
|
31
79
|
/**
|
|
80
|
+
* @remarks
|
|
81
|
+
* Base64 encoded photo
|
|
82
|
+
*
|
|
32
83
|
* @example
|
|
33
84
|
* /9j/4AAQSkZJRgABAQAASxxxxxxx
|
|
34
85
|
*/
|
|
35
86
|
faceContrastPicture?: string;
|
|
36
87
|
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* OSS photo URL, currently only supports authorized OSS photo URLs.
|
|
90
|
+
* > Among the four ways to input images (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to input.
|
|
91
|
+
*
|
|
37
92
|
* @example
|
|
38
93
|
* https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg
|
|
39
94
|
*/
|
|
40
95
|
faceContrastPictureUrl?: string;
|
|
41
96
|
/**
|
|
97
|
+
* @remarks
|
|
98
|
+
* User IP.
|
|
99
|
+
*
|
|
42
100
|
* @example
|
|
43
101
|
* 114.xxx.xxx.xxx
|
|
44
102
|
*/
|
|
45
103
|
ip?: string;
|
|
46
104
|
/**
|
|
105
|
+
* @remarks
|
|
106
|
+
* User\\"s phone number.
|
|
107
|
+
*
|
|
47
108
|
* @example
|
|
48
109
|
* 130xxxxxxxx
|
|
49
110
|
*/
|
|
50
111
|
mobile?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @remarks
|
|
114
|
+
* Liveness detection type. Possible values:
|
|
115
|
+
*
|
|
116
|
+
* • **NO_LIVENESS** – Liveness detection is disabled.
|
|
117
|
+
*
|
|
118
|
+
* • **FRONT_CAMERA_LIVENESS** (default) – Liveness detection on face images captured with the mobile device’s front camera.
|
|
119
|
+
*
|
|
120
|
+
* • **REAR_CAMERA_LIVENESS** – Liveness detection on face images captured in other scenarios (e.g., via the rear camera).
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* FRONT_CAMERA_LIVENESS
|
|
124
|
+
*/
|
|
51
125
|
model?: string;
|
|
52
126
|
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* Authorized OSS space Bucket name. In the methods of passing images, including FaceContrastPicture, FaceContrastPictureUrl, CertifyId, and OSS, choose one to pass in.
|
|
129
|
+
*
|
|
53
130
|
* @example
|
|
54
131
|
* cn-shanghai-aliyun-cloudauth-xxxxx
|
|
55
132
|
*/
|
|
56
133
|
ossBucketName?: string;
|
|
57
134
|
/**
|
|
135
|
+
* @remarks
|
|
136
|
+
* Filename of the authorized OSS space.
|
|
137
|
+
* > Among the four ways to input images (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to input.
|
|
138
|
+
*
|
|
58
139
|
* @example
|
|
59
140
|
* verify/xxxxx/xxxxxx.jpeg
|
|
60
141
|
*/
|
|
61
142
|
ossObjectName?: string;
|
|
62
143
|
/**
|
|
144
|
+
* @remarks
|
|
145
|
+
* A unique identifier for the merchant\\"s request. It 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 incrementing sequence.
|
|
146
|
+
*
|
|
63
147
|
* @example
|
|
64
148
|
* e0c34a77f5ac40a5aa5e6ed20c353888
|
|
65
149
|
*/
|
|
66
150
|
outerOrderNo?: string;
|
|
67
151
|
/**
|
|
152
|
+
* @remarks
|
|
153
|
+
* Fixed value: ID_MIN.
|
|
154
|
+
*
|
|
68
155
|
* @example
|
|
69
156
|
* ID_MIN
|
|
70
157
|
*/
|
|
71
158
|
productCode?: string;
|
|
72
159
|
/**
|
|
160
|
+
* @remarks
|
|
161
|
+
* Authentication scenario ID.
|
|
162
|
+
*
|
|
73
163
|
* @example
|
|
74
164
|
* 1000000006
|
|
75
165
|
*/
|
|
76
166
|
sceneId?: number;
|
|
77
167
|
/**
|
|
168
|
+
* @remarks
|
|
169
|
+
* Custom user ID defined by the customer\\"s business.
|
|
170
|
+
*
|
|
78
171
|
* @example
|
|
79
172
|
* 123456789
|
|
80
173
|
*/
|
|
@@ -3,77 +3,170 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ContrastFaceVerifyRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Real name.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 张三
|
|
12
|
+
*/
|
|
6
13
|
certName?: string;
|
|
7
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* ID number
|
|
17
|
+
*
|
|
8
18
|
* @example
|
|
9
19
|
* 330103xxxxxxxxxxxx
|
|
10
20
|
*/
|
|
11
21
|
certNo?: string;
|
|
12
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Type of identification. Currently, only IDENTITY_CARD is supported and must be provided.
|
|
25
|
+
*
|
|
13
26
|
* @example
|
|
14
27
|
* IDENTITY_CARD
|
|
15
28
|
*/
|
|
16
29
|
certType?: string;
|
|
17
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The CertifyId of a previously passed real-person authentication, with the photo taken during that authentication used as the comparison photo.
|
|
33
|
+
* > Among the four ways to input images (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to provide.
|
|
34
|
+
*
|
|
18
35
|
* @example
|
|
19
36
|
* 0bfa7c493f850e5178b9f8613634c9xx
|
|
20
37
|
*/
|
|
21
38
|
certifyId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* Allow face image cropping:
|
|
42
|
+
*
|
|
43
|
+
* - **T** – Cropping is allowed.
|
|
44
|
+
* - **F** (default) – Cropping is not allowed.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* T
|
|
48
|
+
*/
|
|
22
49
|
crop?: string;
|
|
23
50
|
/**
|
|
51
|
+
* @remarks
|
|
52
|
+
* Risk Identification - Device Token
|
|
53
|
+
*
|
|
24
54
|
* @example
|
|
25
55
|
* McozS1ZWRcRZStlERcZZo_QOytx5jcgZoZJEoRLOxxxxxxx
|
|
26
56
|
*/
|
|
27
57
|
deviceToken?: string;
|
|
58
|
+
/**
|
|
59
|
+
* @remarks
|
|
60
|
+
* Encryption type. Leave it empty if no encryption is required.
|
|
61
|
+
*
|
|
62
|
+
* If you enable encrypted transmission, you must specify the encryption algorithm; currently, only the SM2 (Chinese national standard) algorithm is supported.
|
|
63
|
+
*
|
|
64
|
+
* When an encryption algorithm is specified, encrypt both **CertName** and **CertNo** and submit the resulting ciphertext. For more details on parameter encryption, see the [Parameter Encryption documentation](https://help.aliyun.com/zh/id-verification/financial-grade-id-verification/description-of-parameter-encryption?spm=a2c4g.11186623.0.0.49541a8554cELI#task-2229332).
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* SM2
|
|
68
|
+
*/
|
|
28
69
|
encryptType?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* Local video file.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* -
|
|
76
|
+
*/
|
|
29
77
|
faceContrastFile?: string;
|
|
30
78
|
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* Base64 encoded photo
|
|
81
|
+
*
|
|
31
82
|
* @example
|
|
32
83
|
* /9j/4AAQSkZJRgABAQAASxxxxxxx
|
|
33
84
|
*/
|
|
34
85
|
faceContrastPicture?: string;
|
|
35
86
|
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* OSS photo URL, currently only supports authorized OSS photo URLs.
|
|
89
|
+
* > Among the four ways to input images (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to input.
|
|
90
|
+
*
|
|
36
91
|
* @example
|
|
37
92
|
* https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg
|
|
38
93
|
*/
|
|
39
94
|
faceContrastPictureUrl?: string;
|
|
40
95
|
/**
|
|
96
|
+
* @remarks
|
|
97
|
+
* User IP.
|
|
98
|
+
*
|
|
41
99
|
* @example
|
|
42
100
|
* 114.xxx.xxx.xxx
|
|
43
101
|
*/
|
|
44
102
|
ip?: string;
|
|
45
103
|
/**
|
|
104
|
+
* @remarks
|
|
105
|
+
* User\\"s phone number.
|
|
106
|
+
*
|
|
46
107
|
* @example
|
|
47
108
|
* 130xxxxxxxx
|
|
48
109
|
*/
|
|
49
110
|
mobile?: string;
|
|
111
|
+
/**
|
|
112
|
+
* @remarks
|
|
113
|
+
* Liveness detection type. Possible values:
|
|
114
|
+
*
|
|
115
|
+
* • **NO_LIVENESS** – Liveness detection is disabled.
|
|
116
|
+
*
|
|
117
|
+
* • **FRONT_CAMERA_LIVENESS** (default) – Liveness detection on face images captured with the mobile device’s front camera.
|
|
118
|
+
*
|
|
119
|
+
* • **REAR_CAMERA_LIVENESS** – Liveness detection on face images captured in other scenarios (e.g., via the rear camera).
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* FRONT_CAMERA_LIVENESS
|
|
123
|
+
*/
|
|
50
124
|
model?: string;
|
|
51
125
|
/**
|
|
126
|
+
* @remarks
|
|
127
|
+
* Authorized OSS space Bucket name. In the methods of passing images, including FaceContrastPicture, FaceContrastPictureUrl, CertifyId, and OSS, choose one to pass in.
|
|
128
|
+
*
|
|
52
129
|
* @example
|
|
53
130
|
* cn-shanghai-aliyun-cloudauth-xxxxx
|
|
54
131
|
*/
|
|
55
132
|
ossBucketName?: string;
|
|
56
133
|
/**
|
|
134
|
+
* @remarks
|
|
135
|
+
* Filename of the authorized OSS space.
|
|
136
|
+
* > Among the four ways to input images (FaceContrastPicture, FaceContrastPictureUrl, CertifyId, OSS), choose one to input.
|
|
137
|
+
*
|
|
57
138
|
* @example
|
|
58
139
|
* verify/xxxxx/xxxxxx.jpeg
|
|
59
140
|
*/
|
|
60
141
|
ossObjectName?: string;
|
|
61
142
|
/**
|
|
143
|
+
* @remarks
|
|
144
|
+
* A unique identifier for the merchant\\"s request. It 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 incrementing sequence.
|
|
145
|
+
*
|
|
62
146
|
* @example
|
|
63
147
|
* e0c34a77f5ac40a5aa5e6ed20c353888
|
|
64
148
|
*/
|
|
65
149
|
outerOrderNo?: string;
|
|
66
150
|
/**
|
|
151
|
+
* @remarks
|
|
152
|
+
* Fixed value: ID_MIN.
|
|
153
|
+
*
|
|
67
154
|
* @example
|
|
68
155
|
* ID_MIN
|
|
69
156
|
*/
|
|
70
157
|
productCode?: string;
|
|
71
158
|
/**
|
|
159
|
+
* @remarks
|
|
160
|
+
* Authentication scenario ID.
|
|
161
|
+
*
|
|
72
162
|
* @example
|
|
73
163
|
* 1000000006
|
|
74
164
|
*/
|
|
75
165
|
sceneId?: number;
|
|
76
166
|
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* Custom user ID defined by the customer\\"s business.
|
|
169
|
+
*
|
|
77
170
|
* @example
|
|
78
171
|
* 123456789
|
|
79
172
|
*/
|
|
@@ -3,23 +3,42 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class ContrastFaceVerifyResponseBodyResultObject extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Unique identifier for the real-person verification request.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 91707dc296d469ad38e4c5efa6a0****
|
|
12
|
+
*/
|
|
6
13
|
certifyId?: string;
|
|
7
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Information about the authenticated entity, which is usually empty in general authentication scenarios.
|
|
17
|
+
*
|
|
8
18
|
* @example
|
|
9
19
|
* null
|
|
10
20
|
*/
|
|
11
21
|
identityInfo?: string;
|
|
12
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Attachment information of the authenticated entity, mainly image materials, in JSON format, as follows.
|
|
25
|
+
*
|
|
13
26
|
* @example
|
|
14
27
|
* {"faceAttack": "F","facialPictureFront": {"qualityScore": 88.3615493774414,"verifyScore": 50.28594166529785}}
|
|
15
28
|
*/
|
|
16
29
|
materialInfo?: string;
|
|
17
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* Whether it passed, T for pass, F for fail.
|
|
33
|
+
*
|
|
18
34
|
* @example
|
|
19
35
|
* T
|
|
20
36
|
*/
|
|
21
37
|
passed?: string;
|
|
22
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* Description of the authentication result. For details, see the SubCode explanation below.
|
|
41
|
+
*
|
|
23
42
|
* @example
|
|
24
43
|
* 200
|
|
25
44
|
*/
|
|
@@ -55,20 +74,33 @@ export class ContrastFaceVerifyResponseBodyResultObject extends $dara.Model {
|
|
|
55
74
|
|
|
56
75
|
export class ContrastFaceVerifyResponseBody extends $dara.Model {
|
|
57
76
|
/**
|
|
77
|
+
* @remarks
|
|
78
|
+
* Return code: 200 for success, others for failure.
|
|
79
|
+
*
|
|
58
80
|
* @example
|
|
59
81
|
* 200
|
|
60
82
|
*/
|
|
61
83
|
code?: string;
|
|
62
84
|
/**
|
|
85
|
+
* @remarks
|
|
86
|
+
* Error message.
|
|
87
|
+
*
|
|
63
88
|
* @example
|
|
64
89
|
* success
|
|
65
90
|
*/
|
|
66
91
|
message?: string;
|
|
67
92
|
/**
|
|
93
|
+
* @remarks
|
|
94
|
+
* Request ID.
|
|
95
|
+
*
|
|
68
96
|
* @example
|
|
69
97
|
* 130A2C10-B9EE-4D84-88E3-5384FF039795
|
|
70
98
|
*/
|
|
71
99
|
requestId?: string;
|
|
100
|
+
/**
|
|
101
|
+
* @remarks
|
|
102
|
+
* Request result
|
|
103
|
+
*/
|
|
72
104
|
resultObject?: ContrastFaceVerifyResponseBodyResultObject;
|
|
73
105
|
static names(): { [key: string]: string } {
|
|
74
106
|
return {
|
|
@@ -4,21 +4,33 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class CreateAuthKeyRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* When the Test flag is false or empty, AuthYears is required, in years, with a range of [1,100]. A value of 100 indicates permanent authorization.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 1
|
|
9
12
|
*/
|
|
10
13
|
authYears?: number;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Business type. No more than 64 characters. Can be used to note specific business, such as different face usage scenarios of the access party or the customer identifier to be delivered. It is recommended to pass this parameter.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* FACE_TEST
|
|
14
20
|
*/
|
|
15
21
|
bizType?: string;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* Test flag. If true, it indicates using test authorization with a default duration of 30 days; if false, the authorization duration will be based on AuthYears.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* false
|
|
19
28
|
*/
|
|
20
29
|
test?: boolean;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* User device ID. No more than 64 characters. Can be used to identify a specific device, and it is suggested to use the physical number of the device. It is recommended to pass this parameter.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* 3iJ1AY$oHcu7mC69
|
|
24
36
|
*/
|
|
@@ -4,11 +4,17 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class CreateAuthKeyResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The key that can be used for authorization activation. The authorization key is valid for 30 minutes and cannot be reused. It is recommended to re-obtain it before each activation.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* auth.1KQMcnLd4m37LN2D0F0WCD-1qtQI$
|
|
9
12
|
*/
|
|
10
13
|
authKey?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The ID of this request.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
|
|
14
20
|
*/
|
|
@@ -5,11 +5,18 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class CreateVerifySettingRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* Verification scenario name, supporting Chinese, English, numbers, and hyphens (-), with a maximum of 20 characters.
|
|
9
|
+
*
|
|
8
10
|
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* 用户注册
|
|
9
14
|
*/
|
|
10
15
|
bizName?: string;
|
|
11
16
|
/**
|
|
12
17
|
* @remarks
|
|
18
|
+
* Verification scenario identifier, supporting English letters, numbers, and hyphens (-), with a maximum of 20 characters.
|
|
19
|
+
*
|
|
13
20
|
* This parameter is required.
|
|
14
21
|
*
|
|
15
22
|
* @example
|
|
@@ -17,22 +24,33 @@ export class CreateVerifySettingRequest extends $dara.Model {
|
|
|
17
24
|
*/
|
|
18
25
|
bizType?: string;
|
|
19
26
|
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* Whether to use the system\\"s default guide page.
|
|
29
|
+
*
|
|
20
30
|
* @example
|
|
21
31
|
* false
|
|
22
32
|
*/
|
|
23
33
|
guideStep?: boolean;
|
|
24
34
|
/**
|
|
35
|
+
* @remarks
|
|
36
|
+
* Whether to use the system\\"s default authorization page.
|
|
37
|
+
*
|
|
25
38
|
* @example
|
|
26
39
|
* true
|
|
27
40
|
*/
|
|
28
41
|
privacyStep?: boolean;
|
|
29
42
|
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* Whether to use the system\\"s default result page.
|
|
45
|
+
*
|
|
30
46
|
* @example
|
|
31
47
|
* false
|
|
32
48
|
*/
|
|
33
49
|
resultStep?: boolean;
|
|
34
50
|
/**
|
|
35
51
|
* @remarks
|
|
52
|
+
* The name of the authentication solution to use, such as **RPBasic**, **RPBioOnly**, etc. For all supported authentication solutions, see [Authentication Solutions](https://help.aliyun.com/document_detail/127521.html).
|
|
53
|
+
*
|
|
36
54
|
* This parameter is required.
|
|
37
55
|
*
|
|
38
56
|
* @example
|
|
@@ -3,22 +3,42 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class CreateVerifySettingResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Verification scenario name.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 用户注册
|
|
12
|
+
*/
|
|
6
13
|
bizName?: string;
|
|
7
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* Verification scenario identifier.
|
|
17
|
+
*
|
|
8
18
|
* @example
|
|
9
19
|
* UserRegister
|
|
10
20
|
*/
|
|
11
21
|
bizType?: string;
|
|
12
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* ID of this request.
|
|
25
|
+
*
|
|
13
26
|
* @example
|
|
14
27
|
* D6163397-15C5-419C-9ACC-B7C83E0B4C10
|
|
15
28
|
*/
|
|
16
29
|
requestId?: string;
|
|
17
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* Authentication solution name.
|
|
33
|
+
*
|
|
18
34
|
* @example
|
|
19
35
|
* RPBasic
|
|
20
36
|
*/
|
|
21
37
|
solution?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* Authentication steps
|
|
41
|
+
*/
|
|
22
42
|
stepList?: string[];
|
|
23
43
|
static names(): { [key: string]: string } {
|
|
24
44
|
return {
|