@alicloud/cloudauth20190307 3.9.4 → 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 +393 -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 +348 -0
- package/dist/models/InitFaceVerifyRequest.js +2 -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 +407 -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 +350 -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,7 +3,23 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class CredentialVerifyRequestMerchantDetail extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The private key of the certificate.
|
|
9
|
+
*
|
|
10
|
+
* > If this parameter is specified, you must also specify **CertName** and **Cert**. If **CertName**, **Cert**, and **Key** are specified, you do not need to specify **CertId**.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* keyword
|
|
14
|
+
*/
|
|
6
15
|
key?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* Keyword value.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* -
|
|
22
|
+
*/
|
|
7
23
|
value?: string;
|
|
8
24
|
static names(): { [key: string]: string } {
|
|
9
25
|
return {
|
|
@@ -30,50 +46,166 @@ export class CredentialVerifyRequestMerchantDetail extends $dara.Model {
|
|
|
30
46
|
|
|
31
47
|
export class CredentialVerifyRequest extends $dara.Model {
|
|
32
48
|
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* Relevant certificate number.
|
|
51
|
+
*
|
|
33
52
|
* @example
|
|
34
53
|
* 4601*****
|
|
35
54
|
*/
|
|
36
55
|
certNum?: string;
|
|
37
56
|
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* - 01: Personal ID cards
|
|
59
|
+
* - **0101**: ID card
|
|
60
|
+
* - **0102**: Bank card
|
|
61
|
+
* - **0104**: Teacher qualification certificate
|
|
62
|
+
* - **0107**: Student ID card
|
|
63
|
+
* - 02: Business scenario
|
|
64
|
+
* - **0201**: Storefront photo
|
|
65
|
+
* - **0202**: Counter photo
|
|
66
|
+
* - **0203**: Scene photo
|
|
67
|
+
* - 03: Corporate qualifications
|
|
68
|
+
* - **0301**: Business license
|
|
69
|
+
*
|
|
38
70
|
* @example
|
|
39
71
|
* 0104
|
|
40
72
|
*/
|
|
41
73
|
credName?: string;
|
|
42
74
|
/**
|
|
75
|
+
* @remarks
|
|
76
|
+
* Credential type:
|
|
77
|
+
*
|
|
78
|
+
* - 01: Personal ID cards
|
|
79
|
+
* - 02: Business scenario
|
|
80
|
+
* - 03: Corporate qualifications
|
|
81
|
+
*
|
|
43
82
|
* @example
|
|
44
83
|
* 01
|
|
45
84
|
*/
|
|
46
85
|
credType?: string;
|
|
47
86
|
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* ID number:
|
|
89
|
+
*
|
|
90
|
+
* Note
|
|
91
|
+
* Only supports the ID numbers of second-generation resident IDs and Hong Kong, Macao, and Taiwan residence permits.
|
|
92
|
+
*
|
|
93
|
+
* - When paramType is normal: enter the plaintext ID number.
|
|
94
|
+
*
|
|
95
|
+
* - When paramType is md5: first 6 digits of the ID number (plaintext) + date of birth (ciphertext) + last 4 digits of the ID number (plaintext).
|
|
96
|
+
*
|
|
48
97
|
* @example
|
|
49
98
|
* 429001********8211
|
|
50
99
|
*/
|
|
51
100
|
identifyNum?: string;
|
|
52
101
|
/**
|
|
102
|
+
* @remarks
|
|
103
|
+
* Base64 encoded image, choose one from `imageUrl`, `imageFile`, or `imageContext`.
|
|
104
|
+
*
|
|
53
105
|
* @example
|
|
54
106
|
* base64
|
|
55
107
|
*/
|
|
56
108
|
imageContext?: string;
|
|
57
109
|
/**
|
|
110
|
+
* @remarks
|
|
111
|
+
* Image URL, choose one from `imageUrl`, `imageFile`, or `imageContext`.
|
|
112
|
+
*
|
|
58
113
|
* @example
|
|
59
114
|
* http://marry.momocdn.com/avatar/3B/B6/3BB6527E-7467-926E-1048-B43614F20CC420230803_L.jpg
|
|
60
115
|
*/
|
|
61
116
|
imageUrl?: string;
|
|
62
117
|
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* Whether to enable authoritative authentication
|
|
120
|
+
*
|
|
121
|
+
* - ****0****: No
|
|
122
|
+
* - **1**: Yes
|
|
123
|
+
*
|
|
63
124
|
* @example
|
|
64
125
|
* 0
|
|
65
126
|
*/
|
|
66
127
|
isCheck?: string;
|
|
67
128
|
/**
|
|
129
|
+
* @remarks
|
|
130
|
+
* Whether to enable OCR recognition.
|
|
131
|
+
*
|
|
132
|
+
* - **0**: No
|
|
133
|
+
* - **1**: Yes
|
|
134
|
+
*
|
|
135
|
+
* > IsOCR can be set to 1 only when **CredType** is 01.
|
|
136
|
+
*
|
|
68
137
|
* @example
|
|
69
138
|
* 1
|
|
70
139
|
*/
|
|
71
140
|
isOCR?: string;
|
|
141
|
+
/**
|
|
142
|
+
* @remarks
|
|
143
|
+
* Merchant details:
|
|
144
|
+
*
|
|
145
|
+
*
|
|
146
|
+
* > This field is required when PromptModel is set to DEFAULT.
|
|
147
|
+
*/
|
|
72
148
|
merchantDetail?: CredentialVerifyRequestMerchantDetail[];
|
|
149
|
+
/**
|
|
150
|
+
* @remarks
|
|
151
|
+
* Merchant ID.
|
|
152
|
+
*
|
|
153
|
+
* > This field is required when ****CredName**** is set to **02**.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* 913100********KW8P
|
|
157
|
+
*/
|
|
73
158
|
merchantId?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @remarks
|
|
161
|
+
* Invocation mode:
|
|
162
|
+
*
|
|
163
|
+
* - **ANTI_FAKE_CHECK**: Image anti-forgery check
|
|
164
|
+
*
|
|
165
|
+
* - **ANTI_FAKE_VL**: Image anti-forgery check and semantic understanding
|
|
166
|
+
*
|
|
167
|
+
* - **IMAGE_VL_COG**: Image semantic understanding
|
|
168
|
+
*
|
|
169
|
+
* Default value: ANTI_FAKE_CHECK
|
|
170
|
+
*
|
|
171
|
+
* > When **CredType** is set to 02, **ProductCode** can only be ANTI_FAKE_VL or IMAGE_VL_COG.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ANTI_FAKE_CHECK
|
|
175
|
+
*/
|
|
74
176
|
productCode?: string;
|
|
177
|
+
/**
|
|
178
|
+
* @remarks
|
|
179
|
+
* Customer-defined prompt content for image semantic understanding.
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
* > This field is required when PromptModel is set to CUSTOM.
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* -
|
|
186
|
+
*/
|
|
75
187
|
prompt?: string;
|
|
188
|
+
/**
|
|
189
|
+
* @remarks
|
|
190
|
+
* Prompt acquisition method for image semantic understanding:
|
|
191
|
+
*
|
|
192
|
+
* - **DEFAULT**: System default
|
|
193
|
+
*
|
|
194
|
+
* - **CUSTOM**: Customer-defined
|
|
195
|
+
*
|
|
196
|
+
* > When **ProductCode** is set to **ANTI_FAKE_VL** or **IMAGE_VL_COG**, this parameter must be provided.
|
|
197
|
+
*
|
|
198
|
+
* @example
|
|
199
|
+
* DEFAULT
|
|
200
|
+
*/
|
|
76
201
|
promptModel?: string;
|
|
202
|
+
/**
|
|
203
|
+
* @remarks
|
|
204
|
+
* UserName
|
|
205
|
+
*
|
|
206
|
+
* @example
|
|
207
|
+
* 张*
|
|
208
|
+
*/
|
|
77
209
|
userName?: string;
|
|
78
210
|
static names(): { [key: string]: string } {
|
|
79
211
|
return {
|
|
@@ -3,7 +3,28 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class CredentialVerifyResponseBodyResultObjectVlResult extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Indicates whether the call was successful. Valid values:
|
|
9
|
+
*
|
|
10
|
+
* - **true**: The call was successful.
|
|
11
|
+
* - **false**: The call failed.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* true
|
|
15
|
+
*/
|
|
6
16
|
success?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* Image understanding result:
|
|
20
|
+
*
|
|
21
|
+
* - When PromptModel is DEFAULT, the output format refers to the example on the right.
|
|
22
|
+
*
|
|
23
|
+
* - When PromptModel is CUSTOM, the output format follows the agreed format of the Prompt.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* {\\"这张图有没有明显的PS特征\\":0,\\"图片是否为正常经营照片\\":1,\\"图片中有没有58、美团、大众点评字样\\":0,\\"这张图有没有网站信息\\":0,\\"图片经营的场景是否为酒店\\":0}
|
|
27
|
+
*/
|
|
7
28
|
vlContent?: string;
|
|
8
29
|
static names(): { [key: string]: string } {
|
|
9
30
|
return {
|
|
@@ -29,29 +50,98 @@ export class CredentialVerifyResponseBodyResultObjectVlResult extends $dara.Mode
|
|
|
29
50
|
}
|
|
30
51
|
|
|
31
52
|
export class CredentialVerifyResponseBodyResultObject extends $dara.Model {
|
|
53
|
+
/**
|
|
54
|
+
* @remarks
|
|
55
|
+
* Additional information in JSON format.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* {
|
|
59
|
+
*
|
|
60
|
+
* "sameBackgroundDetail": {
|
|
61
|
+
*
|
|
62
|
+
* // 相似背景对于的原始图请求RequestId
|
|
63
|
+
*
|
|
64
|
+
* "originalRequestId": "130A2C10-B9EE-4D84-88E3-5384FF03****";
|
|
65
|
+
*
|
|
66
|
+
* // 相似背景对于的原始图请求商户ID
|
|
67
|
+
*
|
|
68
|
+
* "originalMerchantId": "xxxxxxxx"
|
|
69
|
+
*
|
|
70
|
+
* }
|
|
71
|
+
*
|
|
72
|
+
* }
|
|
73
|
+
*/
|
|
32
74
|
materialInfo?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* OCR recognition result.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* {
|
|
81
|
+
* "certNo":"20216*********",
|
|
82
|
+
* "certType":"小学教师资格",
|
|
83
|
+
* "gender":"男",
|
|
84
|
+
* "subject":"美术",
|
|
85
|
+
* "name":"李**",
|
|
86
|
+
* "ext_info":"{}",
|
|
87
|
+
* "birthDate":"1998-07-28",
|
|
88
|
+
* "idNo":"620************",
|
|
89
|
+
* "certOrg":""
|
|
90
|
+
* }
|
|
91
|
+
*/
|
|
33
92
|
ocrInfo?: string;
|
|
34
93
|
/**
|
|
94
|
+
* @remarks
|
|
95
|
+
* Risk result
|
|
96
|
+
*
|
|
97
|
+
* - **0**: Low risk
|
|
98
|
+
* - **1**: High risk
|
|
99
|
+
* - **2**: Suspicious
|
|
100
|
+
*
|
|
35
101
|
* @example
|
|
36
102
|
* 1
|
|
37
103
|
*/
|
|
38
104
|
result?: string;
|
|
105
|
+
/**
|
|
106
|
+
* @remarks
|
|
107
|
+
* Risk score map.
|
|
108
|
+
*/
|
|
39
109
|
riskScore?: { [key: string]: string };
|
|
40
110
|
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* Risk tags, separated by commas (,), including:
|
|
113
|
+
*
|
|
114
|
+
* - **PS**: Image manipulation.
|
|
115
|
+
* - **SCREEN_PHOTO**: Screen recapture.
|
|
116
|
+
* - **SCREENSHOT**: Screenshot.
|
|
117
|
+
* - **WATERMARK**: Watermark.
|
|
118
|
+
* - **SAME_BACKGROUND**: Similar background.
|
|
119
|
+
* - **ORIGINAL_PHOTO**: Not the original image
|
|
120
|
+
*
|
|
41
121
|
* @example
|
|
42
122
|
* PS,SCREEN_PHOTO
|
|
43
123
|
*/
|
|
44
124
|
riskTag?: string;
|
|
45
125
|
/**
|
|
126
|
+
* @remarks
|
|
127
|
+
* Authority verification details.
|
|
128
|
+
*
|
|
46
129
|
* @example
|
|
47
130
|
* **
|
|
48
131
|
*/
|
|
49
132
|
verifyDetail?: string;
|
|
50
133
|
/**
|
|
134
|
+
* @remarks
|
|
135
|
+
* The verification result.
|
|
136
|
+
*
|
|
51
137
|
* @example
|
|
52
138
|
* *
|
|
53
139
|
*/
|
|
54
140
|
verifyResult?: string;
|
|
141
|
+
/**
|
|
142
|
+
* @remarks
|
|
143
|
+
* Qwen interpretation.
|
|
144
|
+
*/
|
|
55
145
|
vlResult?: CredentialVerifyResponseBodyResultObjectVlResult;
|
|
56
146
|
static names(): { [key: string]: string } {
|
|
57
147
|
return {
|
|
@@ -96,20 +186,33 @@ export class CredentialVerifyResponseBodyResultObject extends $dara.Model {
|
|
|
96
186
|
|
|
97
187
|
export class CredentialVerifyResponseBody extends $dara.Model {
|
|
98
188
|
/**
|
|
189
|
+
* @remarks
|
|
190
|
+
* Return code: 200 for success, others for failure.
|
|
191
|
+
*
|
|
99
192
|
* @example
|
|
100
193
|
* 200
|
|
101
194
|
*/
|
|
102
195
|
code?: string;
|
|
103
196
|
/**
|
|
197
|
+
* @remarks
|
|
198
|
+
* Return message.
|
|
199
|
+
*
|
|
104
200
|
* @example
|
|
105
201
|
* success
|
|
106
202
|
*/
|
|
107
203
|
message?: string;
|
|
108
204
|
/**
|
|
205
|
+
* @remarks
|
|
206
|
+
* Request ID.
|
|
207
|
+
*
|
|
109
208
|
* @example
|
|
110
209
|
* D6163397-15C5-419C-9ACC-B7C83E0B4C10
|
|
111
210
|
*/
|
|
112
211
|
requestId?: string;
|
|
212
|
+
/**
|
|
213
|
+
* @remarks
|
|
214
|
+
* Returned result
|
|
215
|
+
*/
|
|
113
216
|
resultObject?: CredentialVerifyResponseBodyResultObject;
|
|
114
217
|
static names(): { [key: string]: string } {
|
|
115
218
|
return {
|
|
@@ -4,50 +4,166 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class CredentialVerifyShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Relevant certificate number.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* 4601*****
|
|
9
12
|
*/
|
|
10
13
|
certNum?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* - 01: Personal ID cards
|
|
17
|
+
* - **0101**: ID card
|
|
18
|
+
* - **0102**: Bank card
|
|
19
|
+
* - **0104**: Teacher qualification certificate
|
|
20
|
+
* - **0107**: Student ID card
|
|
21
|
+
* - 02: Business scenario
|
|
22
|
+
* - **0201**: Storefront photo
|
|
23
|
+
* - **0202**: Counter photo
|
|
24
|
+
* - **0203**: Scene photo
|
|
25
|
+
* - 03: Corporate qualifications
|
|
26
|
+
* - **0301**: Business license
|
|
27
|
+
*
|
|
12
28
|
* @example
|
|
13
29
|
* 0104
|
|
14
30
|
*/
|
|
15
31
|
credName?: string;
|
|
16
32
|
/**
|
|
33
|
+
* @remarks
|
|
34
|
+
* Credential type:
|
|
35
|
+
*
|
|
36
|
+
* - 01: Personal ID cards
|
|
37
|
+
* - 02: Business scenario
|
|
38
|
+
* - 03: Corporate qualifications
|
|
39
|
+
*
|
|
17
40
|
* @example
|
|
18
41
|
* 01
|
|
19
42
|
*/
|
|
20
43
|
credType?: string;
|
|
21
44
|
/**
|
|
45
|
+
* @remarks
|
|
46
|
+
* ID number:
|
|
47
|
+
*
|
|
48
|
+
* Note
|
|
49
|
+
* Only supports the ID numbers of second-generation resident IDs and Hong Kong, Macao, and Taiwan residence permits.
|
|
50
|
+
*
|
|
51
|
+
* - When paramType is normal: enter the plaintext ID number.
|
|
52
|
+
*
|
|
53
|
+
* - When paramType is md5: first 6 digits of the ID number (plaintext) + date of birth (ciphertext) + last 4 digits of the ID number (plaintext).
|
|
54
|
+
*
|
|
22
55
|
* @example
|
|
23
56
|
* 429001********8211
|
|
24
57
|
*/
|
|
25
58
|
identifyNum?: string;
|
|
26
59
|
/**
|
|
60
|
+
* @remarks
|
|
61
|
+
* Base64 encoded image, choose one from `imageUrl`, `imageFile`, or `imageContext`.
|
|
62
|
+
*
|
|
27
63
|
* @example
|
|
28
64
|
* base64
|
|
29
65
|
*/
|
|
30
66
|
imageContext?: string;
|
|
31
67
|
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* Image URL, choose one from `imageUrl`, `imageFile`, or `imageContext`.
|
|
70
|
+
*
|
|
32
71
|
* @example
|
|
33
72
|
* http://marry.momocdn.com/avatar/3B/B6/3BB6527E-7467-926E-1048-B43614F20CC420230803_L.jpg
|
|
34
73
|
*/
|
|
35
74
|
imageUrl?: string;
|
|
36
75
|
/**
|
|
76
|
+
* @remarks
|
|
77
|
+
* Whether to enable authoritative authentication
|
|
78
|
+
*
|
|
79
|
+
* - ****0****: No
|
|
80
|
+
* - **1**: Yes
|
|
81
|
+
*
|
|
37
82
|
* @example
|
|
38
83
|
* 0
|
|
39
84
|
*/
|
|
40
85
|
isCheck?: string;
|
|
41
86
|
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* Whether to enable OCR recognition.
|
|
89
|
+
*
|
|
90
|
+
* - **0**: No
|
|
91
|
+
* - **1**: Yes
|
|
92
|
+
*
|
|
93
|
+
* > IsOCR can be set to 1 only when **CredType** is 01.
|
|
94
|
+
*
|
|
42
95
|
* @example
|
|
43
96
|
* 1
|
|
44
97
|
*/
|
|
45
98
|
isOCR?: string;
|
|
99
|
+
/**
|
|
100
|
+
* @remarks
|
|
101
|
+
* Merchant details:
|
|
102
|
+
*
|
|
103
|
+
*
|
|
104
|
+
* > This field is required when PromptModel is set to DEFAULT.
|
|
105
|
+
*/
|
|
46
106
|
merchantDetailShrink?: string;
|
|
107
|
+
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* Merchant ID.
|
|
110
|
+
*
|
|
111
|
+
* > This field is required when ****CredName**** is set to **02**.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* 913100********KW8P
|
|
115
|
+
*/
|
|
47
116
|
merchantId?: string;
|
|
117
|
+
/**
|
|
118
|
+
* @remarks
|
|
119
|
+
* Invocation mode:
|
|
120
|
+
*
|
|
121
|
+
* - **ANTI_FAKE_CHECK**: Image anti-forgery check
|
|
122
|
+
*
|
|
123
|
+
* - **ANTI_FAKE_VL**: Image anti-forgery check and semantic understanding
|
|
124
|
+
*
|
|
125
|
+
* - **IMAGE_VL_COG**: Image semantic understanding
|
|
126
|
+
*
|
|
127
|
+
* Default value: ANTI_FAKE_CHECK
|
|
128
|
+
*
|
|
129
|
+
* > When **CredType** is set to 02, **ProductCode** can only be ANTI_FAKE_VL or IMAGE_VL_COG.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ANTI_FAKE_CHECK
|
|
133
|
+
*/
|
|
48
134
|
productCode?: string;
|
|
135
|
+
/**
|
|
136
|
+
* @remarks
|
|
137
|
+
* Customer-defined prompt content for image semantic understanding.
|
|
138
|
+
*
|
|
139
|
+
*
|
|
140
|
+
* > This field is required when PromptModel is set to CUSTOM.
|
|
141
|
+
*
|
|
142
|
+
* @example
|
|
143
|
+
* -
|
|
144
|
+
*/
|
|
49
145
|
prompt?: string;
|
|
146
|
+
/**
|
|
147
|
+
* @remarks
|
|
148
|
+
* Prompt acquisition method for image semantic understanding:
|
|
149
|
+
*
|
|
150
|
+
* - **DEFAULT**: System default
|
|
151
|
+
*
|
|
152
|
+
* - **CUSTOM**: Customer-defined
|
|
153
|
+
*
|
|
154
|
+
* > When **ProductCode** is set to **ANTI_FAKE_VL** or **IMAGE_VL_COG**, this parameter must be provided.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* DEFAULT
|
|
158
|
+
*/
|
|
50
159
|
promptModel?: string;
|
|
160
|
+
/**
|
|
161
|
+
* @remarks
|
|
162
|
+
* UserName
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* 张*
|
|
166
|
+
*/
|
|
51
167
|
userName?: string;
|
|
52
168
|
static names(): { [key: string]: string } {
|
|
53
169
|
return {
|
|
@@ -5,6 +5,9 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class DescribeCardVerifyRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
+
* Authentication request ID.
|
|
9
|
+
* You must first call the initialization interface InitCardVerify to submit an authentication request in order to get the authentication request ID.
|
|
10
|
+
*
|
|
8
11
|
* This parameter is required.
|
|
9
12
|
*
|
|
10
13
|
* @example
|
|
@@ -4,14 +4,48 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class DescribeCardVerifyResponseBodyResultObject extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Identity verification result:
|
|
9
|
+
* - 1: Consistent
|
|
10
|
+
* - 2: Inconsistent
|
|
11
|
+
* - 3: No Record Found
|
|
12
|
+
*
|
|
7
13
|
* @example
|
|
8
14
|
* 1
|
|
9
15
|
*/
|
|
10
16
|
bizCode?: string;
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* Submitted ID card information for verification.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* {"address":"浙江省杭州市余杭区文一西路969号","birthDate":"19901226","certName":"张三","certNo":"1234561990122*****","nationality":"汉","authority":"xxx公安局","startDate":"20201130","endDate":"20301130"}
|
|
23
|
+
*/
|
|
11
24
|
cardInfo?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @remarks
|
|
27
|
+
* Image comparison score.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* {
|
|
31
|
+
* "verifyScore": 50.28594166529785
|
|
32
|
+
* }
|
|
33
|
+
*/
|
|
12
34
|
faceDetail?: string;
|
|
35
|
+
/**
|
|
36
|
+
* @remarks
|
|
37
|
+
* ID card information read by OCR.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* {"address":"浙江省杭州市余杭区文一西路969号","birthDate":"19901226","certName":"张三","certNo":"1234561990122*****","nationality":"汉","authority":"xxx公安局","startDate":"20201130","endDate":"20301130"}
|
|
41
|
+
*/
|
|
13
42
|
ocrCardInfo?: string;
|
|
14
43
|
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* Returned photo URLs.
|
|
46
|
+
* - certUrl Front side
|
|
47
|
+
* - certNationalUrl National emblem side
|
|
48
|
+
*
|
|
15
49
|
* @example
|
|
16
50
|
* {
|
|
17
51
|
* "certUrl": "https://cn-shanghai-aliyun-nmeta.cn-shanghai.oss.aliyuncs.com/verify/xxxxxxx/xxxxxxxxxx_ocridface_dbf2_normal.jpeg",
|
|
@@ -50,20 +84,38 @@ export class DescribeCardVerifyResponseBodyResultObject extends $dara.Model {
|
|
|
50
84
|
|
|
51
85
|
export class DescribeCardVerifyResponseBody extends $dara.Model {
|
|
52
86
|
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* Return code: 200 indicates success, all others indicate failure.
|
|
89
|
+
* Important
|
|
90
|
+
* - This parameter indicates whether the interface was called correctly. For detailed return code explanations, please refer to the error codes.
|
|
91
|
+
* - Please check the business verification results through the fields in ResultObject.
|
|
92
|
+
*
|
|
53
93
|
* @example
|
|
54
94
|
* 200
|
|
55
95
|
*/
|
|
56
96
|
code?: string;
|
|
57
97
|
/**
|
|
98
|
+
* @remarks
|
|
99
|
+
* Interface call return message.
|
|
100
|
+
* Important
|
|
101
|
+
* - This parameter only indicates whether there was an exception with the interface.
|
|
102
|
+
*
|
|
58
103
|
* @example
|
|
59
104
|
* success
|
|
60
105
|
*/
|
|
61
106
|
message?: string;
|
|
62
107
|
/**
|
|
108
|
+
* @remarks
|
|
109
|
+
* Request ID.
|
|
110
|
+
*
|
|
63
111
|
* @example
|
|
64
112
|
* 130A2C10-B9EE-4D84-88E3-5384FF03****
|
|
65
113
|
*/
|
|
66
114
|
requestId?: string;
|
|
115
|
+
/**
|
|
116
|
+
* @remarks
|
|
117
|
+
* Result object.
|
|
118
|
+
*/
|
|
67
119
|
resultObject?: DescribeCardVerifyResponseBodyResultObject;
|
|
68
120
|
static names(): { [key: string]: string } {
|
|
69
121
|
return {
|
|
@@ -4,36 +4,57 @@ import * as $dara from '@darabonba/typescript';
|
|
|
4
4
|
|
|
5
5
|
export class DescribeDeviceInfoRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Business type. No more than 64 characters.
|
|
9
|
+
*
|
|
7
10
|
* @example
|
|
8
11
|
* FACE_TEST
|
|
9
12
|
*/
|
|
10
13
|
bizType?: string;
|
|
11
14
|
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The current page number being queried.
|
|
17
|
+
*
|
|
12
18
|
* @example
|
|
13
19
|
* 1
|
|
14
20
|
*/
|
|
15
21
|
currentPage?: number;
|
|
16
22
|
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* A unique ID generated by the real-person authentication server for the access party\\"s device. This ID is only generated after the device has been successfully activated and can be obtained through the getLicenseExtraInfo function in the offline facial recognition SDK.
|
|
25
|
+
*
|
|
17
26
|
* @example
|
|
18
27
|
* wd.6ziUffspAeW5FVYbaqmexR-1qwNjM
|
|
19
28
|
*/
|
|
20
29
|
deviceId?: string;
|
|
21
30
|
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* The end time of the query, i.e., querying authorizations that will expire between ExpiredStartDay and ExpiredEndDay.
|
|
33
|
+
*
|
|
22
34
|
* @example
|
|
23
35
|
* 20200330
|
|
24
36
|
*/
|
|
25
37
|
expiredEndDay?: string;
|
|
26
38
|
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* The start time of the query, i.e., querying authorizations that will expire between ExpiredStartDay and ExpiredEndDay.
|
|
41
|
+
*
|
|
27
42
|
* @example
|
|
28
43
|
* 20190401
|
|
29
44
|
*/
|
|
30
45
|
expiredStartDay?: string;
|
|
31
46
|
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* Number of items per page in the query.
|
|
49
|
+
*
|
|
32
50
|
* @example
|
|
33
51
|
* 20
|
|
34
52
|
*/
|
|
35
53
|
pageSize?: number;
|
|
36
54
|
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* No more than 64 characters, defined by the access party, which can be used to identify a specific device.
|
|
57
|
+
*
|
|
37
58
|
* @example
|
|
38
59
|
* 3iJ1AY$oHcu7mC69
|
|
39
60
|
*/
|