@alicloud/cloudauth20190307 3.13.4 → 3.14.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 (151) hide show
  1. package/dist/client.d.ts +88 -66
  2. package/dist/client.js +243 -90
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AigcfaceVerifyRequest.d.ts +2 -2
  5. package/dist/models/AigcfaceVerifyResponseBody.d.ts +3 -3
  6. package/dist/models/CreateAntCloudAuthSceneRequest.d.ts +42 -10
  7. package/dist/models/CreateAntCloudAuthSceneRequest.js +8 -0
  8. package/dist/models/CreateAntCloudAuthSceneRequest.js.map +1 -1
  9. package/dist/models/CreateWhitelistSettingRequest.d.ts +4 -1
  10. package/dist/models/CreateWhitelistSettingRequest.js.map +1 -1
  11. package/dist/models/CreateWhitelistSettingResponseBody.d.ts +1 -1
  12. package/dist/models/DescribeFaceVerifyRequest.d.ts +1 -1
  13. package/dist/models/DescribeFaceVerifyResponseBody.d.ts +13 -5
  14. package/dist/models/DescribeFaceVerifyResponseBody.js +2 -0
  15. package/dist/models/DescribeFaceVerifyResponseBody.js.map +1 -1
  16. package/dist/models/DescribeInfoCheckExportRecordRequest.d.ts +14 -14
  17. package/dist/models/DescribeInfoCheckExportRecordResponseBody.d.ts +22 -22
  18. package/dist/models/DescribeListAntCloudAuthScenesRequest.d.ts +1 -1
  19. package/dist/models/DescribeListAntCloudAuthScenesResponseBody.d.ts +47 -15
  20. package/dist/models/DescribeListAntCloudAuthScenesResponseBody.js +8 -0
  21. package/dist/models/DescribeListAntCloudAuthScenesResponseBody.js.map +1 -1
  22. package/dist/models/DescribeListFaceVerifyInfosRequest.d.ts +1 -0
  23. package/dist/models/DescribeListFaceVerifyInfosRequest.js.map +1 -1
  24. package/dist/models/DescribeListFaceVerifyInfosResponseBody.d.ts +3 -2
  25. package/dist/models/DescribeListFaceVerifyInfosResponseBody.js.map +1 -1
  26. package/dist/models/DescribeMetaSearchPageListRequest.d.ts +22 -22
  27. package/dist/models/DescribeMetaSearchPageListResponseBody.d.ts +77 -77
  28. package/dist/models/DescribeMetaStatisticsListRequest.d.ts +3 -3
  29. package/dist/models/DescribeMetaStatisticsListResponseBody.d.ts +10 -10
  30. package/dist/models/DescribeMetaStatisticsPageListRequest.d.ts +19 -19
  31. package/dist/models/DescribeMetaStatisticsPageListResponseBody.d.ts +34 -34
  32. package/dist/models/DescribePageFaceVerifyDataRequest.d.ts +2 -2
  33. package/dist/models/DescribePageFaceVerifyDataResponseBody.d.ts +3 -3
  34. package/dist/models/DescribeVerifyDeviceRiskStatisticsRequest.d.ts +4 -4
  35. package/dist/models/DescribeVerifyDeviceRiskStatisticsResponseBody.d.ts +2 -2
  36. package/dist/models/DescribeVerifyFailStatisticsRequest.d.ts +9 -9
  37. package/dist/models/DescribeVerifyFailStatisticsResponseBody.d.ts +3 -3
  38. package/dist/models/DescribeVerifyPersonasDeviceModelStatisticsRequest.d.ts +2 -2
  39. package/dist/models/DescribeVerifyPersonasDeviceModelStatisticsResponseBody.d.ts +2 -2
  40. package/dist/models/DescribeVerifyPersonasOsStatisticsRequest.d.ts +2 -2
  41. package/dist/models/DescribeVerifyPersonasOsStatisticsResponseBody.d.ts +3 -3
  42. package/dist/models/DescribeVerifyPersonasProvinceStatisticsRequest.d.ts +2 -2
  43. package/dist/models/DescribeVerifyPersonasProvinceStatisticsResponseBody.d.ts +1 -1
  44. package/dist/models/DescribeVerifyPersonasSexStatisticsRequest.d.ts +2 -2
  45. package/dist/models/DescribeVerifyPersonasSexStatisticsResponseBody.d.ts +15 -15
  46. package/dist/models/DescribeVerifySearchPageListRequest.d.ts +24 -24
  47. package/dist/models/DescribeVerifySearchPageListResponseBody.d.ts +29 -29
  48. package/dist/models/DescribeVerifyStatisticsRequest.d.ts +4 -4
  49. package/dist/models/DescribeVerifyStatisticsResponseBody.d.ts +17 -17
  50. package/dist/models/DescribeWhitelistSettingRequest.d.ts +8 -5
  51. package/dist/models/DescribeWhitelistSettingRequest.js.map +1 -1
  52. package/dist/models/DescribeWhitelistSettingResponseBody.d.ts +6 -3
  53. package/dist/models/DescribeWhitelistSettingResponseBody.js.map +1 -1
  54. package/dist/models/Id3metaVerifyAdvanceRequest.d.ts +19 -16
  55. package/dist/models/Id3metaVerifyAdvanceRequest.js.map +1 -1
  56. package/dist/models/Id3metaVerifyProadvanceRequest.d.ts +115 -0
  57. package/dist/models/Id3metaVerifyProadvanceRequest.js +73 -0
  58. package/dist/models/Id3metaVerifyProadvanceRequest.js.map +1 -0
  59. package/dist/models/Id3metaVerifyProrequest.d.ts +114 -0
  60. package/dist/models/Id3metaVerifyProrequest.js +74 -0
  61. package/dist/models/Id3metaVerifyProrequest.js.map +1 -0
  62. package/dist/models/Id3metaVerifyProresponse.d.ts +19 -0
  63. package/dist/models/Id3metaVerifyProresponse.js +69 -0
  64. package/dist/models/Id3metaVerifyProresponse.js.map +1 -0
  65. package/dist/models/Id3metaVerifyProresponseBody.d.ts +121 -0
  66. package/dist/models/Id3metaVerifyProresponseBody.js +92 -0
  67. package/dist/models/Id3metaVerifyProresponseBody.js.map +1 -0
  68. package/dist/models/Id3metaVerifyRequest.d.ts +19 -16
  69. package/dist/models/Id3metaVerifyRequest.js.map +1 -1
  70. package/dist/models/Id3metaVerifyResponseBody.d.ts +33 -8
  71. package/dist/models/Id3metaVerifyResponseBody.js.map +1 -1
  72. package/dist/models/Id3metaVerifyWithOcradvanceRequest.d.ts +4 -4
  73. package/dist/models/Id3metaVerifyWithOcrrequest.d.ts +4 -4
  74. package/dist/models/Id3metaVerifyWithOcrresponseBody.d.ts +8 -8
  75. package/dist/models/InitFaceVerifyRequest.d.ts +68 -65
  76. package/dist/models/InitFaceVerifyRequest.js.map +1 -1
  77. package/dist/models/InitFaceVerifyResponseBody.d.ts +5 -7
  78. package/dist/models/InitFaceVerifyResponseBody.js.map +1 -1
  79. package/dist/models/PageQueryWhiteListSettingRequest.d.ts +3 -3
  80. package/dist/models/PageQueryWhiteListSettingResponseBody.d.ts +4 -4
  81. package/dist/models/QueryVerifyFlowPackageRequest.d.ts +2 -2
  82. package/dist/models/QueryVerifyFlowPackageResponseBody.d.ts +8 -8
  83. package/dist/models/QueryVerifyInvokeSatisticRequest.d.ts +7 -7
  84. package/dist/models/QueryVerifyInvokeSatisticResponseBody.d.ts +3 -3
  85. package/dist/models/UpdateAntCloudAuthSceneRequest.d.ts +41 -9
  86. package/dist/models/UpdateAntCloudAuthSceneRequest.js +8 -0
  87. package/dist/models/UpdateAntCloudAuthSceneRequest.js.map +1 -1
  88. package/dist/models/model.d.ts +5 -0
  89. package/dist/models/model.js +18 -8
  90. package/dist/models/model.js.map +1 -1
  91. package/package.json +2 -2
  92. package/src/client.ts +267 -90
  93. package/src/models/AigcfaceVerifyRequest.ts +2 -2
  94. package/src/models/AigcfaceVerifyResponseBody.ts +3 -3
  95. package/src/models/CreateAntCloudAuthSceneRequest.ts +50 -10
  96. package/src/models/CreateWhitelistSettingRequest.ts +4 -1
  97. package/src/models/CreateWhitelistSettingResponseBody.ts +1 -1
  98. package/src/models/DescribeFaceVerifyRequest.ts +1 -1
  99. package/src/models/DescribeFaceVerifyResponseBody.ts +15 -5
  100. package/src/models/DescribeInfoCheckExportRecordRequest.ts +14 -14
  101. package/src/models/DescribeInfoCheckExportRecordResponseBody.ts +22 -22
  102. package/src/models/DescribeListAntCloudAuthScenesRequest.ts +1 -1
  103. package/src/models/DescribeListAntCloudAuthScenesResponseBody.ts +55 -15
  104. package/src/models/DescribeListFaceVerifyInfosRequest.ts +1 -0
  105. package/src/models/DescribeListFaceVerifyInfosResponseBody.ts +3 -2
  106. package/src/models/DescribeMetaSearchPageListRequest.ts +22 -22
  107. package/src/models/DescribeMetaSearchPageListResponseBody.ts +77 -77
  108. package/src/models/DescribeMetaStatisticsListRequest.ts +3 -3
  109. package/src/models/DescribeMetaStatisticsListResponseBody.ts +10 -10
  110. package/src/models/DescribeMetaStatisticsPageListRequest.ts +19 -19
  111. package/src/models/DescribeMetaStatisticsPageListResponseBody.ts +34 -34
  112. package/src/models/DescribePageFaceVerifyDataRequest.ts +2 -2
  113. package/src/models/DescribePageFaceVerifyDataResponseBody.ts +3 -3
  114. package/src/models/DescribeVerifyDeviceRiskStatisticsRequest.ts +4 -4
  115. package/src/models/DescribeVerifyDeviceRiskStatisticsResponseBody.ts +2 -2
  116. package/src/models/DescribeVerifyFailStatisticsRequest.ts +9 -9
  117. package/src/models/DescribeVerifyFailStatisticsResponseBody.ts +3 -3
  118. package/src/models/DescribeVerifyPersonasDeviceModelStatisticsRequest.ts +2 -2
  119. package/src/models/DescribeVerifyPersonasDeviceModelStatisticsResponseBody.ts +2 -2
  120. package/src/models/DescribeVerifyPersonasOsStatisticsRequest.ts +2 -2
  121. package/src/models/DescribeVerifyPersonasOsStatisticsResponseBody.ts +3 -3
  122. package/src/models/DescribeVerifyPersonasProvinceStatisticsRequest.ts +2 -2
  123. package/src/models/DescribeVerifyPersonasProvinceStatisticsResponseBody.ts +1 -1
  124. package/src/models/DescribeVerifyPersonasSexStatisticsRequest.ts +2 -2
  125. package/src/models/DescribeVerifyPersonasSexStatisticsResponseBody.ts +15 -15
  126. package/src/models/DescribeVerifySearchPageListRequest.ts +24 -24
  127. package/src/models/DescribeVerifySearchPageListResponseBody.ts +29 -29
  128. package/src/models/DescribeVerifyStatisticsRequest.ts +4 -4
  129. package/src/models/DescribeVerifyStatisticsResponseBody.ts +17 -17
  130. package/src/models/DescribeWhitelistSettingRequest.ts +8 -5
  131. package/src/models/DescribeWhitelistSettingResponseBody.ts +6 -3
  132. package/src/models/Id3metaVerifyAdvanceRequest.ts +19 -16
  133. package/src/models/Id3metaVerifyProadvanceRequest.ts +144 -0
  134. package/src/models/Id3metaVerifyProrequest.ts +143 -0
  135. package/src/models/Id3metaVerifyProresponse.ts +40 -0
  136. package/src/models/Id3metaVerifyProresponseBody.ts +159 -0
  137. package/src/models/Id3metaVerifyRequest.ts +19 -16
  138. package/src/models/Id3metaVerifyResponseBody.ts +33 -8
  139. package/src/models/Id3metaVerifyWithOcradvanceRequest.ts +4 -4
  140. package/src/models/Id3metaVerifyWithOcrrequest.ts +4 -4
  141. package/src/models/Id3metaVerifyWithOcrresponseBody.ts +8 -8
  142. package/src/models/InitFaceVerifyRequest.ts +68 -65
  143. package/src/models/InitFaceVerifyResponseBody.ts +5 -7
  144. package/src/models/PageQueryWhiteListSettingRequest.ts +3 -3
  145. package/src/models/PageQueryWhiteListSettingResponseBody.ts +4 -4
  146. package/src/models/QueryVerifyFlowPackageRequest.ts +2 -2
  147. package/src/models/QueryVerifyFlowPackageResponseBody.ts +8 -8
  148. package/src/models/QueryVerifyInvokeSatisticRequest.ts +7 -7
  149. package/src/models/QueryVerifyInvokeSatisticResponseBody.ts +3 -3
  150. package/src/models/UpdateAntCloudAuthSceneRequest.ts +49 -9
  151. package/src/models/model.ts +5 -0
@@ -0,0 +1,144 @@
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 Id3MetaVerifyPROAdvanceRequest extends $dara.Model {
7
+ /**
8
+ * @remarks
9
+ * Specifies whether to allow cropping of the facial photo. By default, cropping is not allowed. Valid values:
10
+ * - **T**: Cropping is allowed.
11
+ * - **F**: Cropping is not allowed.
12
+ * > If the requested image is not captured by a standard liveness detection SDK, allow cropping of the facial photo.
13
+ * After this feature is enabled, the requested image is first cropped and corrected for the face, and then the request is sent to the service.
14
+ *
15
+ * @example
16
+ * T
17
+ */
18
+ crop?: string;
19
+ /**
20
+ * @remarks
21
+ * Specifies whether to allow fallback to a non-public security source. Valid values:
22
+ *
23
+ * - **N** (default): Disabled.
24
+ * - **Y**: Enabled.
25
+ *
26
+ * @example
27
+ * Y
28
+ */
29
+ enableFallback?: string;
30
+ /**
31
+ * @remarks
32
+ * The input stream of the facial photo.
33
+ *
34
+ * @example
35
+ * For the specific integration method, refer to the file upload Advance API configuration
36
+ */
37
+ faceFileObject?: Readable;
38
+ /**
39
+ * @remarks
40
+ * The Base64-encoded photo. If you use this method to submit the facial photo, check the photo size and do not submit an excessively large photo.
41
+ *
42
+ * @example
43
+ * /9j/4AAQSkZJRgABAQAASxxxxxxx
44
+ */
45
+ facePicture?: string;
46
+ /**
47
+ * @remarks
48
+ * The URL of the facial photo. The URL must be a publicly accessible HTTP or HTTPS link.
49
+ *
50
+ * @example
51
+ * https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg
52
+ */
53
+ faceUrl?: string;
54
+ /**
55
+ * @remarks
56
+ * The ID card number.
57
+ *
58
+ * - If **paramType** is set to normal: Enter the ID card number in plaintext.
59
+ *
60
+ * - If **paramType** is set to sm2: Enter the encrypted ID card number.
61
+ *
62
+ *
63
+ * > Due to authoritative source limitations, only second-generation resident ID card numbers are supported.
64
+ *
65
+ * @example
66
+ * Plaintext: 429001********8211
67
+ *
68
+ * Ciphertext: MHsCIEPDt1ycBNSVgA2yKsMnvWGheiI+STWqJLmYWlZnklhnAiEAwq1bk5YVepHwqfMsd9ErlK71OrdXx8E+wfqbzyFCwoMEIM1QdrFeekvQh6fwK7sVXAsNePiNm7Eulqm/zahRosbKBBKgtyhm3SopJ3tO/wALKXQQW+g=
69
+ */
70
+ identifyNum?: string;
71
+ /**
72
+ * @remarks
73
+ * Specifies whether to enable liveness detection. Valid values:
74
+ *
75
+ * - **N** (default): Liveness detection is disabled.
76
+ * - **Y**: Liveness detection is enabled.
77
+ *
78
+ * @example
79
+ * Y
80
+ */
81
+ livenessCheck?: string;
82
+ /**
83
+ * @remarks
84
+ * The encryption method. Valid values:
85
+ *
86
+ * - **normal**: Plaintext without encryption.
87
+ *
88
+ * - **sm2**: SM2 encryption.
89
+ *
90
+ * @example
91
+ * normal
92
+ */
93
+ paramType?: string;
94
+ /**
95
+ * @remarks
96
+ * The name.
97
+ *
98
+ * - If **paramType** is set to normal: Enter the name in plaintext.
99
+ *
100
+ * - If **paramType** is set to sm2: Enter the encrypted name.
101
+ *
102
+ * @example
103
+ * Plaintext: Zhang San
104
+ *
105
+ * Ciphertext: MG8CIQCxI0wNYbc0c2BRL+7+tSethTXfQC391ZFnszRRcvRZ9AIgekQYhgDtxaDuoRD4bde/5fnFdlUp4YoxlEnIFLLm2mQEILkctuy6Rw6lfAUxBtkpPoPVCJAeD5al/RX8JFUvTACEBAYAgLJjBe0=
106
+ */
107
+ userName?: string;
108
+ static names(): { [key: string]: string } {
109
+ return {
110
+ crop: 'Crop',
111
+ enableFallback: 'EnableFallback',
112
+ faceFileObject: 'FaceFile',
113
+ facePicture: 'FacePicture',
114
+ faceUrl: 'FaceUrl',
115
+ identifyNum: 'IdentifyNum',
116
+ livenessCheck: 'LivenessCheck',
117
+ paramType: 'ParamType',
118
+ userName: 'UserName',
119
+ };
120
+ }
121
+
122
+ static types(): { [key: string]: any } {
123
+ return {
124
+ crop: 'string',
125
+ enableFallback: 'string',
126
+ faceFileObject: 'Readable',
127
+ facePicture: 'string',
128
+ faceUrl: 'string',
129
+ identifyNum: 'string',
130
+ livenessCheck: 'string',
131
+ paramType: 'string',
132
+ userName: 'string',
133
+ };
134
+ }
135
+
136
+ validate() {
137
+ super.validate();
138
+ }
139
+
140
+ constructor(map?: { [key: string]: any }) {
141
+ super(map);
142
+ }
143
+ }
144
+
@@ -0,0 +1,143 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class Id3MetaVerifyPRORequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether to allow cropping of the facial photo. By default, cropping is not allowed. Valid values:
9
+ * - **T**: Cropping is allowed.
10
+ * - **F**: Cropping is not allowed.
11
+ * > If the requested image is not captured by a standard liveness detection SDK, allow cropping of the facial photo.
12
+ * After this feature is enabled, the requested image is first cropped and corrected for the face, and then the request is sent to the service.
13
+ *
14
+ * @example
15
+ * T
16
+ */
17
+ crop?: string;
18
+ /**
19
+ * @remarks
20
+ * Specifies whether to allow fallback to a non-public security source. Valid values:
21
+ *
22
+ * - **N** (default): Disabled.
23
+ * - **Y**: Enabled.
24
+ *
25
+ * @example
26
+ * Y
27
+ */
28
+ enableFallback?: string;
29
+ /**
30
+ * @remarks
31
+ * The input stream of the facial photo.
32
+ *
33
+ * @example
34
+ * For the specific integration method, refer to the file upload Advance API configuration
35
+ */
36
+ faceFile?: string;
37
+ /**
38
+ * @remarks
39
+ * The Base64-encoded photo. If you use this method to submit the facial photo, check the photo size and do not submit an excessively large photo.
40
+ *
41
+ * @example
42
+ * /9j/4AAQSkZJRgABAQAASxxxxxxx
43
+ */
44
+ facePicture?: string;
45
+ /**
46
+ * @remarks
47
+ * The URL of the facial photo. The URL must be a publicly accessible HTTP or HTTPS link.
48
+ *
49
+ * @example
50
+ * https://cn-shanghai-aliyun-cloudauth-xxxxxx.oss-cn-shanghai.aliyuncs.com/verify/xxxxx/xxxxx.jpeg
51
+ */
52
+ faceUrl?: string;
53
+ /**
54
+ * @remarks
55
+ * The ID card number.
56
+ *
57
+ * - If **paramType** is set to normal: Enter the ID card number in plaintext.
58
+ *
59
+ * - If **paramType** is set to sm2: Enter the encrypted ID card number.
60
+ *
61
+ *
62
+ * > Due to authoritative source limitations, only second-generation resident ID card numbers are supported.
63
+ *
64
+ * @example
65
+ * Plaintext: 429001********8211
66
+ *
67
+ * Ciphertext: MHsCIEPDt1ycBNSVgA2yKsMnvWGheiI+STWqJLmYWlZnklhnAiEAwq1bk5YVepHwqfMsd9ErlK71OrdXx8E+wfqbzyFCwoMEIM1QdrFeekvQh6fwK7sVXAsNePiNm7Eulqm/zahRosbKBBKgtyhm3SopJ3tO/wALKXQQW+g=
68
+ */
69
+ identifyNum?: string;
70
+ /**
71
+ * @remarks
72
+ * Specifies whether to enable liveness detection. Valid values:
73
+ *
74
+ * - **N** (default): Liveness detection is disabled.
75
+ * - **Y**: Liveness detection is enabled.
76
+ *
77
+ * @example
78
+ * Y
79
+ */
80
+ livenessCheck?: string;
81
+ /**
82
+ * @remarks
83
+ * The encryption method. Valid values:
84
+ *
85
+ * - **normal**: Plaintext without encryption.
86
+ *
87
+ * - **sm2**: SM2 encryption.
88
+ *
89
+ * @example
90
+ * normal
91
+ */
92
+ paramType?: string;
93
+ /**
94
+ * @remarks
95
+ * The name.
96
+ *
97
+ * - If **paramType** is set to normal: Enter the name in plaintext.
98
+ *
99
+ * - If **paramType** is set to sm2: Enter the encrypted name.
100
+ *
101
+ * @example
102
+ * Plaintext: Zhang San
103
+ *
104
+ * Ciphertext: MG8CIQCxI0wNYbc0c2BRL+7+tSethTXfQC391ZFnszRRcvRZ9AIgekQYhgDtxaDuoRD4bde/5fnFdlUp4YoxlEnIFLLm2mQEILkctuy6Rw6lfAUxBtkpPoPVCJAeD5al/RX8JFUvTACEBAYAgLJjBe0=
105
+ */
106
+ userName?: string;
107
+ static names(): { [key: string]: string } {
108
+ return {
109
+ crop: 'Crop',
110
+ enableFallback: 'EnableFallback',
111
+ faceFile: 'FaceFile',
112
+ facePicture: 'FacePicture',
113
+ faceUrl: 'FaceUrl',
114
+ identifyNum: 'IdentifyNum',
115
+ livenessCheck: 'LivenessCheck',
116
+ paramType: 'ParamType',
117
+ userName: 'UserName',
118
+ };
119
+ }
120
+
121
+ static types(): { [key: string]: any } {
122
+ return {
123
+ crop: 'string',
124
+ enableFallback: 'string',
125
+ faceFile: 'string',
126
+ facePicture: 'string',
127
+ faceUrl: 'string',
128
+ identifyNum: 'string',
129
+ livenessCheck: 'string',
130
+ paramType: 'string',
131
+ userName: 'string',
132
+ };
133
+ }
134
+
135
+ validate() {
136
+ super.validate();
137
+ }
138
+
139
+ constructor(map?: { [key: string]: any }) {
140
+ super(map);
141
+ }
142
+ }
143
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { Id3MetaVerifyPROResponseBody } from "./Id3metaVerifyProresponseBody";
4
+
5
+
6
+ export class Id3MetaVerifyPROResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: Id3MetaVerifyPROResponseBody;
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: Id3MetaVerifyPROResponseBody,
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,159 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class Id3MetaVerifyPROResponseBodyResultObject extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The authoritative source verification result. Valid values:
9
+ *
10
+ * - **1**: Verification is consistent (billable).
11
+ * - **2**: Verification is inconsistent (billable).
12
+ * - **3**: No record found (not billable).
13
+ *
14
+ * @example
15
+ * 1
16
+ */
17
+ bizCode?: string;
18
+ /**
19
+ * @remarks
20
+ * - **verifyScore**: The face comparison score. Value range: 0 to 1000. A higher score indicates a higher probability of the same face. A score >= 700.0 confirms the same person.
21
+ *
22
+ * - **faceAttack**: Returned when liveness detection is enabled (does not participate in the verification result decision).
23
+ *
24
+ * - **invokeChannel**: The identifier of the actual invocation channel. 1: authoritative source. 0: comprehensive source.
25
+ *
26
+ * @example
27
+ * {
28
+ * "verifyScore": 810.28,
29
+ * "faceAttack":"N",
30
+ * "invokeChannel": 1
31
+ * }
32
+ */
33
+ faceDetail?: string;
34
+ /**
35
+ * @remarks
36
+ * Indicates whether the whitelist is hit: **Y**.
37
+ *
38
+ * @example
39
+ * Y
40
+ */
41
+ hitWhitelist?: string;
42
+ /**
43
+ * @remarks
44
+ * The authoritative source verification details. Valid values:
45
+ *
46
+ * - **101**: Authentication passed.
47
+ *
48
+ * - **201**: Authentication failed. The name does not match the ID card number.
49
+ *
50
+ * - **202**: Authentication failed. Suspected to be the person.
51
+ *
52
+ * - **203**: Authentication failed. No photo in the database.
53
+ *
54
+ * - **204**: Authentication failed. Not the same person.
55
+ *
56
+ * - **205**: Authentication failed. Modeling of the image to be compared failed.
57
+ *
58
+ * - **206**: Authentication failed. The image format is incorrect.
59
+ *
60
+ * - **207**: Authentication failed. The uploaded image is too small. Upload the image again.
61
+ *
62
+ * - **208**: Authentication failed. The quality of the uploaded portrait photo is poor. Upload the photo again.
63
+ *
64
+ * - **301**: No record found. The ID number does not exist in the database.
65
+ *
66
+ * - **302**: No record found. Verification is not possible.
67
+ *
68
+ * @example
69
+ * 101
70
+ */
71
+ subCode?: string;
72
+ static names(): { [key: string]: string } {
73
+ return {
74
+ bizCode: 'BizCode',
75
+ faceDetail: 'FaceDetail',
76
+ hitWhitelist: 'HitWhitelist',
77
+ subCode: 'SubCode',
78
+ };
79
+ }
80
+
81
+ static types(): { [key: string]: any } {
82
+ return {
83
+ bizCode: 'string',
84
+ faceDetail: 'string',
85
+ hitWhitelist: 'string',
86
+ subCode: 'string',
87
+ };
88
+ }
89
+
90
+ validate() {
91
+ super.validate();
92
+ }
93
+
94
+ constructor(map?: { [key: string]: any }) {
95
+ super(map);
96
+ }
97
+ }
98
+
99
+ export class Id3MetaVerifyPROResponseBody extends $dara.Model {
100
+ /**
101
+ * @remarks
102
+ * The response code. **200** indicates that the API call is successful.
103
+ *
104
+ * @example
105
+ * 200
106
+ */
107
+ code?: string;
108
+ /**
109
+ * @remarks
110
+ * The response message of the API call.
111
+ * >Notice: This parameter only indicates whether the API call is abnormal.
112
+ *
113
+ * @example
114
+ * success
115
+ */
116
+ message?: string;
117
+ /**
118
+ * @remarks
119
+ * The request ID.
120
+ *
121
+ * @example
122
+ * 2FA2C773-47DB-4156-B1EE-5B047321A939
123
+ */
124
+ requestId?: string;
125
+ /**
126
+ * @remarks
127
+ * The returned result.
128
+ */
129
+ resultObject?: Id3MetaVerifyPROResponseBodyResultObject;
130
+ static names(): { [key: string]: string } {
131
+ return {
132
+ code: 'Code',
133
+ message: 'Message',
134
+ requestId: 'RequestId',
135
+ resultObject: 'ResultObject',
136
+ };
137
+ }
138
+
139
+ static types(): { [key: string]: any } {
140
+ return {
141
+ code: 'string',
142
+ message: 'string',
143
+ requestId: 'string',
144
+ resultObject: Id3MetaVerifyPROResponseBodyResultObject,
145
+ };
146
+ }
147
+
148
+ validate() {
149
+ if(this.resultObject && typeof (this.resultObject as any).validate === 'function') {
150
+ (this.resultObject as any).validate();
151
+ }
152
+ super.validate();
153
+ }
154
+
155
+ constructor(map?: { [key: string]: any }) {
156
+ super(map);
157
+ }
158
+ }
159
+