@antchain/realperson 1.21.3 → 1.21.19
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 +211 -0
- package/dist/client.js +410 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +647 -1
package/dist/client.js
CHANGED
|
@@ -22,7 +22,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
22
22
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.CreateAntcloudGatewayxFileUploadResponse = exports.CreateAntcloudGatewayxFileUploadRequest = exports.QueryFaceverifyServermaterialResponse = exports.QueryFaceverifyServermaterialRequest = exports.QueryBankLivenessfourResponse = exports.QueryBankLivenessfourRequest = exports.QueryEducationBackgroundResponse = exports.QueryEducationBackgroundRequest = exports.CheckCarTwometaResponse = exports.CheckCarTwometaRequest = exports.QueryAlipayverifyServerResponse = exports.QueryAlipayverifyServerRequest = exports.CreateAlipayverifyServerResponse = exports.CreateAlipayverifyServerRequest = exports.ExecFaceverifyServermodeResponse = exports.ExecFaceverifyServermodeRequest = exports.QueryBankLivenessplusResponse = exports.QueryBankLivenessplusRequest = exports.QueryFaceverifyServerResponse = exports.QueryFaceverifyServerRequest = exports.CreateFaceverifyServerResponse = exports.CreateFaceverifyServerRequest = exports.ApplyExtOrgdataResponse = exports.ApplyExtOrgdataRequest = exports.BindCarrierRepairmobileResponse = exports.BindCarrierRepairmobileRequest = exports.QueryCarrierRepairmobileResponse = exports.QueryCarrierRepairmobileRequest = exports.InitCarrierRepairmobileResponse = exports.InitCarrierRepairmobileRequest = exports.DeleteConsoleDomainResponse = exports.DeleteConsoleDomainRequest = exports.CreateConsoleDomainResponse = exports.CreateConsoleDomainRequest = exports.QueryBankLivenessResponse = exports.QueryBankLivenessRequest = exports.ExecFacevrfServermodeResponse = exports.ExecFacevrfServermodeRequest = exports.QuerySocialriskTobriskResponse = exports.QuerySocialriskTobriskRequest = exports.QuerySocialriskBriefResponse = exports.QuerySocialriskBriefRequest = exports.QueryCarrierNetstatusResponse = exports.QueryCarrierNetstatusRequest = exports.QuerySocialriskDetailResponse = exports.QuerySocialriskDetailRequest = exports.QueryNfcServerResponse = exports.QueryNfcServerRequest = exports.CreateNfcServerResponse = exports.CreateNfcServerRequest = exports.CheckCarrierTwometaResponse = exports.CheckCarrierTwometaRequest = exports.CheckBankcardTwometaResponse = exports.CheckBankcardTwometaRequest = exports.QueryDemoInfoResponse = exports.QueryDemoInfoRequest = exports.QueryEducationInfoResponse = exports.QueryEducationInfoRequest = exports.QueryTscenterDeviceResponse = exports.QueryTscenterDeviceRequest = exports.QueryThreemetaPhonereuseResponse = exports.QueryThreemetaPhonereuseRequest = exports.QueryDeepsecTsbmrqResponse = exports.QueryDeepsecTsbmrqRequest = exports.QueryDeepsecRiskResponse = exports.QueryDeepsecRiskRequest = exports.CheckThreemetaBankcardResponse = exports.CheckThreemetaBankcardRequest = exports.RecognizeDocIndividualcardResponse = exports.RecognizeDocIndividualcardRequest = exports.VerifyFacevrfZimResponse = exports.VerifyFacevrfZimRequest = exports.InitFacevrfZimResponse = exports.InitFacevrfZimRequest = exports.QueryThreemetaOnlinetimeResponse = exports.QueryThreemetaOnlinetimeRequest = exports.CheckTwometaHashResponse = exports.CheckTwometaHashRequest = exports.CheckAnticheatPersonalResponse = exports.CheckAnticheatPersonalRequest = exports.DetailFacevrfServerResponse = exports.DetailFacevrfServerRequest = exports.QueryMobileRiskResponse = exports.QueryMobileRiskRequest = exports.CheckRouteTwometaResponse = exports.CheckRouteTwometaRequest = exports.VerifyVoiceprintServermodeResponse = exports.VerifyVoiceprintServermodeRequest = exports.CreateVoiceprintServermodeResponse = exports.CreateVoiceprintServermodeRequest = exports.CheckRouteThreemetaResponse = exports.CheckRouteThreemetaRequest = exports.CheckIndividualidFourmetaResponse = exports.CheckIndividualidFourmetaRequest = exports.CheckIndividualidThreemetaResponse = exports.CheckIndividualidThreemetaRequest = exports.CheckIndividualidTwometaResponse = exports.CheckIndividualidTwometaRequest = exports.GetFacevrfEvidenceResponse = exports.GetFacevrfEvidenceRequest = exports.ExecFacevrfServerResponse = exports.ExecFacevrfServerRequest = exports.CreateFacevrfServerResponse = exports.CreateFacevrfServerRequest = exports.QueryFacevrfServerResponse = exports.QueryFacevrfServerRequest = exports.XNameValuePair = exports.Audio = exports.AudioMeta = exports.Config = void 0;
|
|
25
|
+
exports.CreateAntcloudGatewayxFileUploadResponse = exports.CreateAntcloudGatewayxFileUploadRequest = exports.RecognizeOcrIndividualcardResponse = exports.RecognizeOcrIndividualcardRequest = exports.ScaleinImageResponse = exports.ScaleinImageRequest = exports.QueryFaceverifyServermaterialResponse = exports.QueryFaceverifyServermaterialRequest = exports.QueryBankLivenessfourResponse = exports.QueryBankLivenessfourRequest = exports.QueryEducationBackgroundResponse = exports.QueryEducationBackgroundRequest = exports.CheckCarTwometaResponse = exports.CheckCarTwometaRequest = exports.QueryAlipayverifyServerResponse = exports.QueryAlipayverifyServerRequest = exports.CreateAlipayverifyServerResponse = exports.CreateAlipayverifyServerRequest = exports.ExecFaceverifyServermodeResponse = exports.ExecFaceverifyServermodeRequest = exports.QueryBankLivenessplusResponse = exports.QueryBankLivenessplusRequest = exports.QueryFaceverifyServerResponse = exports.QueryFaceverifyServerRequest = exports.CreateFaceverifyServerResponse = exports.CreateFaceverifyServerRequest = exports.ApplyExtOrgdataResponse = exports.ApplyExtOrgdataRequest = exports.BindCarrierRepairmobileResponse = exports.BindCarrierRepairmobileRequest = exports.QueryCarrierRepairmobileResponse = exports.QueryCarrierRepairmobileRequest = exports.InitCarrierRepairmobileResponse = exports.InitCarrierRepairmobileRequest = exports.DeleteConsoleDomainResponse = exports.DeleteConsoleDomainRequest = exports.CreateConsoleDomainResponse = exports.CreateConsoleDomainRequest = exports.QueryBankLivenessResponse = exports.QueryBankLivenessRequest = exports.ExecFacevrfServermodeResponse = exports.ExecFacevrfServermodeRequest = exports.QuerySocialriskTobriskResponse = exports.QuerySocialriskTobriskRequest = exports.QuerySocialriskBriefResponse = exports.QuerySocialriskBriefRequest = exports.QueryCarrierNetstatusResponse = exports.QueryCarrierNetstatusRequest = exports.QuerySocialriskDetailResponse = exports.QuerySocialriskDetailRequest = exports.QueryNfcServerResponse = exports.QueryNfcServerRequest = exports.CreateNfcServerResponse = exports.CreateNfcServerRequest = exports.CheckCarrierTwometaResponse = exports.CheckCarrierTwometaRequest = exports.CheckBankcardTwometaResponse = exports.CheckBankcardTwometaRequest = exports.QueryDemoInfoResponse = exports.QueryDemoInfoRequest = exports.QueryEducationInfoResponse = exports.QueryEducationInfoRequest = exports.QueryTscenterDeviceResponse = exports.QueryTscenterDeviceRequest = exports.QueryThreemetaPhonereuseResponse = exports.QueryThreemetaPhonereuseRequest = exports.QueryDeepsecTsbmrqResponse = exports.QueryDeepsecTsbmrqRequest = exports.QueryDeepsecRiskResponse = exports.QueryDeepsecRiskRequest = exports.CheckThreemetaBankcardResponse = exports.CheckThreemetaBankcardRequest = exports.RecognizeDocIndividualcardResponse = exports.RecognizeDocIndividualcardRequest = exports.VerifyFacevrfZimResponse = exports.VerifyFacevrfZimRequest = exports.InitFacevrfZimResponse = exports.InitFacevrfZimRequest = exports.QueryThreemetaOnlinetimeResponse = exports.QueryThreemetaOnlinetimeRequest = exports.CheckTwometaHashResponse = exports.CheckTwometaHashRequest = exports.CheckAnticheatPersonalResponse = exports.CheckAnticheatPersonalRequest = exports.DetailFacevrfServerResponse = exports.DetailFacevrfServerRequest = exports.QueryMobileRiskResponse = exports.QueryMobileRiskRequest = exports.CheckRouteTwometaResponse = exports.CheckRouteTwometaRequest = exports.VerifyVoiceprintServermodeResponse = exports.VerifyVoiceprintServermodeRequest = exports.CreateVoiceprintServermodeResponse = exports.CreateVoiceprintServermodeRequest = exports.CheckRouteThreemetaResponse = exports.CheckRouteThreemetaRequest = exports.CheckIndividualidFourmetaResponse = exports.CheckIndividualidFourmetaRequest = exports.CheckIndividualidThreemetaResponse = exports.CheckIndividualidThreemetaRequest = exports.CheckIndividualidTwometaResponse = exports.CheckIndividualidTwometaRequest = exports.GetFacevrfEvidenceResponse = exports.GetFacevrfEvidenceRequest = exports.ExecFacevrfServerResponse = exports.ExecFacevrfServerRequest = exports.CreateFacevrfServerResponse = exports.CreateFacevrfServerRequest = exports.QueryFacevrfServerResponse = exports.QueryFacevrfServerRequest = exports.XNameValuePair = exports.OcrInfo = exports.Audio = exports.AudioMeta = exports.RiskInfo = exports.CardQuality = exports.OcrLocation = exports.Config = void 0;
|
|
26
26
|
// This file is auto-generated, don't edit it
|
|
27
27
|
const alipay_util_1 = __importDefault(require("@antchain/alipay-util"));
|
|
28
28
|
const tea_util_1 = __importStar(require("@alicloud/tea-util")), $Util = tea_util_1;
|
|
@@ -81,6 +81,83 @@ class Config extends $tea.Model {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
exports.Config = Config;
|
|
84
|
+
// 卡证OCR图片坐标
|
|
85
|
+
class OcrLocation extends $tea.Model {
|
|
86
|
+
constructor(map) {
|
|
87
|
+
super(map);
|
|
88
|
+
}
|
|
89
|
+
static names() {
|
|
90
|
+
return {
|
|
91
|
+
top: 'top',
|
|
92
|
+
left: 'left',
|
|
93
|
+
width: 'width',
|
|
94
|
+
height: 'height',
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
static types() {
|
|
98
|
+
return {
|
|
99
|
+
top: 'string',
|
|
100
|
+
left: 'string',
|
|
101
|
+
width: 'string',
|
|
102
|
+
height: 'string',
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.OcrLocation = OcrLocation;
|
|
107
|
+
// 卡证OCR图片质量
|
|
108
|
+
class CardQuality extends $tea.Model {
|
|
109
|
+
constructor(map) {
|
|
110
|
+
super(map);
|
|
111
|
+
}
|
|
112
|
+
static names() {
|
|
113
|
+
return {
|
|
114
|
+
isClear: 'is_clear',
|
|
115
|
+
isClearPropobility: 'is_clear_propobility',
|
|
116
|
+
isComplete: 'is_complete',
|
|
117
|
+
isCompletePropobility: 'is_complete_propobility',
|
|
118
|
+
isNoCover: 'is_no_cover',
|
|
119
|
+
isNoCoverPropobility: 'is_no_cover_propobility',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
static types() {
|
|
123
|
+
return {
|
|
124
|
+
isClear: 'string',
|
|
125
|
+
isClearPropobility: 'string',
|
|
126
|
+
isComplete: 'string',
|
|
127
|
+
isCompletePropobility: 'string',
|
|
128
|
+
isNoCover: 'string',
|
|
129
|
+
isNoCoverPropobility: 'string',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
exports.CardQuality = CardQuality;
|
|
134
|
+
// 卡证OCR风险结果
|
|
135
|
+
class RiskInfo extends $tea.Model {
|
|
136
|
+
constructor(map) {
|
|
137
|
+
super(map);
|
|
138
|
+
}
|
|
139
|
+
static names() {
|
|
140
|
+
return {
|
|
141
|
+
copy: 'copy',
|
|
142
|
+
reshoot: 'reshoot',
|
|
143
|
+
imageStatus: 'image_status',
|
|
144
|
+
riskType: 'risk_type',
|
|
145
|
+
cardQuality: 'card_quality',
|
|
146
|
+
idcardNumberType: 'idcard_number_type',
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static types() {
|
|
150
|
+
return {
|
|
151
|
+
copy: 'string',
|
|
152
|
+
reshoot: 'string',
|
|
153
|
+
imageStatus: { 'type': 'array', 'itemType': 'string' },
|
|
154
|
+
riskType: { 'type': 'array', 'itemType': 'string' },
|
|
155
|
+
cardQuality: CardQuality,
|
|
156
|
+
idcardNumberType: 'string',
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
exports.RiskInfo = RiskInfo;
|
|
84
161
|
// 音频元数据
|
|
85
162
|
class AudioMeta extends $tea.Model {
|
|
86
163
|
constructor(map) {
|
|
@@ -125,6 +202,111 @@ class Audio extends $tea.Model {
|
|
|
125
202
|
}
|
|
126
203
|
}
|
|
127
204
|
exports.Audio = Audio;
|
|
205
|
+
// 卡证OCR识别结果
|
|
206
|
+
class OcrInfo extends $tea.Model {
|
|
207
|
+
constructor(map) {
|
|
208
|
+
super(map);
|
|
209
|
+
}
|
|
210
|
+
static names() {
|
|
211
|
+
return {
|
|
212
|
+
side: 'side',
|
|
213
|
+
photo: 'photo',
|
|
214
|
+
photoLocation: 'photo_location',
|
|
215
|
+
cardImage: 'card_image',
|
|
216
|
+
cardLocation: 'card_location',
|
|
217
|
+
name: 'name',
|
|
218
|
+
sex: 'sex',
|
|
219
|
+
nationality: 'nationality',
|
|
220
|
+
birth: 'birth',
|
|
221
|
+
address: 'address',
|
|
222
|
+
num: 'num',
|
|
223
|
+
startDate: 'start_date',
|
|
224
|
+
endDate: 'end_date',
|
|
225
|
+
issue: 'issue',
|
|
226
|
+
bankCardType: 'bank_card_type',
|
|
227
|
+
bankName: 'bank_name',
|
|
228
|
+
cardNumber: 'card_number',
|
|
229
|
+
validToDate: 'valid_to_date',
|
|
230
|
+
title: 'title',
|
|
231
|
+
dateOfExpiry: 'date_of_expiry',
|
|
232
|
+
changeNum: 'change_num',
|
|
233
|
+
firstIssue: 'first_issue',
|
|
234
|
+
driverClass: 'driver_class',
|
|
235
|
+
docNum: 'doc_num',
|
|
236
|
+
issueTime: 'issue_time',
|
|
237
|
+
currentTime: 'current_time',
|
|
238
|
+
barCode: 'bar_code',
|
|
239
|
+
points: 'points',
|
|
240
|
+
remark: 'remark',
|
|
241
|
+
status: 'status',
|
|
242
|
+
vehicle: 'vehicle',
|
|
243
|
+
model: 'model',
|
|
244
|
+
type: 'type',
|
|
245
|
+
useage: 'useage',
|
|
246
|
+
engNum: 'eng_num',
|
|
247
|
+
plate: 'plate',
|
|
248
|
+
inspecRecord: 'inspec_record',
|
|
249
|
+
load: 'load',
|
|
250
|
+
curbMass: 'curb_mass',
|
|
251
|
+
overallDimension: 'overall_dimension',
|
|
252
|
+
seating: 'seating',
|
|
253
|
+
grossMass: 'gross_mass',
|
|
254
|
+
fuel: 'fuel',
|
|
255
|
+
tractionMass: 'traction_mass',
|
|
256
|
+
chipNum: 'chip_num',
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
static types() {
|
|
260
|
+
return {
|
|
261
|
+
side: 'string',
|
|
262
|
+
photo: 'string',
|
|
263
|
+
photoLocation: OcrLocation,
|
|
264
|
+
cardImage: 'string',
|
|
265
|
+
cardLocation: OcrLocation,
|
|
266
|
+
name: 'string',
|
|
267
|
+
sex: 'string',
|
|
268
|
+
nationality: 'string',
|
|
269
|
+
birth: 'string',
|
|
270
|
+
address: 'string',
|
|
271
|
+
num: 'string',
|
|
272
|
+
startDate: 'string',
|
|
273
|
+
endDate: 'string',
|
|
274
|
+
issue: 'string',
|
|
275
|
+
bankCardType: 'string',
|
|
276
|
+
bankName: 'string',
|
|
277
|
+
cardNumber: 'string',
|
|
278
|
+
validToDate: 'string',
|
|
279
|
+
title: 'string',
|
|
280
|
+
dateOfExpiry: 'string',
|
|
281
|
+
changeNum: 'string',
|
|
282
|
+
firstIssue: 'string',
|
|
283
|
+
driverClass: 'string',
|
|
284
|
+
docNum: 'string',
|
|
285
|
+
issueTime: 'string',
|
|
286
|
+
currentTime: 'string',
|
|
287
|
+
barCode: 'string',
|
|
288
|
+
points: 'string',
|
|
289
|
+
remark: 'string',
|
|
290
|
+
status: 'string',
|
|
291
|
+
vehicle: 'string',
|
|
292
|
+
model: 'string',
|
|
293
|
+
type: 'string',
|
|
294
|
+
useage: 'string',
|
|
295
|
+
engNum: 'string',
|
|
296
|
+
plate: 'string',
|
|
297
|
+
inspecRecord: 'string',
|
|
298
|
+
load: 'string',
|
|
299
|
+
curbMass: 'string',
|
|
300
|
+
overallDimension: 'string',
|
|
301
|
+
seating: 'string',
|
|
302
|
+
grossMass: 'string',
|
|
303
|
+
fuel: 'string',
|
|
304
|
+
tractionMass: 'string',
|
|
305
|
+
chipNum: 'string',
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
exports.OcrInfo = OcrInfo;
|
|
128
310
|
// 键值对
|
|
129
311
|
class XNameValuePair extends $tea.Model {
|
|
130
312
|
constructor(map) {
|
|
@@ -2522,6 +2704,9 @@ class CreateFaceverifyServerRequest extends $tea.Model {
|
|
|
2522
2704
|
userMobile: 'user_mobile',
|
|
2523
2705
|
callbackNeedRetry: 'callback_need_retry',
|
|
2524
2706
|
model: 'model',
|
|
2707
|
+
fileObject: 'fileObject',
|
|
2708
|
+
fileObjectName: 'fileObjectName',
|
|
2709
|
+
fileId: 'file_id',
|
|
2525
2710
|
};
|
|
2526
2711
|
}
|
|
2527
2712
|
static types() {
|
|
@@ -2546,6 +2731,9 @@ class CreateFaceverifyServerRequest extends $tea.Model {
|
|
|
2546
2731
|
userMobile: 'string',
|
|
2547
2732
|
callbackNeedRetry: 'string',
|
|
2548
2733
|
model: 'string',
|
|
2734
|
+
fileObject: 'Readable',
|
|
2735
|
+
fileObjectName: 'string',
|
|
2736
|
+
fileId: 'string',
|
|
2549
2737
|
};
|
|
2550
2738
|
}
|
|
2551
2739
|
}
|
|
@@ -3114,6 +3302,132 @@ class QueryFaceverifyServermaterialResponse extends $tea.Model {
|
|
|
3114
3302
|
}
|
|
3115
3303
|
}
|
|
3116
3304
|
exports.QueryFaceverifyServermaterialResponse = QueryFaceverifyServermaterialResponse;
|
|
3305
|
+
class ScaleinImageRequest extends $tea.Model {
|
|
3306
|
+
constructor(map) {
|
|
3307
|
+
super(map);
|
|
3308
|
+
}
|
|
3309
|
+
static names() {
|
|
3310
|
+
return {
|
|
3311
|
+
authToken: 'auth_token',
|
|
3312
|
+
productInstanceId: 'product_instance_id',
|
|
3313
|
+
fileObject: 'fileObject',
|
|
3314
|
+
fileObjectName: 'fileObjectName',
|
|
3315
|
+
fileId: 'file_id',
|
|
3316
|
+
};
|
|
3317
|
+
}
|
|
3318
|
+
static types() {
|
|
3319
|
+
return {
|
|
3320
|
+
authToken: 'string',
|
|
3321
|
+
productInstanceId: 'string',
|
|
3322
|
+
fileObject: 'Readable',
|
|
3323
|
+
fileObjectName: 'string',
|
|
3324
|
+
fileId: 'string',
|
|
3325
|
+
};
|
|
3326
|
+
}
|
|
3327
|
+
}
|
|
3328
|
+
exports.ScaleinImageRequest = ScaleinImageRequest;
|
|
3329
|
+
class ScaleinImageResponse extends $tea.Model {
|
|
3330
|
+
constructor(map) {
|
|
3331
|
+
super(map);
|
|
3332
|
+
}
|
|
3333
|
+
static names() {
|
|
3334
|
+
return {
|
|
3335
|
+
reqMsgId: 'req_msg_id',
|
|
3336
|
+
resultCode: 'result_code',
|
|
3337
|
+
resultMsg: 'result_msg',
|
|
3338
|
+
base64: 'base64',
|
|
3339
|
+
};
|
|
3340
|
+
}
|
|
3341
|
+
static types() {
|
|
3342
|
+
return {
|
|
3343
|
+
reqMsgId: 'string',
|
|
3344
|
+
resultCode: 'string',
|
|
3345
|
+
resultMsg: 'string',
|
|
3346
|
+
base64: 'string',
|
|
3347
|
+
};
|
|
3348
|
+
}
|
|
3349
|
+
}
|
|
3350
|
+
exports.ScaleinImageResponse = ScaleinImageResponse;
|
|
3351
|
+
class RecognizeOcrIndividualcardRequest extends $tea.Model {
|
|
3352
|
+
constructor(map) {
|
|
3353
|
+
super(map);
|
|
3354
|
+
}
|
|
3355
|
+
static names() {
|
|
3356
|
+
return {
|
|
3357
|
+
authToken: 'auth_token',
|
|
3358
|
+
productInstanceId: 'product_instance_id',
|
|
3359
|
+
outerOrderNo: 'outer_order_no',
|
|
3360
|
+
ocrType: 'ocr_type',
|
|
3361
|
+
dataType: 'data_type',
|
|
3362
|
+
dataContent: 'data_content',
|
|
3363
|
+
fileObject: 'fileObject',
|
|
3364
|
+
fileObjectName: 'fileObjectName',
|
|
3365
|
+
fileId: 'file_id',
|
|
3366
|
+
reqEncType: 'req_enc_type',
|
|
3367
|
+
respEncType: 'resp_enc_type',
|
|
3368
|
+
encToken: 'enc_token',
|
|
3369
|
+
riskInfoType: 'risk_info_type',
|
|
3370
|
+
returnPhoto: 'return_photo',
|
|
3371
|
+
returnImage: 'return_image',
|
|
3372
|
+
externParam: 'extern_param',
|
|
3373
|
+
};
|
|
3374
|
+
}
|
|
3375
|
+
static types() {
|
|
3376
|
+
return {
|
|
3377
|
+
authToken: 'string',
|
|
3378
|
+
productInstanceId: 'string',
|
|
3379
|
+
outerOrderNo: 'string',
|
|
3380
|
+
ocrType: 'string',
|
|
3381
|
+
dataType: 'string',
|
|
3382
|
+
dataContent: 'string',
|
|
3383
|
+
fileObject: 'Readable',
|
|
3384
|
+
fileObjectName: 'string',
|
|
3385
|
+
fileId: 'string',
|
|
3386
|
+
reqEncType: 'string',
|
|
3387
|
+
respEncType: 'string',
|
|
3388
|
+
encToken: 'string',
|
|
3389
|
+
riskInfoType: 'string',
|
|
3390
|
+
returnPhoto: 'string',
|
|
3391
|
+
returnImage: 'string',
|
|
3392
|
+
externParam: 'string',
|
|
3393
|
+
};
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
exports.RecognizeOcrIndividualcardRequest = RecognizeOcrIndividualcardRequest;
|
|
3397
|
+
class RecognizeOcrIndividualcardResponse extends $tea.Model {
|
|
3398
|
+
constructor(map) {
|
|
3399
|
+
super(map);
|
|
3400
|
+
}
|
|
3401
|
+
static names() {
|
|
3402
|
+
return {
|
|
3403
|
+
reqMsgId: 'req_msg_id',
|
|
3404
|
+
resultCode: 'result_code',
|
|
3405
|
+
resultMsg: 'result_msg',
|
|
3406
|
+
retCode: 'ret_code',
|
|
3407
|
+
retCodeSub: 'ret_code_sub',
|
|
3408
|
+
retMessageSub: 'ret_message_sub',
|
|
3409
|
+
ocrInfo: 'ocr_info',
|
|
3410
|
+
riskInfo: 'risk_info',
|
|
3411
|
+
extInfo: 'ext_info',
|
|
3412
|
+
ocrInfoEncrypt: 'ocr_info_encrypt',
|
|
3413
|
+
};
|
|
3414
|
+
}
|
|
3415
|
+
static types() {
|
|
3416
|
+
return {
|
|
3417
|
+
reqMsgId: 'string',
|
|
3418
|
+
resultCode: 'string',
|
|
3419
|
+
resultMsg: 'string',
|
|
3420
|
+
retCode: 'string',
|
|
3421
|
+
retCodeSub: 'string',
|
|
3422
|
+
retMessageSub: 'string',
|
|
3423
|
+
ocrInfo: OcrInfo,
|
|
3424
|
+
riskInfo: RiskInfo,
|
|
3425
|
+
extInfo: 'string',
|
|
3426
|
+
ocrInfoEncrypt: 'string',
|
|
3427
|
+
};
|
|
3428
|
+
}
|
|
3429
|
+
}
|
|
3430
|
+
exports.RecognizeOcrIndividualcardResponse = RecognizeOcrIndividualcardResponse;
|
|
3117
3431
|
class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
3118
3432
|
constructor(map) {
|
|
3119
3433
|
super(map);
|
|
@@ -3258,7 +3572,7 @@ class Client {
|
|
|
3258
3572
|
req_msg_id: alipay_util_1.default.getNonce(),
|
|
3259
3573
|
access_key: this._accessKeyId,
|
|
3260
3574
|
base_sdk_version: "TeaSDK-2.0",
|
|
3261
|
-
sdk_version: "1.21.
|
|
3575
|
+
sdk_version: "1.21.19",
|
|
3262
3576
|
_prod_code: "REALPERSON",
|
|
3263
3577
|
_prod_channel: "undefined",
|
|
3264
3578
|
};
|
|
@@ -4083,6 +4397,26 @@ class Client {
|
|
|
4083
4397
|
* Summary: 数科刷脸服务端初始化接口
|
|
4084
4398
|
*/
|
|
4085
4399
|
async createFaceverifyServerEx(request, headers, runtime) {
|
|
4400
|
+
if (!tea_util_1.default.isUnset(request.fileObject)) {
|
|
4401
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
4402
|
+
authToken: request.authToken,
|
|
4403
|
+
apiCode: "di.realperson.faceverify.server.create",
|
|
4404
|
+
fileName: request.fileObjectName,
|
|
4405
|
+
});
|
|
4406
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
4407
|
+
if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
|
|
4408
|
+
let createFaceverifyServerResponse = new CreateFaceverifyServerResponse({
|
|
4409
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
4410
|
+
resultCode: uploadResp.resultCode,
|
|
4411
|
+
resultMsg: uploadResp.resultMsg,
|
|
4412
|
+
});
|
|
4413
|
+
return createFaceverifyServerResponse;
|
|
4414
|
+
}
|
|
4415
|
+
let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
4416
|
+
await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
4417
|
+
request.fileId = uploadResp.fileId;
|
|
4418
|
+
request.fileObject = null;
|
|
4419
|
+
}
|
|
4086
4420
|
tea_util_1.default.validateModel(request);
|
|
4087
4421
|
return $tea.cast(await this.doRequest("1.0", "di.realperson.faceverify.server.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateFaceverifyServerResponse({}));
|
|
4088
4422
|
}
|
|
@@ -4259,6 +4593,80 @@ class Client {
|
|
|
4259
4593
|
tea_util_1.default.validateModel(request);
|
|
4260
4594
|
return $tea.cast(await this.doRequest("1.0", "di.realperson.faceverify.servermaterial.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryFaceverifyServermaterialResponse({}));
|
|
4261
4595
|
}
|
|
4596
|
+
/**
|
|
4597
|
+
* Description: 图片压缩接口
|
|
4598
|
+
* Summary: 图片压缩接口
|
|
4599
|
+
*/
|
|
4600
|
+
async scaleinImage(request) {
|
|
4601
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4602
|
+
let headers = {};
|
|
4603
|
+
return await this.scaleinImageEx(request, headers, runtime);
|
|
4604
|
+
}
|
|
4605
|
+
/**
|
|
4606
|
+
* Description: 图片压缩接口
|
|
4607
|
+
* Summary: 图片压缩接口
|
|
4608
|
+
*/
|
|
4609
|
+
async scaleinImageEx(request, headers, runtime) {
|
|
4610
|
+
if (!tea_util_1.default.isUnset(request.fileObject)) {
|
|
4611
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
4612
|
+
authToken: request.authToken,
|
|
4613
|
+
apiCode: "di.realperson.image.scalein",
|
|
4614
|
+
fileName: request.fileObjectName,
|
|
4615
|
+
});
|
|
4616
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
4617
|
+
if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
|
|
4618
|
+
let scaleinImageResponse = new ScaleinImageResponse({
|
|
4619
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
4620
|
+
resultCode: uploadResp.resultCode,
|
|
4621
|
+
resultMsg: uploadResp.resultMsg,
|
|
4622
|
+
});
|
|
4623
|
+
return scaleinImageResponse;
|
|
4624
|
+
}
|
|
4625
|
+
let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
4626
|
+
await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
4627
|
+
request.fileId = uploadResp.fileId;
|
|
4628
|
+
request.fileObject = null;
|
|
4629
|
+
}
|
|
4630
|
+
tea_util_1.default.validateModel(request);
|
|
4631
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.image.scalein", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ScaleinImageResponse({}));
|
|
4632
|
+
}
|
|
4633
|
+
/**
|
|
4634
|
+
* Description: 要素卡证OCR
|
|
4635
|
+
* Summary: 要素卡证OCR
|
|
4636
|
+
*/
|
|
4637
|
+
async recognizeOcrIndividualcard(request) {
|
|
4638
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
4639
|
+
let headers = {};
|
|
4640
|
+
return await this.recognizeOcrIndividualcardEx(request, headers, runtime);
|
|
4641
|
+
}
|
|
4642
|
+
/**
|
|
4643
|
+
* Description: 要素卡证OCR
|
|
4644
|
+
* Summary: 要素卡证OCR
|
|
4645
|
+
*/
|
|
4646
|
+
async recognizeOcrIndividualcardEx(request, headers, runtime) {
|
|
4647
|
+
if (!tea_util_1.default.isUnset(request.fileObject)) {
|
|
4648
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
4649
|
+
authToken: request.authToken,
|
|
4650
|
+
apiCode: "di.realperson.ocr.individualcard.recognize",
|
|
4651
|
+
fileName: request.fileObjectName,
|
|
4652
|
+
});
|
|
4653
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
4654
|
+
if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
|
|
4655
|
+
let recognizeOcrIndividualcardResponse = new RecognizeOcrIndividualcardResponse({
|
|
4656
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
4657
|
+
resultCode: uploadResp.resultCode,
|
|
4658
|
+
resultMsg: uploadResp.resultMsg,
|
|
4659
|
+
});
|
|
4660
|
+
return recognizeOcrIndividualcardResponse;
|
|
4661
|
+
}
|
|
4662
|
+
let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
4663
|
+
await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
4664
|
+
request.fileId = uploadResp.fileId;
|
|
4665
|
+
request.fileObject = null;
|
|
4666
|
+
}
|
|
4667
|
+
tea_util_1.default.validateModel(request);
|
|
4668
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.ocr.individualcard.recognize", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new RecognizeOcrIndividualcardResponse({}));
|
|
4669
|
+
}
|
|
4262
4670
|
/**
|
|
4263
4671
|
* Description: 创建HTTP PUT提交的文件上传
|
|
4264
4672
|
* Summary: 文件上传创建
|