@antchain/realperson 1.23.2 → 1.23.4
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 +116 -11
- package/dist/client.js +47 -25
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +186 -38
package/dist/client.d.ts
CHANGED
|
@@ -1079,6 +1079,121 @@ export declare class OcrInfo extends $tea.Model {
|
|
|
1079
1079
|
* 50027372380230106
|
|
1080
1080
|
*/
|
|
1081
1081
|
chipNum?: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* @example
|
|
1084
|
+
* P
|
|
1085
|
+
*/
|
|
1086
|
+
passportType?: string;
|
|
1087
|
+
/**
|
|
1088
|
+
* @example
|
|
1089
|
+
* 张
|
|
1090
|
+
*/
|
|
1091
|
+
surname?: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* @example
|
|
1094
|
+
* 三
|
|
1095
|
+
*/
|
|
1096
|
+
givenName?: string;
|
|
1097
|
+
/**
|
|
1098
|
+
* @example
|
|
1099
|
+
* L12880801
|
|
1100
|
+
*/
|
|
1101
|
+
passportNumber?: string;
|
|
1102
|
+
/**
|
|
1103
|
+
* @example
|
|
1104
|
+
* ZHENGJIAN
|
|
1105
|
+
*/
|
|
1106
|
+
nameEn?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* @example
|
|
1109
|
+
* GUANGDONG
|
|
1110
|
+
*/
|
|
1111
|
+
birthPlaceEn?: string;
|
|
1112
|
+
/**
|
|
1113
|
+
* @example
|
|
1114
|
+
* 广东
|
|
1115
|
+
*/
|
|
1116
|
+
birthPlace?: string;
|
|
1117
|
+
/**
|
|
1118
|
+
* @example
|
|
1119
|
+
* CHINESE
|
|
1120
|
+
*/
|
|
1121
|
+
country?: string;
|
|
1122
|
+
/**
|
|
1123
|
+
* @example
|
|
1124
|
+
* 850320
|
|
1125
|
+
*/
|
|
1126
|
+
birthDate?: string;
|
|
1127
|
+
/**
|
|
1128
|
+
* @example
|
|
1129
|
+
* 1985年03月20日
|
|
1130
|
+
*/
|
|
1131
|
+
birthDateYmd?: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* @example
|
|
1134
|
+
* 2019年01月18日
|
|
1135
|
+
*/
|
|
1136
|
+
issueDateYmd?: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* @example
|
|
1139
|
+
* GUANGDONG
|
|
1140
|
+
*/
|
|
1141
|
+
issuePlaceEn?: string;
|
|
1142
|
+
/**
|
|
1143
|
+
* @example
|
|
1144
|
+
* 广东
|
|
1145
|
+
*/
|
|
1146
|
+
issuePlace?: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* @example
|
|
1149
|
+
* National Immigration Administration, PRC
|
|
1150
|
+
*/
|
|
1151
|
+
issueAuthorityEn?: string;
|
|
1152
|
+
/**
|
|
1153
|
+
* @example
|
|
1154
|
+
* 非英文签发机关
|
|
1155
|
+
*/
|
|
1156
|
+
issueAuthority?: string;
|
|
1157
|
+
/**
|
|
1158
|
+
* @example
|
|
1159
|
+
* 123
|
|
1160
|
+
*/
|
|
1161
|
+
idNumber?: string;
|
|
1162
|
+
/**
|
|
1163
|
+
* @example
|
|
1164
|
+
* POCHNZHENGJIAN
|
|
1165
|
+
*/
|
|
1166
|
+
mrzLine1?: string;
|
|
1167
|
+
/**
|
|
1168
|
+
* @example
|
|
1169
|
+
* EF12608921CHN8503208F2901178NGKELMPONBPJB978
|
|
1170
|
+
*/
|
|
1171
|
+
mrzLine2?: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* @example
|
|
1174
|
+
* 往来台湾通行证
|
|
1175
|
+
*/
|
|
1176
|
+
permitType?: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* @example
|
|
1179
|
+
* 证件样本
|
|
1180
|
+
*/
|
|
1181
|
+
nameCn?: string;
|
|
1182
|
+
/**
|
|
1183
|
+
* @example
|
|
1184
|
+
* 2019.01.18-2029.01.17
|
|
1185
|
+
*/
|
|
1186
|
+
validPeriod?: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* @example
|
|
1189
|
+
* H01162111
|
|
1190
|
+
*/
|
|
1191
|
+
permitNumber?: string;
|
|
1192
|
+
/**
|
|
1193
|
+
* @example
|
|
1194
|
+
* CSCA3273201<901178<8108038<2
|
|
1195
|
+
*/
|
|
1196
|
+
mrzCode?: string;
|
|
1082
1197
|
static names(): {
|
|
1083
1198
|
[key: string]: string;
|
|
1084
1199
|
};
|
|
@@ -4511,17 +4626,7 @@ export declare class QueryThreemetaPhonereusexResponse extends $tea.Model {
|
|
|
4511
4626
|
export declare class InitServerWillauthRequest extends $tea.Model {
|
|
4512
4627
|
authToken?: string;
|
|
4513
4628
|
productInstanceId?: string;
|
|
4514
|
-
|
|
4515
|
-
* @remarks
|
|
4516
|
-
* 待上传文件
|
|
4517
|
-
*/
|
|
4518
|
-
fileObject?: Readable;
|
|
4519
|
-
/**
|
|
4520
|
-
* @remarks
|
|
4521
|
-
* 待上传文件名
|
|
4522
|
-
*/
|
|
4523
|
-
fileObjectName?: string;
|
|
4524
|
-
fileId: string;
|
|
4629
|
+
fileId?: string;
|
|
4525
4630
|
sceneId: string;
|
|
4526
4631
|
certName?: string;
|
|
4527
4632
|
certNo?: string;
|
package/dist/client.js
CHANGED
|
@@ -581,6 +581,29 @@ class OcrInfo extends $tea.Model {
|
|
|
581
581
|
fuel: 'fuel',
|
|
582
582
|
tractionMass: 'traction_mass',
|
|
583
583
|
chipNum: 'chip_num',
|
|
584
|
+
passportType: 'passport_type',
|
|
585
|
+
surname: 'surname',
|
|
586
|
+
givenName: 'given_name',
|
|
587
|
+
passportNumber: 'passport_number',
|
|
588
|
+
nameEn: 'name_en',
|
|
589
|
+
birthPlaceEn: 'birth_place_en',
|
|
590
|
+
birthPlace: 'birth_place',
|
|
591
|
+
country: 'country',
|
|
592
|
+
birthDate: 'birth_date',
|
|
593
|
+
birthDateYmd: 'birth_date_ymd',
|
|
594
|
+
issueDateYmd: 'issue_date_ymd',
|
|
595
|
+
issuePlaceEn: 'issue_place_en',
|
|
596
|
+
issuePlace: 'issue_place',
|
|
597
|
+
issueAuthorityEn: 'issue_authority_en',
|
|
598
|
+
issueAuthority: 'issue_authority',
|
|
599
|
+
idNumber: 'id_number',
|
|
600
|
+
mrzLine1: 'mrz_line1',
|
|
601
|
+
mrzLine2: 'mrz_line2',
|
|
602
|
+
permitType: 'permit_type',
|
|
603
|
+
nameCn: 'name_cn',
|
|
604
|
+
validPeriod: 'valid_period',
|
|
605
|
+
permitNumber: 'permit_number',
|
|
606
|
+
mrzCode: 'mrz_code',
|
|
584
607
|
};
|
|
585
608
|
}
|
|
586
609
|
static types() {
|
|
@@ -630,6 +653,29 @@ class OcrInfo extends $tea.Model {
|
|
|
630
653
|
fuel: 'string',
|
|
631
654
|
tractionMass: 'string',
|
|
632
655
|
chipNum: 'string',
|
|
656
|
+
passportType: 'string',
|
|
657
|
+
surname: 'string',
|
|
658
|
+
givenName: 'string',
|
|
659
|
+
passportNumber: 'string',
|
|
660
|
+
nameEn: 'string',
|
|
661
|
+
birthPlaceEn: 'string',
|
|
662
|
+
birthPlace: 'string',
|
|
663
|
+
country: 'string',
|
|
664
|
+
birthDate: 'string',
|
|
665
|
+
birthDateYmd: 'string',
|
|
666
|
+
issueDateYmd: 'string',
|
|
667
|
+
issuePlaceEn: 'string',
|
|
668
|
+
issuePlace: 'string',
|
|
669
|
+
issueAuthorityEn: 'string',
|
|
670
|
+
issueAuthority: 'string',
|
|
671
|
+
idNumber: 'string',
|
|
672
|
+
mrzLine1: 'string',
|
|
673
|
+
mrzLine2: 'string',
|
|
674
|
+
permitType: 'string',
|
|
675
|
+
nameCn: 'string',
|
|
676
|
+
validPeriod: 'string',
|
|
677
|
+
permitNumber: 'string',
|
|
678
|
+
mrzCode: 'string',
|
|
633
679
|
};
|
|
634
680
|
}
|
|
635
681
|
}
|
|
@@ -5620,8 +5666,6 @@ class InitServerWillauthRequest extends $tea.Model {
|
|
|
5620
5666
|
return {
|
|
5621
5667
|
authToken: 'auth_token',
|
|
5622
5668
|
productInstanceId: 'product_instance_id',
|
|
5623
|
-
fileObject: 'fileObject',
|
|
5624
|
-
fileObjectName: 'fileObjectName',
|
|
5625
5669
|
fileId: 'file_id',
|
|
5626
5670
|
sceneId: 'scene_id',
|
|
5627
5671
|
certName: 'cert_name',
|
|
@@ -5642,8 +5686,6 @@ class InitServerWillauthRequest extends $tea.Model {
|
|
|
5642
5686
|
return {
|
|
5643
5687
|
authToken: 'string',
|
|
5644
5688
|
productInstanceId: 'string',
|
|
5645
|
-
fileObject: 'Readable',
|
|
5646
|
-
fileObjectName: 'string',
|
|
5647
5689
|
fileId: 'string',
|
|
5648
5690
|
sceneId: 'string',
|
|
5649
5691
|
certName: 'string',
|
|
@@ -6208,7 +6250,7 @@ class Client {
|
|
|
6208
6250
|
req_msg_id: alipay_util_1.default.getNonce(),
|
|
6209
6251
|
access_key: this._accessKeyId,
|
|
6210
6252
|
base_sdk_version: "TeaSDK-2.0",
|
|
6211
|
-
sdk_version: "1.23.
|
|
6253
|
+
sdk_version: "1.23.4",
|
|
6212
6254
|
_prod_code: "REALPERSON",
|
|
6213
6255
|
_prod_channel: "undefined",
|
|
6214
6256
|
};
|
|
@@ -8037,26 +8079,6 @@ class Client {
|
|
|
8037
8079
|
* Summary: 意愿认证服务端初始化
|
|
8038
8080
|
*/
|
|
8039
8081
|
async initServerWillauthEx(request, headers, runtime) {
|
|
8040
|
-
if (!tea_util_1.default.isUnset(request.fileObject)) {
|
|
8041
|
-
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
8042
|
-
authToken: request.authToken,
|
|
8043
|
-
apiCode: "di.realperson.server.willauth.init",
|
|
8044
|
-
fileName: request.fileObjectName,
|
|
8045
|
-
});
|
|
8046
|
-
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
8047
|
-
if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
|
|
8048
|
-
let initServerWillauthResponse = new InitServerWillauthResponse({
|
|
8049
|
-
reqMsgId: uploadResp.reqMsgId,
|
|
8050
|
-
resultCode: uploadResp.resultCode,
|
|
8051
|
-
resultMsg: uploadResp.resultMsg,
|
|
8052
|
-
});
|
|
8053
|
-
return initServerWillauthResponse;
|
|
8054
|
-
}
|
|
8055
|
-
let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
8056
|
-
await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
8057
|
-
request.fileId = uploadResp.fileId;
|
|
8058
|
-
request.fileObject = null;
|
|
8059
|
-
}
|
|
8060
8082
|
tea_util_1.default.validateModel(request);
|
|
8061
8083
|
return $tea.cast(await this.doRequest("1.0", "di.realperson.server.willauth.init", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new InitServerWillauthResponse({}));
|
|
8062
8084
|
}
|