@alicloud/cloudauth20190307 3.9.5 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/dist/client.d.ts +271 -10
  2. package/dist/client.js +390 -10
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ContrastFaceVerifyAdvanceRequest.d.ts +93 -0
  5. package/dist/models/ContrastFaceVerifyAdvanceRequest.js.map +1 -1
  6. package/dist/models/ContrastFaceVerifyRequest.d.ts +93 -0
  7. package/dist/models/ContrastFaceVerifyRequest.js.map +1 -1
  8. package/dist/models/ContrastFaceVerifyResponseBody.d.ts +32 -0
  9. package/dist/models/ContrastFaceVerifyResponseBody.js.map +1 -1
  10. package/dist/models/CreateAuthKeyRequest.d.ts +12 -0
  11. package/dist/models/CreateAuthKeyRequest.js.map +1 -1
  12. package/dist/models/CreateAuthKeyResponseBody.d.ts +6 -0
  13. package/dist/models/CreateAuthKeyResponseBody.js.map +1 -1
  14. package/dist/models/CreateVerifySettingRequest.d.ts +18 -0
  15. package/dist/models/CreateVerifySettingRequest.js.map +1 -1
  16. package/dist/models/CreateVerifySettingResponseBody.d.ts +20 -0
  17. package/dist/models/CreateVerifySettingResponseBody.js.map +1 -1
  18. package/dist/models/CredentialVerifyRequest.d.ts +132 -0
  19. package/dist/models/CredentialVerifyRequest.js.map +1 -1
  20. package/dist/models/CredentialVerifyResponseBody.d.ts +103 -0
  21. package/dist/models/CredentialVerifyResponseBody.js.map +1 -1
  22. package/dist/models/CredentialVerifyShrinkRequest.d.ts +116 -0
  23. package/dist/models/CredentialVerifyShrinkRequest.js.map +1 -1
  24. package/dist/models/DescribeCardVerifyRequest.d.ts +3 -0
  25. package/dist/models/DescribeCardVerifyRequest.js.map +1 -1
  26. package/dist/models/DescribeCardVerifyResponseBody.d.ts +52 -0
  27. package/dist/models/DescribeCardVerifyResponseBody.js.map +1 -1
  28. package/dist/models/DescribeDeviceInfoRequest.d.ts +21 -0
  29. package/dist/models/DescribeDeviceInfoRequest.js.map +1 -1
  30. package/dist/models/DescribeDeviceInfoResponseBody.d.ts +31 -0
  31. package/dist/models/DescribeDeviceInfoResponseBody.js.map +1 -1
  32. package/dist/models/DescribeFaceGuardRiskRequest.d.ts +14 -0
  33. package/dist/models/DescribeFaceGuardRiskRequest.js.map +1 -1
  34. package/dist/models/DescribeFaceGuardRiskResponseBody.d.ts +32 -1
  35. package/dist/models/DescribeFaceGuardRiskResponseBody.js.map +1 -1
  36. package/dist/models/DescribeFaceVerifyRequest.d.ts +9 -0
  37. package/dist/models/DescribeFaceVerifyRequest.js.map +1 -1
  38. package/dist/models/DescribeFaceVerifyResponseBody.d.ts +59 -0
  39. package/dist/models/DescribeFaceVerifyResponseBody.js.map +1 -1
  40. package/dist/models/DescribeOssUploadTokenResponseBody.d.ts +28 -0
  41. package/dist/models/DescribeOssUploadTokenResponseBody.js.map +1 -1
  42. package/dist/models/DescribePageFaceVerifyDataRequest.d.ts +18 -0
  43. package/dist/models/DescribePageFaceVerifyDataRequest.js.map +1 -1
  44. package/dist/models/DescribePageFaceVerifyDataResponseBody.d.ts +50 -0
  45. package/dist/models/DescribePageFaceVerifyDataResponseBody.js.map +1 -1
  46. package/dist/models/DescribeSmartStatisticsPageListRequest.d.ts +13 -0
  47. package/dist/models/DescribeSmartStatisticsPageListRequest.js.map +1 -1
  48. package/dist/models/DescribeSmartStatisticsPageListResponseBody.d.ts +44 -0
  49. package/dist/models/DescribeSmartStatisticsPageListResponseBody.js.map +1 -1
  50. package/dist/models/DescribeVerifyResultRequest.d.ts +4 -0
  51. package/dist/models/DescribeVerifyResultRequest.js.map +1 -1
  52. package/dist/models/DescribeVerifyResultResponseBody.d.ts +125 -0
  53. package/dist/models/DescribeVerifyResultResponseBody.js.map +1 -1
  54. package/dist/models/DescribeVerifySdkrequest.d.ts +2 -0
  55. package/dist/models/DescribeVerifySdkrequest.js.map +1 -1
  56. package/dist/models/DescribeVerifySdkresponseBody.d.ts +6 -0
  57. package/dist/models/DescribeVerifySdkresponseBody.js.map +1 -1
  58. package/dist/models/DescribeVerifyTokenRequest.d.ts +49 -0
  59. package/dist/models/DescribeVerifyTokenRequest.js.map +1 -1
  60. package/dist/models/DescribeVerifyTokenResponseBody.d.ts +34 -0
  61. package/dist/models/DescribeVerifyTokenResponseBody.js.map +1 -1
  62. package/dist/models/DetectFaceAttributesRequest.d.ts +5 -0
  63. package/dist/models/DetectFaceAttributesRequest.js.map +1 -1
  64. package/dist/models/DetectFaceAttributesResponseBody.d.ts +100 -0
  65. package/dist/models/DetectFaceAttributesResponseBody.js.map +1 -1
  66. package/dist/models/Id3metaVerifyAdvanceRequest.d.ts +87 -0
  67. package/dist/models/Id3metaVerifyAdvanceRequest.js +67 -0
  68. package/dist/models/Id3metaVerifyAdvanceRequest.js.map +1 -0
  69. package/dist/models/Id3metaVerifyRequest.d.ts +86 -0
  70. package/dist/models/Id3metaVerifyRequest.js +68 -0
  71. package/dist/models/Id3metaVerifyRequest.js.map +1 -0
  72. package/dist/models/Id3metaVerifyResponse.d.ts +19 -0
  73. package/dist/models/Id3metaVerifyResponse.js +69 -0
  74. package/dist/models/Id3metaVerifyResponse.js.map +1 -0
  75. package/dist/models/Id3metaVerifyResponseBody.d.ts +83 -0
  76. package/dist/models/Id3metaVerifyResponseBody.js +88 -0
  77. package/dist/models/Id3metaVerifyResponseBody.js.map +1 -0
  78. package/dist/models/InitFaceVerifyRequest.d.ts +347 -0
  79. package/dist/models/InitFaceVerifyRequest.js.map +1 -1
  80. package/dist/models/InitFaceVerifyResponseBody.d.ts +32 -0
  81. package/dist/models/InitFaceVerifyResponseBody.js.map +1 -1
  82. package/dist/models/LivenessFaceVerifyRequest.d.ts +46 -0
  83. package/dist/models/LivenessFaceVerifyRequest.js.map +1 -1
  84. package/dist/models/LivenessFaceVerifyResponseBody.d.ts +29 -0
  85. package/dist/models/LivenessFaceVerifyResponseBody.js.map +1 -1
  86. package/dist/models/VerifyMaterialRequest.d.ts +24 -0
  87. package/dist/models/VerifyMaterialRequest.js.map +1 -1
  88. package/dist/models/VerifyMaterialResponseBody.d.ts +118 -0
  89. package/dist/models/VerifyMaterialResponseBody.js.map +1 -1
  90. package/dist/models/model.d.ts +5 -0
  91. package/dist/models/model.js +15 -5
  92. package/dist/models/model.js.map +1 -1
  93. package/package.json +1 -1
  94. package/src/client.ts +403 -10
  95. package/src/models/ContrastFaceVerifyAdvanceRequest.ts +93 -0
  96. package/src/models/ContrastFaceVerifyRequest.ts +93 -0
  97. package/src/models/ContrastFaceVerifyResponseBody.ts +32 -0
  98. package/src/models/CreateAuthKeyRequest.ts +12 -0
  99. package/src/models/CreateAuthKeyResponseBody.ts +6 -0
  100. package/src/models/CreateVerifySettingRequest.ts +18 -0
  101. package/src/models/CreateVerifySettingResponseBody.ts +20 -0
  102. package/src/models/CredentialVerifyRequest.ts +132 -0
  103. package/src/models/CredentialVerifyResponseBody.ts +103 -0
  104. package/src/models/CredentialVerifyShrinkRequest.ts +116 -0
  105. package/src/models/DescribeCardVerifyRequest.ts +3 -0
  106. package/src/models/DescribeCardVerifyResponseBody.ts +52 -0
  107. package/src/models/DescribeDeviceInfoRequest.ts +21 -0
  108. package/src/models/DescribeDeviceInfoResponseBody.ts +31 -0
  109. package/src/models/DescribeFaceGuardRiskRequest.ts +14 -0
  110. package/src/models/DescribeFaceGuardRiskResponseBody.ts +32 -1
  111. package/src/models/DescribeFaceVerifyRequest.ts +9 -0
  112. package/src/models/DescribeFaceVerifyResponseBody.ts +59 -0
  113. package/src/models/DescribeOssUploadTokenResponseBody.ts +28 -0
  114. package/src/models/DescribePageFaceVerifyDataRequest.ts +18 -0
  115. package/src/models/DescribePageFaceVerifyDataResponseBody.ts +50 -0
  116. package/src/models/DescribeSmartStatisticsPageListRequest.ts +13 -0
  117. package/src/models/DescribeSmartStatisticsPageListResponseBody.ts +44 -0
  118. package/src/models/DescribeVerifyResultRequest.ts +4 -0
  119. package/src/models/DescribeVerifyResultResponseBody.ts +125 -0
  120. package/src/models/DescribeVerifySdkrequest.ts +2 -0
  121. package/src/models/DescribeVerifySdkresponseBody.ts +6 -0
  122. package/src/models/DescribeVerifyTokenRequest.ts +49 -0
  123. package/src/models/DescribeVerifyTokenResponseBody.ts +34 -0
  124. package/src/models/DetectFaceAttributesRequest.ts +5 -0
  125. package/src/models/DetectFaceAttributesResponseBody.ts +100 -0
  126. package/src/models/Id3metaVerifyAdvanceRequest.ts +110 -0
  127. package/src/models/Id3metaVerifyRequest.ts +109 -0
  128. package/src/models/Id3metaVerifyResponse.ts +40 -0
  129. package/src/models/Id3metaVerifyResponseBody.ts +117 -0
  130. package/src/models/InitFaceVerifyRequest.ts +347 -0
  131. package/src/models/InitFaceVerifyResponseBody.ts +32 -0
  132. package/src/models/LivenessFaceVerifyRequest.ts +46 -0
  133. package/src/models/LivenessFaceVerifyResponseBody.ts +29 -0
  134. package/src/models/VerifyMaterialRequest.ts +24 -0
  135. package/src/models/VerifyMaterialResponseBody.ts +118 -0
  136. package/src/models/model.ts +5 -0
@@ -4,16 +4,25 @@ import * as $dara from '@darabonba/typescript';
4
4
 
5
5
  export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfoFaceAttributesHeadpose extends $dara.Model {
6
6
  /**
7
+ * @remarks
8
+ * Pitch angle, in degrees.
9
+ *
7
10
  * @example
8
11
  * -1.5683923959732056
9
12
  */
10
13
  pitchAngle?: number;
11
14
  /**
15
+ * @remarks
16
+ * Roll angle, in degrees.
17
+ *
12
18
  * @example
13
19
  * 7.163370132446289
14
20
  */
15
21
  rollAngle?: number;
16
22
  /**
23
+ * @remarks
24
+ * Yaw angle, in degrees.
25
+ *
17
26
  * @example
18
27
  * -6.925303936004639
19
28
  */
@@ -45,11 +54,17 @@ export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectIn
45
54
 
46
55
  export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfoFaceAttributesSmiling extends $dara.Model {
47
56
  /**
57
+ * @remarks
58
+ * Smile threshold.
59
+ *
48
60
  * @example
49
61
  * 95
50
62
  */
51
63
  threshold?: number;
52
64
  /**
65
+ * @remarks
66
+ * Smile score.
67
+ *
53
68
  * @example
54
69
  * 97
55
70
  */
@@ -79,36 +94,75 @@ export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectIn
79
94
 
80
95
  export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfoFaceAttributes extends $dara.Model {
81
96
  /**
97
+ * @remarks
98
+ * Face blur level, with higher values indicating more blurriness. Typically, a value ≥2.0 is considered quite blurry. It is recommended to adjust based on actual business data testing.
99
+ *
82
100
  * @example
83
101
  * 0.1419367790222168
84
102
  */
85
103
  blur?: number;
86
104
  /**
105
+ * @remarks
106
+ * A score ranging from 0 to 100. The higher the score, the better the quality. It is recommended to consider a score of 50 or above as acceptable quality.
107
+ *
87
108
  * @example
88
109
  * 60
89
110
  */
90
111
  facequal?: number;
91
112
  /**
113
+ * @remarks
114
+ * Whether it is a human face. Values:
115
+ *
116
+ * - **None**: Not a human face
117
+ * - **Face**: Human face
118
+ * - **Profile**: Profile (head turned left or right by more than 30°)
119
+ *
120
+ * > If no face is detected, the `faceInfos` in the response will be empty; here, `None` means that a face was detected but is considered to be a cartoon, pet, etc.
121
+ *
92
122
  * @example
93
123
  * Face
94
124
  */
95
125
  facetype?: string;
96
126
  /**
127
+ * @remarks
128
+ * Whether wearing glasses. Values:
129
+ *
130
+ * - **None**: Not wearing glasses
131
+ * - **Wear**: Wearing regular glasses
132
+ * - **Sunglass**: Wearing sunglasses
133
+ *
97
134
  * @example
98
135
  * None
99
136
  */
100
137
  glasses?: string;
138
+ /**
139
+ * @remarks
140
+ * Face pose.
141
+ */
101
142
  headpose?: DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfoFaceAttributesHeadpose;
102
143
  /**
144
+ * @remarks
145
+ * A score ranging from 0 to 100. The higher the score, the more complete the face. It is recommended to consider a score of 70 or above as acceptable completeness.
146
+ *
103
147
  * @example
104
148
  * 70
105
149
  */
106
150
  integrity?: number;
107
151
  /**
152
+ * @remarks
153
+ * Whether wearing a mask. Values:
154
+ *
155
+ * - Wear: Wearing a mask.
156
+ * - None: Not wearing a mask.
157
+ *
108
158
  * @example
109
159
  * Wear
110
160
  */
111
161
  respirator?: string;
162
+ /**
163
+ * @remarks
164
+ * Whether smiling.
165
+ */
112
166
  smiling?: DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfoFaceAttributesSmiling;
113
167
  static names(): { [key: string]: string } {
114
168
  return {
@@ -153,21 +207,33 @@ export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectIn
153
207
 
154
208
  export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfoFaceRect extends $dara.Model {
155
209
  /**
210
+ * @remarks
211
+ * Height of the face rectangle.
212
+ *
156
213
  * @example
157
214
  * 473
158
215
  */
159
216
  height?: number;
160
217
  /**
218
+ * @remarks
219
+ * Distance from the top-left corner of the face rectangle to the left edge of the original image, in pixels.
220
+ *
161
221
  * @example
162
222
  * 354
163
223
  */
164
224
  left?: number;
165
225
  /**
226
+ * @remarks
227
+ * Distance from the top-left corner of the face rectangle to the top edge of the original image, in pixels.
228
+ *
166
229
  * @example
167
230
  * 453
168
231
  */
169
232
  top?: number;
170
233
  /**
234
+ * @remarks
235
+ * Width of the face rectangle.
236
+ *
171
237
  * @example
172
238
  * 473
173
239
  */
@@ -200,7 +266,15 @@ export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectIn
200
266
  }
201
267
 
202
268
  export class DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfo extends $dara.Model {
269
+ /**
270
+ * @remarks
271
+ * Face attributes.
272
+ */
203
273
  faceAttributes?: DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfoFaceAttributes;
274
+ /**
275
+ * @remarks
276
+ * Position of the face in the original image.
277
+ */
204
278
  faceRect?: DetectFaceAttributesResponseBodyDataFaceInfosFaceAttributesDetectInfoFaceRect;
205
279
  static names(): { [key: string]: string } {
206
280
  return {
@@ -258,13 +332,23 @@ export class DetectFaceAttributesResponseBodyDataFaceInfos extends $dara.Model {
258
332
  }
259
333
 
260
334
  export class DetectFaceAttributesResponseBodyData extends $dara.Model {
335
+ /**
336
+ * @remarks
337
+ * Face detection results.
338
+ */
261
339
  faceInfos?: DetectFaceAttributesResponseBodyDataFaceInfos;
262
340
  /**
341
+ * @remarks
342
+ * Original image height, in pixels.
343
+ *
263
344
  * @example
264
345
  * 1920
265
346
  */
266
347
  imgHeight?: number;
267
348
  /**
349
+ * @remarks
350
+ * Original image width, in pixels.
351
+ *
268
352
  * @example
269
353
  * 1080
270
354
  */
@@ -299,22 +383,38 @@ export class DetectFaceAttributesResponseBodyData extends $dara.Model {
299
383
 
300
384
  export class DetectFaceAttributesResponseBody extends $dara.Model {
301
385
  /**
386
+ * @remarks
387
+ * HTTP status code.
388
+ *
302
389
  * @example
303
390
  * 200
304
391
  */
305
392
  code?: string;
393
+ /**
394
+ * @remarks
395
+ * Returned data.
396
+ */
306
397
  data?: DetectFaceAttributesResponseBodyData;
307
398
  /**
399
+ * @remarks
400
+ * Error code.
401
+ *
308
402
  * @example
309
403
  * Error.InternalError
310
404
  */
311
405
  message?: string;
312
406
  /**
407
+ * @remarks
408
+ * ID of this request.
409
+ *
313
410
  * @example
314
411
  * 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E
315
412
  */
316
413
  requestId?: string;
317
414
  /**
415
+ * @remarks
416
+ * Whether the response was successful.
417
+ *
318
418
  * @example
319
419
  * true
320
420
  */
@@ -0,0 +1,110 @@
1
+ // This file is auto-generated, don't edit it
2
+ import { Readable } from 'stream';
3
+ import * as $dara from '@darabonba/typescript';
4
+
5
+
6
+ export class Id3MetaVerifyAdvanceRequest extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * Whether to allow cropping of the face image, default is not allowed.
10
+ * - T: Allow cropping.
11
+ * - F: Do not allow cropping.
12
+ *
13
+ * **Note**
14
+ *
15
+ * If the image you request is not collected from a standard liveness detection SDK, it is recommended to allow cropping of the face image. After enabling this feature, the system will first crop and correct the requested image, then initiate the service request.
16
+ *
17
+ * @example
18
+ * T
19
+ */
20
+ crop?: string;
21
+ /**
22
+ * @remarks
23
+ * Portrait side of the ID card image input stream.
24
+ * Choose one between `CertUrl` and `CertFile`.
25
+ *
26
+ * @example
27
+ * 无
28
+ */
29
+ faceFileObject?: Readable;
30
+ /**
31
+ * @remarks
32
+ * Portrait side of the ID card image.
33
+ * Accessible HTTP or HTTPS link on the public network.
34
+ * Choose one between `CertUrl` and `CertFile`.
35
+ *
36
+ * @example
37
+ * https://www.aliyun.com/cert.jpeg
38
+ */
39
+ faceUrl?: string;
40
+ /**
41
+ * @remarks
42
+ * ID number:
43
+ * - When `paramType` is `normal`: enter the plaintext ID number.
44
+ * - When `paramType` is `md5`:
45
+ * The first 6 digits (plaintext) + date of birth (ciphertext) + last 4 digits (plaintext).
46
+ *
47
+ * @example
48
+ * ● 明文:429001********8211
49
+ * ● 密文:
50
+ * 42900132fa7bcd874161bea8ec8fd98f39****8211
51
+ */
52
+ identifyNum?: string;
53
+ /**
54
+ * @remarks
55
+ * Encryption method:
56
+ * - normal: plaintext without encryption
57
+ * - md5: MD5 encryption
58
+ *
59
+ * **Important**
60
+ *
61
+ * - All encrypted parameters should be in the form of a 32-character lowercase MD5 string.
62
+ * - The ciphertext generated by different MD5 tools may vary. If the interface works before encryption but not after, try changing the MD5 tool.
63
+ *
64
+ * @example
65
+ * normal
66
+ */
67
+ paramType?: string;
68
+ /**
69
+ * @remarks
70
+ * Name:
71
+ * - When `paramType` is `normal`: enter the plaintext name.
72
+ * - When `paramType` is `md5`: the first character of the name (ciphertext) + the rest of the name (plaintext).
73
+ *
74
+ * @example
75
+ * ● 明文:张三
76
+ * ● 密文:
77
+ * 6499fc7409049355527ef6a2ba5706b8三​
78
+ */
79
+ userName?: string;
80
+ static names(): { [key: string]: string } {
81
+ return {
82
+ crop: 'Crop',
83
+ faceFileObject: 'FaceFile',
84
+ faceUrl: 'FaceUrl',
85
+ identifyNum: 'IdentifyNum',
86
+ paramType: 'ParamType',
87
+ userName: 'UserName',
88
+ };
89
+ }
90
+
91
+ static types(): { [key: string]: any } {
92
+ return {
93
+ crop: 'string',
94
+ faceFileObject: 'Readable',
95
+ faceUrl: 'string',
96
+ identifyNum: 'string',
97
+ paramType: 'string',
98
+ userName: 'string',
99
+ };
100
+ }
101
+
102
+ validate() {
103
+ super.validate();
104
+ }
105
+
106
+ constructor(map?: { [key: string]: any }) {
107
+ super(map);
108
+ }
109
+ }
110
+
@@ -0,0 +1,109 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class Id3MetaVerifyRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Whether to allow cropping of the face image, default is not allowed.
9
+ * - T: Allow cropping.
10
+ * - F: Do not allow cropping.
11
+ *
12
+ * **Note**
13
+ *
14
+ * If the image you request is not collected from a standard liveness detection SDK, it is recommended to allow cropping of the face image. After enabling this feature, the system will first crop and correct the requested image, then initiate the service request.
15
+ *
16
+ * @example
17
+ * T
18
+ */
19
+ crop?: string;
20
+ /**
21
+ * @remarks
22
+ * Portrait side of the ID card image input stream.
23
+ * Choose one between `CertUrl` and `CertFile`.
24
+ *
25
+ * @example
26
+ * 无
27
+ */
28
+ faceFile?: string;
29
+ /**
30
+ * @remarks
31
+ * Portrait side of the ID card image.
32
+ * Accessible HTTP or HTTPS link on the public network.
33
+ * Choose one between `CertUrl` and `CertFile`.
34
+ *
35
+ * @example
36
+ * https://www.aliyun.com/cert.jpeg
37
+ */
38
+ faceUrl?: string;
39
+ /**
40
+ * @remarks
41
+ * ID number:
42
+ * - When `paramType` is `normal`: enter the plaintext ID number.
43
+ * - When `paramType` is `md5`:
44
+ * The first 6 digits (plaintext) + date of birth (ciphertext) + last 4 digits (plaintext).
45
+ *
46
+ * @example
47
+ * ● 明文:429001********8211
48
+ * ● 密文:
49
+ * 42900132fa7bcd874161bea8ec8fd98f39****8211
50
+ */
51
+ identifyNum?: string;
52
+ /**
53
+ * @remarks
54
+ * Encryption method:
55
+ * - normal: plaintext without encryption
56
+ * - md5: MD5 encryption
57
+ *
58
+ * **Important**
59
+ *
60
+ * - All encrypted parameters should be in the form of a 32-character lowercase MD5 string.
61
+ * - The ciphertext generated by different MD5 tools may vary. If the interface works before encryption but not after, try changing the MD5 tool.
62
+ *
63
+ * @example
64
+ * normal
65
+ */
66
+ paramType?: string;
67
+ /**
68
+ * @remarks
69
+ * Name:
70
+ * - When `paramType` is `normal`: enter the plaintext name.
71
+ * - When `paramType` is `md5`: the first character of the name (ciphertext) + the rest of the name (plaintext).
72
+ *
73
+ * @example
74
+ * ● 明文:张三
75
+ * ● 密文:
76
+ * 6499fc7409049355527ef6a2ba5706b8三​
77
+ */
78
+ userName?: string;
79
+ static names(): { [key: string]: string } {
80
+ return {
81
+ crop: 'Crop',
82
+ faceFile: 'FaceFile',
83
+ faceUrl: 'FaceUrl',
84
+ identifyNum: 'IdentifyNum',
85
+ paramType: 'ParamType',
86
+ userName: 'UserName',
87
+ };
88
+ }
89
+
90
+ static types(): { [key: string]: any } {
91
+ return {
92
+ crop: 'string',
93
+ faceFile: 'string',
94
+ faceUrl: 'string',
95
+ identifyNum: 'string',
96
+ paramType: 'string',
97
+ userName: 'string',
98
+ };
99
+ }
100
+
101
+ validate() {
102
+ super.validate();
103
+ }
104
+
105
+ constructor(map?: { [key: string]: any }) {
106
+ super(map);
107
+ }
108
+ }
109
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { Id3MetaVerifyResponseBody } from "./Id3metaVerifyResponseBody";
4
+
5
+
6
+ export class Id3MetaVerifyResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: Id3MetaVerifyResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: Id3MetaVerifyResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,117 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class Id3MetaVerifyResponseBodyResultObject extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Identity verification result:
9
+ *
10
+ * - 1: Consistent
11
+ * - 2: Inconsistent
12
+ * - 3: No record found
13
+ *
14
+ * @example
15
+ * 1
16
+ */
17
+ bizCode?: string;
18
+ /**
19
+ * @remarks
20
+ * Image comparison score.
21
+ *
22
+ * @example
23
+ * {
24
+ * "verifyScore": 50.28594166529785
25
+ * }
26
+ */
27
+ faceDetail?: string;
28
+ static names(): { [key: string]: string } {
29
+ return {
30
+ bizCode: 'BizCode',
31
+ faceDetail: 'FaceDetail',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ bizCode: 'string',
38
+ faceDetail: 'string',
39
+ };
40
+ }
41
+
42
+ validate() {
43
+ super.validate();
44
+ }
45
+
46
+ constructor(map?: { [key: string]: any }) {
47
+ super(map);
48
+ }
49
+ }
50
+
51
+ export class Id3MetaVerifyResponseBody extends $dara.Model {
52
+ /**
53
+ * @remarks
54
+ * Return code: 200 indicates success, others indicate failure.
55
+ * **Important**
56
+ * - This parameter indicates whether the interface was called correctly. For detailed return code explanations, please refer to the error codes.
57
+ * - Check the business verification result through the fields in `ResultObject`.
58
+ *
59
+ * @example
60
+ * 200
61
+ */
62
+ code?: string;
63
+ /**
64
+ * @remarks
65
+ * Interface call return message.
66
+ *
67
+ * **Important**
68
+ *
69
+ * This parameter only indicates whether there was an exception with the interface.
70
+ *
71
+ * @example
72
+ * success
73
+ */
74
+ message?: string;
75
+ /**
76
+ * @remarks
77
+ * Request ID.
78
+ *
79
+ * @example
80
+ * 130A2C10-B9EE-4D84-88E3-5384FF03****
81
+ */
82
+ requestId?: string;
83
+ /**
84
+ * @remarks
85
+ * Result object.
86
+ */
87
+ resultObject?: Id3MetaVerifyResponseBodyResultObject;
88
+ static names(): { [key: string]: string } {
89
+ return {
90
+ code: 'Code',
91
+ message: 'Message',
92
+ requestId: 'RequestId',
93
+ resultObject: 'ResultObject',
94
+ };
95
+ }
96
+
97
+ static types(): { [key: string]: any } {
98
+ return {
99
+ code: 'string',
100
+ message: 'string',
101
+ requestId: 'string',
102
+ resultObject: Id3MetaVerifyResponseBodyResultObject,
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ if(this.resultObject && typeof (this.resultObject as any).validate === 'function') {
108
+ (this.resultObject as any).validate();
109
+ }
110
+ super.validate();
111
+ }
112
+
113
+ constructor(map?: { [key: string]: any }) {
114
+ super(map);
115
+ }
116
+ }
117
+