@antchain/realperson 1.1.4 → 1.9.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 +886 -68
- package/dist/client.js +1403 -156
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +2069 -228
package/dist/client.js
CHANGED
|
@@ -38,6 +38,10 @@ class Config extends $tea.Model {
|
|
|
38
38
|
userAgent: 'userAgent',
|
|
39
39
|
socks5Proxy: 'socks5Proxy',
|
|
40
40
|
socks5NetWork: 'socks5NetWork',
|
|
41
|
+
maxIdleTimeMillis: 'maxIdleTimeMillis',
|
|
42
|
+
keepAliveDurationMillis: 'keepAliveDurationMillis',
|
|
43
|
+
maxRequests: 'maxRequests',
|
|
44
|
+
maxRequestsPerHost: 'maxRequestsPerHost',
|
|
41
45
|
};
|
|
42
46
|
}
|
|
43
47
|
static types() {
|
|
@@ -56,11 +60,970 @@ class Config extends $tea.Model {
|
|
|
56
60
|
userAgent: 'string',
|
|
57
61
|
socks5Proxy: 'string',
|
|
58
62
|
socks5NetWork: 'string',
|
|
63
|
+
maxIdleTimeMillis: 'number',
|
|
64
|
+
keepAliveDurationMillis: 'number',
|
|
65
|
+
maxRequests: 'number',
|
|
66
|
+
maxRequestsPerHost: 'number',
|
|
59
67
|
};
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
70
|
exports.Config = Config;
|
|
63
|
-
|
|
71
|
+
// 音频元数据
|
|
72
|
+
class AudioMeta extends $tea.Model {
|
|
73
|
+
constructor(map) {
|
|
74
|
+
super(map);
|
|
75
|
+
}
|
|
76
|
+
static names() {
|
|
77
|
+
return {
|
|
78
|
+
sampleFreq: 'sample_freq',
|
|
79
|
+
channelsNum: 'channels_num',
|
|
80
|
+
bits: 'bits',
|
|
81
|
+
channel: 'channel',
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
static types() {
|
|
85
|
+
return {
|
|
86
|
+
sampleFreq: 'number',
|
|
87
|
+
channelsNum: 'number',
|
|
88
|
+
bits: 'number',
|
|
89
|
+
channel: 'number',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.AudioMeta = AudioMeta;
|
|
94
|
+
// 音频文件
|
|
95
|
+
class Audio extends $tea.Model {
|
|
96
|
+
constructor(map) {
|
|
97
|
+
super(map);
|
|
98
|
+
}
|
|
99
|
+
static names() {
|
|
100
|
+
return {
|
|
101
|
+
token: 'token',
|
|
102
|
+
rawData: 'raw_data',
|
|
103
|
+
audioUrl: 'audio_url',
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
static types() {
|
|
107
|
+
return {
|
|
108
|
+
token: 'string',
|
|
109
|
+
rawData: 'string',
|
|
110
|
+
audioUrl: 'string',
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
exports.Audio = Audio;
|
|
115
|
+
// 键值对
|
|
116
|
+
class XNameValuePair extends $tea.Model {
|
|
117
|
+
constructor(map) {
|
|
118
|
+
super(map);
|
|
119
|
+
}
|
|
120
|
+
static names() {
|
|
121
|
+
return {
|
|
122
|
+
name: 'name',
|
|
123
|
+
value: 'value',
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
static types() {
|
|
127
|
+
return {
|
|
128
|
+
name: 'string',
|
|
129
|
+
value: 'string',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
exports.XNameValuePair = XNameValuePair;
|
|
134
|
+
class QueryFacevrfServerRequest extends $tea.Model {
|
|
135
|
+
constructor(map) {
|
|
136
|
+
super(map);
|
|
137
|
+
}
|
|
138
|
+
static names() {
|
|
139
|
+
return {
|
|
140
|
+
authToken: 'auth_token',
|
|
141
|
+
productInstanceId: 'product_instance_id',
|
|
142
|
+
certifyId: 'certify_id',
|
|
143
|
+
externParam: 'extern_param',
|
|
144
|
+
materialHash: 'material_hash',
|
|
145
|
+
outerOrderNo: 'outer_order_no',
|
|
146
|
+
sceneId: 'scene_id',
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
static types() {
|
|
150
|
+
return {
|
|
151
|
+
authToken: 'string',
|
|
152
|
+
productInstanceId: 'string',
|
|
153
|
+
certifyId: 'string',
|
|
154
|
+
externParam: 'string',
|
|
155
|
+
materialHash: 'string',
|
|
156
|
+
outerOrderNo: 'string',
|
|
157
|
+
sceneId: 'string',
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
exports.QueryFacevrfServerRequest = QueryFacevrfServerRequest;
|
|
162
|
+
class QueryFacevrfServerResponse extends $tea.Model {
|
|
163
|
+
constructor(map) {
|
|
164
|
+
super(map);
|
|
165
|
+
}
|
|
166
|
+
static names() {
|
|
167
|
+
return {
|
|
168
|
+
reqMsgId: 'req_msg_id',
|
|
169
|
+
resultCode: 'result_code',
|
|
170
|
+
resultMsg: 'result_msg',
|
|
171
|
+
identityInfo: 'identity_info',
|
|
172
|
+
materialInfo: 'material_info',
|
|
173
|
+
materialMatched: 'material_matched',
|
|
174
|
+
passed: 'passed',
|
|
175
|
+
reason: 'reason',
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
static types() {
|
|
179
|
+
return {
|
|
180
|
+
reqMsgId: 'string',
|
|
181
|
+
resultCode: 'string',
|
|
182
|
+
resultMsg: 'string',
|
|
183
|
+
identityInfo: 'string',
|
|
184
|
+
materialInfo: 'string',
|
|
185
|
+
materialMatched: 'string',
|
|
186
|
+
passed: 'string',
|
|
187
|
+
reason: 'string',
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
exports.QueryFacevrfServerResponse = QueryFacevrfServerResponse;
|
|
192
|
+
class CreateFacevrfServerRequest extends $tea.Model {
|
|
193
|
+
constructor(map) {
|
|
194
|
+
super(map);
|
|
195
|
+
}
|
|
196
|
+
static names() {
|
|
197
|
+
return {
|
|
198
|
+
authToken: 'auth_token',
|
|
199
|
+
productInstanceId: 'product_instance_id',
|
|
200
|
+
bizCode: 'biz_code',
|
|
201
|
+
callbackUrl: 'callback_url',
|
|
202
|
+
certName: 'cert_name',
|
|
203
|
+
certNo: 'cert_no',
|
|
204
|
+
encType: 'enc_type',
|
|
205
|
+
certType: 'cert_type',
|
|
206
|
+
externParam: 'extern_param',
|
|
207
|
+
facialPictureRef: 'facial_picture_ref',
|
|
208
|
+
identityType: 'identity_type',
|
|
209
|
+
metaInfo: 'meta_info',
|
|
210
|
+
outerOrderNo: 'outer_order_no',
|
|
211
|
+
returnUrl: 'return_url',
|
|
212
|
+
sceneId: 'scene_id',
|
|
213
|
+
userId: 'user_id',
|
|
214
|
+
userIp: 'user_ip',
|
|
215
|
+
userMobile: 'user_mobile',
|
|
216
|
+
callbackNeedRetry: 'callback_need_retry',
|
|
217
|
+
model: 'model',
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
static types() {
|
|
221
|
+
return {
|
|
222
|
+
authToken: 'string',
|
|
223
|
+
productInstanceId: 'string',
|
|
224
|
+
bizCode: 'string',
|
|
225
|
+
callbackUrl: 'string',
|
|
226
|
+
certName: 'string',
|
|
227
|
+
certNo: 'string',
|
|
228
|
+
encType: 'string',
|
|
229
|
+
certType: 'string',
|
|
230
|
+
externParam: 'string',
|
|
231
|
+
facialPictureRef: 'string',
|
|
232
|
+
identityType: 'string',
|
|
233
|
+
metaInfo: 'string',
|
|
234
|
+
outerOrderNo: 'string',
|
|
235
|
+
returnUrl: 'string',
|
|
236
|
+
sceneId: 'string',
|
|
237
|
+
userId: 'string',
|
|
238
|
+
userIp: 'string',
|
|
239
|
+
userMobile: 'string',
|
|
240
|
+
callbackNeedRetry: 'boolean',
|
|
241
|
+
model: 'string',
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
exports.CreateFacevrfServerRequest = CreateFacevrfServerRequest;
|
|
246
|
+
class CreateFacevrfServerResponse extends $tea.Model {
|
|
247
|
+
constructor(map) {
|
|
248
|
+
super(map);
|
|
249
|
+
}
|
|
250
|
+
static names() {
|
|
251
|
+
return {
|
|
252
|
+
reqMsgId: 'req_msg_id',
|
|
253
|
+
resultCode: 'result_code',
|
|
254
|
+
resultMsg: 'result_msg',
|
|
255
|
+
certifyId: 'certify_id',
|
|
256
|
+
certifyUrl: 'certify_url',
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
static types() {
|
|
260
|
+
return {
|
|
261
|
+
reqMsgId: 'string',
|
|
262
|
+
resultCode: 'string',
|
|
263
|
+
resultMsg: 'string',
|
|
264
|
+
certifyId: 'string',
|
|
265
|
+
certifyUrl: 'string',
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
exports.CreateFacevrfServerResponse = CreateFacevrfServerResponse;
|
|
270
|
+
class ExecFacevrfServerRequest extends $tea.Model {
|
|
271
|
+
constructor(map) {
|
|
272
|
+
super(map);
|
|
273
|
+
}
|
|
274
|
+
static names() {
|
|
275
|
+
return {
|
|
276
|
+
authToken: 'auth_token',
|
|
277
|
+
productInstanceId: 'product_instance_id',
|
|
278
|
+
certName: 'cert_name',
|
|
279
|
+
certNo: 'cert_no',
|
|
280
|
+
encType: 'enc_type',
|
|
281
|
+
certType: 'cert_type',
|
|
282
|
+
externParam: 'extern_param',
|
|
283
|
+
facialPictureRef: 'facial_picture_ref',
|
|
284
|
+
identityType: 'identity_type',
|
|
285
|
+
outerOrderNo: 'outer_order_no',
|
|
286
|
+
sceneId: 'scene_id',
|
|
287
|
+
userId: 'user_id',
|
|
288
|
+
userIp: 'user_ip',
|
|
289
|
+
userMobile: 'user_mobile',
|
|
290
|
+
facialPictureAuth: 'facial_picture_auth',
|
|
291
|
+
};
|
|
292
|
+
}
|
|
293
|
+
static types() {
|
|
294
|
+
return {
|
|
295
|
+
authToken: 'string',
|
|
296
|
+
productInstanceId: 'string',
|
|
297
|
+
certName: 'string',
|
|
298
|
+
certNo: 'string',
|
|
299
|
+
encType: 'string',
|
|
300
|
+
certType: 'string',
|
|
301
|
+
externParam: 'string',
|
|
302
|
+
facialPictureRef: 'string',
|
|
303
|
+
identityType: 'string',
|
|
304
|
+
outerOrderNo: 'string',
|
|
305
|
+
sceneId: 'string',
|
|
306
|
+
userId: 'string',
|
|
307
|
+
userIp: 'string',
|
|
308
|
+
userMobile: 'string',
|
|
309
|
+
facialPictureAuth: 'string',
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
exports.ExecFacevrfServerRequest = ExecFacevrfServerRequest;
|
|
314
|
+
class ExecFacevrfServerResponse extends $tea.Model {
|
|
315
|
+
constructor(map) {
|
|
316
|
+
super(map);
|
|
317
|
+
}
|
|
318
|
+
static names() {
|
|
319
|
+
return {
|
|
320
|
+
reqMsgId: 'req_msg_id',
|
|
321
|
+
resultCode: 'result_code',
|
|
322
|
+
resultMsg: 'result_msg',
|
|
323
|
+
certifyId: 'certify_id',
|
|
324
|
+
passed: 'passed',
|
|
325
|
+
reason: 'reason',
|
|
326
|
+
materialInfo: 'material_info',
|
|
327
|
+
};
|
|
328
|
+
}
|
|
329
|
+
static types() {
|
|
330
|
+
return {
|
|
331
|
+
reqMsgId: 'string',
|
|
332
|
+
resultCode: 'string',
|
|
333
|
+
resultMsg: 'string',
|
|
334
|
+
certifyId: 'string',
|
|
335
|
+
passed: 'string',
|
|
336
|
+
reason: 'string',
|
|
337
|
+
materialInfo: 'string',
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
exports.ExecFacevrfServerResponse = ExecFacevrfServerResponse;
|
|
342
|
+
class GetFacevrfEvidenceRequest extends $tea.Model {
|
|
343
|
+
constructor(map) {
|
|
344
|
+
super(map);
|
|
345
|
+
}
|
|
346
|
+
static names() {
|
|
347
|
+
return {
|
|
348
|
+
authToken: 'auth_token',
|
|
349
|
+
productInstanceId: 'product_instance_id',
|
|
350
|
+
certifyId: 'certify_id',
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
static types() {
|
|
354
|
+
return {
|
|
355
|
+
authToken: 'string',
|
|
356
|
+
productInstanceId: 'string',
|
|
357
|
+
certifyId: 'string',
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
exports.GetFacevrfEvidenceRequest = GetFacevrfEvidenceRequest;
|
|
362
|
+
class GetFacevrfEvidenceResponse extends $tea.Model {
|
|
363
|
+
constructor(map) {
|
|
364
|
+
super(map);
|
|
365
|
+
}
|
|
366
|
+
static names() {
|
|
367
|
+
return {
|
|
368
|
+
reqMsgId: 'req_msg_id',
|
|
369
|
+
resultCode: 'result_code',
|
|
370
|
+
resultMsg: 'result_msg',
|
|
371
|
+
certifyId: 'certify_id',
|
|
372
|
+
onchainId: 'onchain_id',
|
|
373
|
+
onchainStatus: 'onchain_status',
|
|
374
|
+
pdfExpired: 'pdf_expired',
|
|
375
|
+
pdfContent: 'pdf_content',
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
static types() {
|
|
379
|
+
return {
|
|
380
|
+
reqMsgId: 'string',
|
|
381
|
+
resultCode: 'string',
|
|
382
|
+
resultMsg: 'string',
|
|
383
|
+
certifyId: 'string',
|
|
384
|
+
onchainId: 'string',
|
|
385
|
+
onchainStatus: 'string',
|
|
386
|
+
pdfExpired: 'boolean',
|
|
387
|
+
pdfContent: 'string',
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
exports.GetFacevrfEvidenceResponse = GetFacevrfEvidenceResponse;
|
|
392
|
+
class CheckIndividualidTwometaRequest extends $tea.Model {
|
|
393
|
+
constructor(map) {
|
|
394
|
+
super(map);
|
|
395
|
+
}
|
|
396
|
+
static names() {
|
|
397
|
+
return {
|
|
398
|
+
authToken: 'auth_token',
|
|
399
|
+
productInstanceId: 'product_instance_id',
|
|
400
|
+
outerOrderNo: 'outer_order_no',
|
|
401
|
+
certName: 'cert_name',
|
|
402
|
+
certNo: 'cert_no',
|
|
403
|
+
externParam: 'extern_param',
|
|
404
|
+
scene: 'scene',
|
|
405
|
+
};
|
|
406
|
+
}
|
|
407
|
+
static types() {
|
|
408
|
+
return {
|
|
409
|
+
authToken: 'string',
|
|
410
|
+
productInstanceId: 'string',
|
|
411
|
+
outerOrderNo: 'string',
|
|
412
|
+
certName: 'string',
|
|
413
|
+
certNo: 'string',
|
|
414
|
+
externParam: 'string',
|
|
415
|
+
scene: 'string',
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
exports.CheckIndividualidTwometaRequest = CheckIndividualidTwometaRequest;
|
|
420
|
+
class CheckIndividualidTwometaResponse extends $tea.Model {
|
|
421
|
+
constructor(map) {
|
|
422
|
+
super(map);
|
|
423
|
+
}
|
|
424
|
+
static names() {
|
|
425
|
+
return {
|
|
426
|
+
reqMsgId: 'req_msg_id',
|
|
427
|
+
resultCode: 'result_code',
|
|
428
|
+
resultMsg: 'result_msg',
|
|
429
|
+
match: 'match',
|
|
430
|
+
externInfo: 'extern_info',
|
|
431
|
+
};
|
|
432
|
+
}
|
|
433
|
+
static types() {
|
|
434
|
+
return {
|
|
435
|
+
reqMsgId: 'string',
|
|
436
|
+
resultCode: 'string',
|
|
437
|
+
resultMsg: 'string',
|
|
438
|
+
match: 'string',
|
|
439
|
+
externInfo: 'string',
|
|
440
|
+
};
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
exports.CheckIndividualidTwometaResponse = CheckIndividualidTwometaResponse;
|
|
444
|
+
class CheckIndividualidThreemetaRequest extends $tea.Model {
|
|
445
|
+
constructor(map) {
|
|
446
|
+
super(map);
|
|
447
|
+
}
|
|
448
|
+
static names() {
|
|
449
|
+
return {
|
|
450
|
+
authToken: 'auth_token',
|
|
451
|
+
productInstanceId: 'product_instance_id',
|
|
452
|
+
outerOrderNo: 'outer_order_no',
|
|
453
|
+
certName: 'cert_name',
|
|
454
|
+
certNo: 'cert_no',
|
|
455
|
+
mobile: 'mobile',
|
|
456
|
+
externParam: 'extern_param',
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
static types() {
|
|
460
|
+
return {
|
|
461
|
+
authToken: 'string',
|
|
462
|
+
productInstanceId: 'string',
|
|
463
|
+
outerOrderNo: 'string',
|
|
464
|
+
certName: 'string',
|
|
465
|
+
certNo: 'string',
|
|
466
|
+
mobile: 'string',
|
|
467
|
+
externParam: 'string',
|
|
468
|
+
};
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
exports.CheckIndividualidThreemetaRequest = CheckIndividualidThreemetaRequest;
|
|
472
|
+
class CheckIndividualidThreemetaResponse extends $tea.Model {
|
|
473
|
+
constructor(map) {
|
|
474
|
+
super(map);
|
|
475
|
+
}
|
|
476
|
+
static names() {
|
|
477
|
+
return {
|
|
478
|
+
reqMsgId: 'req_msg_id',
|
|
479
|
+
resultCode: 'result_code',
|
|
480
|
+
resultMsg: 'result_msg',
|
|
481
|
+
match: 'match',
|
|
482
|
+
externInfo: 'extern_info',
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
static types() {
|
|
486
|
+
return {
|
|
487
|
+
reqMsgId: 'string',
|
|
488
|
+
resultCode: 'string',
|
|
489
|
+
resultMsg: 'string',
|
|
490
|
+
match: 'string',
|
|
491
|
+
externInfo: 'string',
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
exports.CheckIndividualidThreemetaResponse = CheckIndividualidThreemetaResponse;
|
|
496
|
+
class CheckIndividualidFourmetaRequest extends $tea.Model {
|
|
497
|
+
constructor(map) {
|
|
498
|
+
super(map);
|
|
499
|
+
}
|
|
500
|
+
static names() {
|
|
501
|
+
return {
|
|
502
|
+
authToken: 'auth_token',
|
|
503
|
+
productInstanceId: 'product_instance_id',
|
|
504
|
+
outerOrderNo: 'outer_order_no',
|
|
505
|
+
certName: 'cert_name',
|
|
506
|
+
certNo: 'cert_no',
|
|
507
|
+
mobile: 'mobile',
|
|
508
|
+
bankCard: 'bank_card',
|
|
509
|
+
externParam: 'extern_param',
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
static types() {
|
|
513
|
+
return {
|
|
514
|
+
authToken: 'string',
|
|
515
|
+
productInstanceId: 'string',
|
|
516
|
+
outerOrderNo: 'string',
|
|
517
|
+
certName: 'string',
|
|
518
|
+
certNo: 'string',
|
|
519
|
+
mobile: 'string',
|
|
520
|
+
bankCard: 'string',
|
|
521
|
+
externParam: 'string',
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
exports.CheckIndividualidFourmetaRequest = CheckIndividualidFourmetaRequest;
|
|
526
|
+
class CheckIndividualidFourmetaResponse extends $tea.Model {
|
|
527
|
+
constructor(map) {
|
|
528
|
+
super(map);
|
|
529
|
+
}
|
|
530
|
+
static names() {
|
|
531
|
+
return {
|
|
532
|
+
reqMsgId: 'req_msg_id',
|
|
533
|
+
resultCode: 'result_code',
|
|
534
|
+
resultMsg: 'result_msg',
|
|
535
|
+
match: 'match',
|
|
536
|
+
externInfo: 'extern_info',
|
|
537
|
+
};
|
|
538
|
+
}
|
|
539
|
+
static types() {
|
|
540
|
+
return {
|
|
541
|
+
reqMsgId: 'string',
|
|
542
|
+
resultCode: 'string',
|
|
543
|
+
resultMsg: 'string',
|
|
544
|
+
match: 'string',
|
|
545
|
+
externInfo: 'string',
|
|
546
|
+
};
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
exports.CheckIndividualidFourmetaResponse = CheckIndividualidFourmetaResponse;
|
|
550
|
+
class CheckRouteThreemetaRequest extends $tea.Model {
|
|
551
|
+
constructor(map) {
|
|
552
|
+
super(map);
|
|
553
|
+
}
|
|
554
|
+
static names() {
|
|
555
|
+
return {
|
|
556
|
+
authToken: 'auth_token',
|
|
557
|
+
productInstanceId: 'product_instance_id',
|
|
558
|
+
outerOrderNo: 'outer_order_no',
|
|
559
|
+
certName: 'cert_name',
|
|
560
|
+
certNo: 'cert_no',
|
|
561
|
+
mobile: 'mobile',
|
|
562
|
+
scene: 'scene',
|
|
563
|
+
externParam: 'extern_param',
|
|
564
|
+
};
|
|
565
|
+
}
|
|
566
|
+
static types() {
|
|
567
|
+
return {
|
|
568
|
+
authToken: 'string',
|
|
569
|
+
productInstanceId: 'string',
|
|
570
|
+
outerOrderNo: 'string',
|
|
571
|
+
certName: 'string',
|
|
572
|
+
certNo: 'string',
|
|
573
|
+
mobile: 'string',
|
|
574
|
+
scene: 'string',
|
|
575
|
+
externParam: 'string',
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
exports.CheckRouteThreemetaRequest = CheckRouteThreemetaRequest;
|
|
580
|
+
class CheckRouteThreemetaResponse extends $tea.Model {
|
|
581
|
+
constructor(map) {
|
|
582
|
+
super(map);
|
|
583
|
+
}
|
|
584
|
+
static names() {
|
|
585
|
+
return {
|
|
586
|
+
reqMsgId: 'req_msg_id',
|
|
587
|
+
resultCode: 'result_code',
|
|
588
|
+
resultMsg: 'result_msg',
|
|
589
|
+
match: 'match',
|
|
590
|
+
externInfo: 'extern_info',
|
|
591
|
+
};
|
|
592
|
+
}
|
|
593
|
+
static types() {
|
|
594
|
+
return {
|
|
595
|
+
reqMsgId: 'string',
|
|
596
|
+
resultCode: 'string',
|
|
597
|
+
resultMsg: 'string',
|
|
598
|
+
match: 'string',
|
|
599
|
+
externInfo: 'string',
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
exports.CheckRouteThreemetaResponse = CheckRouteThreemetaResponse;
|
|
604
|
+
class CreateVoiceprintServermodeRequest extends $tea.Model {
|
|
605
|
+
constructor(map) {
|
|
606
|
+
super(map);
|
|
607
|
+
}
|
|
608
|
+
static names() {
|
|
609
|
+
return {
|
|
610
|
+
authToken: 'auth_token',
|
|
611
|
+
productInstanceId: 'product_instance_id',
|
|
612
|
+
outerOrderNo: 'outer_order_no',
|
|
613
|
+
userId: 'user_id',
|
|
614
|
+
fileObject: 'fileObject',
|
|
615
|
+
fileObjectName: 'fileObjectName',
|
|
616
|
+
fileId: 'file_id',
|
|
617
|
+
audioMeta: 'audio_meta',
|
|
618
|
+
audios: 'audios',
|
|
619
|
+
externParam: 'extern_param',
|
|
620
|
+
};
|
|
621
|
+
}
|
|
622
|
+
static types() {
|
|
623
|
+
return {
|
|
624
|
+
authToken: 'string',
|
|
625
|
+
productInstanceId: 'string',
|
|
626
|
+
outerOrderNo: 'string',
|
|
627
|
+
userId: 'string',
|
|
628
|
+
fileObject: 'Readable',
|
|
629
|
+
fileObjectName: 'string',
|
|
630
|
+
fileId: 'string',
|
|
631
|
+
audioMeta: AudioMeta,
|
|
632
|
+
audios: { 'type': 'array', 'itemType': Audio },
|
|
633
|
+
externParam: 'string',
|
|
634
|
+
};
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
exports.CreateVoiceprintServermodeRequest = CreateVoiceprintServermodeRequest;
|
|
638
|
+
class CreateVoiceprintServermodeResponse extends $tea.Model {
|
|
639
|
+
constructor(map) {
|
|
640
|
+
super(map);
|
|
641
|
+
}
|
|
642
|
+
static names() {
|
|
643
|
+
return {
|
|
644
|
+
reqMsgId: 'req_msg_id',
|
|
645
|
+
resultCode: 'result_code',
|
|
646
|
+
resultMsg: 'result_msg',
|
|
647
|
+
externInfo: 'extern_info',
|
|
648
|
+
resultCodeSub: 'result_code_sub',
|
|
649
|
+
resultMsgSub: 'result_msg_sub',
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
static types() {
|
|
653
|
+
return {
|
|
654
|
+
reqMsgId: 'string',
|
|
655
|
+
resultCode: 'string',
|
|
656
|
+
resultMsg: 'string',
|
|
657
|
+
externInfo: 'string',
|
|
658
|
+
resultCodeSub: 'string',
|
|
659
|
+
resultMsgSub: 'string',
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
exports.CreateVoiceprintServermodeResponse = CreateVoiceprintServermodeResponse;
|
|
664
|
+
class VerifyVoiceprintServermodeRequest extends $tea.Model {
|
|
665
|
+
constructor(map) {
|
|
666
|
+
super(map);
|
|
667
|
+
}
|
|
668
|
+
static names() {
|
|
669
|
+
return {
|
|
670
|
+
authToken: 'auth_token',
|
|
671
|
+
productInstanceId: 'product_instance_id',
|
|
672
|
+
outerOrderNo: 'outer_order_no',
|
|
673
|
+
userId: 'user_id',
|
|
674
|
+
audioAuth: 'audio_auth',
|
|
675
|
+
audioUrl: 'audio_url',
|
|
676
|
+
audioMeta: 'audio_meta',
|
|
677
|
+
externParam: 'extern_param',
|
|
678
|
+
};
|
|
679
|
+
}
|
|
680
|
+
static types() {
|
|
681
|
+
return {
|
|
682
|
+
authToken: 'string',
|
|
683
|
+
productInstanceId: 'string',
|
|
684
|
+
outerOrderNo: 'string',
|
|
685
|
+
userId: 'string',
|
|
686
|
+
audioAuth: 'string',
|
|
687
|
+
audioUrl: 'string',
|
|
688
|
+
audioMeta: AudioMeta,
|
|
689
|
+
externParam: 'string',
|
|
690
|
+
};
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
exports.VerifyVoiceprintServermodeRequest = VerifyVoiceprintServermodeRequest;
|
|
694
|
+
class VerifyVoiceprintServermodeResponse extends $tea.Model {
|
|
695
|
+
constructor(map) {
|
|
696
|
+
super(map);
|
|
697
|
+
}
|
|
698
|
+
static names() {
|
|
699
|
+
return {
|
|
700
|
+
reqMsgId: 'req_msg_id',
|
|
701
|
+
resultCode: 'result_code',
|
|
702
|
+
resultMsg: 'result_msg',
|
|
703
|
+
certifyId: 'certify_id',
|
|
704
|
+
externInfo: 'extern_info',
|
|
705
|
+
resultCodeSub: 'result_code_sub',
|
|
706
|
+
resultMsgSub: 'result_msg_sub',
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
static types() {
|
|
710
|
+
return {
|
|
711
|
+
reqMsgId: 'string',
|
|
712
|
+
resultCode: 'string',
|
|
713
|
+
resultMsg: 'string',
|
|
714
|
+
certifyId: 'string',
|
|
715
|
+
externInfo: 'string',
|
|
716
|
+
resultCodeSub: 'string',
|
|
717
|
+
resultMsgSub: 'string',
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
exports.VerifyVoiceprintServermodeResponse = VerifyVoiceprintServermodeResponse;
|
|
722
|
+
class CheckRouteTwometaRequest extends $tea.Model {
|
|
723
|
+
constructor(map) {
|
|
724
|
+
super(map);
|
|
725
|
+
}
|
|
726
|
+
static names() {
|
|
727
|
+
return {
|
|
728
|
+
authToken: 'auth_token',
|
|
729
|
+
productInstanceId: 'product_instance_id',
|
|
730
|
+
outerOrderNo: 'outer_order_no',
|
|
731
|
+
certName: 'cert_name',
|
|
732
|
+
certNo: 'cert_no',
|
|
733
|
+
scene: 'scene',
|
|
734
|
+
externParam: 'extern_param',
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
static types() {
|
|
738
|
+
return {
|
|
739
|
+
authToken: 'string',
|
|
740
|
+
productInstanceId: 'string',
|
|
741
|
+
outerOrderNo: 'string',
|
|
742
|
+
certName: 'string',
|
|
743
|
+
certNo: 'string',
|
|
744
|
+
scene: 'string',
|
|
745
|
+
externParam: 'string',
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
exports.CheckRouteTwometaRequest = CheckRouteTwometaRequest;
|
|
750
|
+
class CheckRouteTwometaResponse extends $tea.Model {
|
|
751
|
+
constructor(map) {
|
|
752
|
+
super(map);
|
|
753
|
+
}
|
|
754
|
+
static names() {
|
|
755
|
+
return {
|
|
756
|
+
reqMsgId: 'req_msg_id',
|
|
757
|
+
resultCode: 'result_code',
|
|
758
|
+
resultMsg: 'result_msg',
|
|
759
|
+
match: 'match',
|
|
760
|
+
externInfo: 'extern_info',
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
static types() {
|
|
764
|
+
return {
|
|
765
|
+
reqMsgId: 'string',
|
|
766
|
+
resultCode: 'string',
|
|
767
|
+
resultMsg: 'string',
|
|
768
|
+
match: 'string',
|
|
769
|
+
externInfo: 'string',
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
exports.CheckRouteTwometaResponse = CheckRouteTwometaResponse;
|
|
774
|
+
class QueryMobileRiskRequest extends $tea.Model {
|
|
775
|
+
constructor(map) {
|
|
776
|
+
super(map);
|
|
777
|
+
}
|
|
778
|
+
static names() {
|
|
779
|
+
return {
|
|
780
|
+
authToken: 'auth_token',
|
|
781
|
+
productInstanceId: 'product_instance_id',
|
|
782
|
+
outerOrderNo: 'outer_order_no',
|
|
783
|
+
apdidToken: 'apdid_token',
|
|
784
|
+
scene: 'scene',
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
static types() {
|
|
788
|
+
return {
|
|
789
|
+
authToken: 'string',
|
|
790
|
+
productInstanceId: 'string',
|
|
791
|
+
outerOrderNo: 'string',
|
|
792
|
+
apdidToken: 'string',
|
|
793
|
+
scene: 'string',
|
|
794
|
+
};
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
exports.QueryMobileRiskRequest = QueryMobileRiskRequest;
|
|
798
|
+
class QueryMobileRiskResponse extends $tea.Model {
|
|
799
|
+
constructor(map) {
|
|
800
|
+
super(map);
|
|
801
|
+
}
|
|
802
|
+
static names() {
|
|
803
|
+
return {
|
|
804
|
+
reqMsgId: 'req_msg_id',
|
|
805
|
+
resultCode: 'result_code',
|
|
806
|
+
resultMsg: 'result_msg',
|
|
807
|
+
deviceInfo: 'device_info',
|
|
808
|
+
riskInfo: 'risk_info',
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
static types() {
|
|
812
|
+
return {
|
|
813
|
+
reqMsgId: 'string',
|
|
814
|
+
resultCode: 'string',
|
|
815
|
+
resultMsg: 'string',
|
|
816
|
+
deviceInfo: 'string',
|
|
817
|
+
riskInfo: 'string',
|
|
818
|
+
};
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
exports.QueryMobileRiskResponse = QueryMobileRiskResponse;
|
|
822
|
+
class DetailFacevrfServerRequest extends $tea.Model {
|
|
823
|
+
constructor(map) {
|
|
824
|
+
super(map);
|
|
825
|
+
}
|
|
826
|
+
static names() {
|
|
827
|
+
return {
|
|
828
|
+
authToken: 'auth_token',
|
|
829
|
+
productInstanceId: 'product_instance_id',
|
|
830
|
+
certifyId: 'certify_id',
|
|
831
|
+
externParam: 'extern_param',
|
|
832
|
+
};
|
|
833
|
+
}
|
|
834
|
+
static types() {
|
|
835
|
+
return {
|
|
836
|
+
authToken: 'string',
|
|
837
|
+
productInstanceId: 'string',
|
|
838
|
+
certifyId: 'string',
|
|
839
|
+
externParam: 'string',
|
|
840
|
+
};
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
exports.DetailFacevrfServerRequest = DetailFacevrfServerRequest;
|
|
844
|
+
class DetailFacevrfServerResponse extends $tea.Model {
|
|
845
|
+
constructor(map) {
|
|
846
|
+
super(map);
|
|
847
|
+
}
|
|
848
|
+
static names() {
|
|
849
|
+
return {
|
|
850
|
+
reqMsgId: 'req_msg_id',
|
|
851
|
+
resultCode: 'result_code',
|
|
852
|
+
resultMsg: 'result_msg',
|
|
853
|
+
state: 'state',
|
|
854
|
+
identityInfo: 'identity_info',
|
|
855
|
+
externInfo: 'extern_info',
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
static types() {
|
|
859
|
+
return {
|
|
860
|
+
reqMsgId: 'string',
|
|
861
|
+
resultCode: 'string',
|
|
862
|
+
resultMsg: 'string',
|
|
863
|
+
state: 'string',
|
|
864
|
+
identityInfo: 'string',
|
|
865
|
+
externInfo: 'string',
|
|
866
|
+
};
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
exports.DetailFacevrfServerResponse = DetailFacevrfServerResponse;
|
|
870
|
+
class CheckAnticheatPersonalRequest extends $tea.Model {
|
|
871
|
+
constructor(map) {
|
|
872
|
+
super(map);
|
|
873
|
+
}
|
|
874
|
+
static names() {
|
|
875
|
+
return {
|
|
876
|
+
authToken: 'auth_token',
|
|
877
|
+
productInstanceId: 'product_instance_id',
|
|
878
|
+
outerOrderNo: 'outer_order_no',
|
|
879
|
+
certName: 'cert_name',
|
|
880
|
+
certNo: 'cert_no',
|
|
881
|
+
companyName: 'company_name',
|
|
882
|
+
companyNo: 'company_no',
|
|
883
|
+
externParam: 'extern_param',
|
|
884
|
+
};
|
|
885
|
+
}
|
|
886
|
+
static types() {
|
|
887
|
+
return {
|
|
888
|
+
authToken: 'string',
|
|
889
|
+
productInstanceId: 'string',
|
|
890
|
+
outerOrderNo: 'string',
|
|
891
|
+
certName: 'string',
|
|
892
|
+
certNo: 'string',
|
|
893
|
+
companyName: 'string',
|
|
894
|
+
companyNo: 'string',
|
|
895
|
+
externParam: 'string',
|
|
896
|
+
};
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
exports.CheckAnticheatPersonalRequest = CheckAnticheatPersonalRequest;
|
|
900
|
+
class CheckAnticheatPersonalResponse extends $tea.Model {
|
|
901
|
+
constructor(map) {
|
|
902
|
+
super(map);
|
|
903
|
+
}
|
|
904
|
+
static names() {
|
|
905
|
+
return {
|
|
906
|
+
reqMsgId: 'req_msg_id',
|
|
907
|
+
resultCode: 'result_code',
|
|
908
|
+
resultMsg: 'result_msg',
|
|
909
|
+
riskLevel: 'risk_level',
|
|
910
|
+
riskLevelDesc: 'risk_level_desc',
|
|
911
|
+
externInfo: 'extern_info',
|
|
912
|
+
};
|
|
913
|
+
}
|
|
914
|
+
static types() {
|
|
915
|
+
return {
|
|
916
|
+
reqMsgId: 'string',
|
|
917
|
+
resultCode: 'string',
|
|
918
|
+
resultMsg: 'string',
|
|
919
|
+
riskLevel: 'string',
|
|
920
|
+
riskLevelDesc: 'string',
|
|
921
|
+
externInfo: 'string',
|
|
922
|
+
};
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
exports.CheckAnticheatPersonalResponse = CheckAnticheatPersonalResponse;
|
|
926
|
+
class CheckTwometaHashRequest extends $tea.Model {
|
|
927
|
+
constructor(map) {
|
|
928
|
+
super(map);
|
|
929
|
+
}
|
|
930
|
+
static names() {
|
|
931
|
+
return {
|
|
932
|
+
authToken: 'auth_token',
|
|
933
|
+
productInstanceId: 'product_instance_id',
|
|
934
|
+
certNoHash: 'cert_no_hash',
|
|
935
|
+
certNameHash: 'cert_name_hash',
|
|
936
|
+
outerOrderId: 'outer_order_id',
|
|
937
|
+
hashType: 'hash_type',
|
|
938
|
+
externInfo: 'extern_info',
|
|
939
|
+
};
|
|
940
|
+
}
|
|
941
|
+
static types() {
|
|
942
|
+
return {
|
|
943
|
+
authToken: 'string',
|
|
944
|
+
productInstanceId: 'string',
|
|
945
|
+
certNoHash: 'string',
|
|
946
|
+
certNameHash: 'string',
|
|
947
|
+
outerOrderId: 'string',
|
|
948
|
+
hashType: 'string',
|
|
949
|
+
externInfo: 'string',
|
|
950
|
+
};
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
exports.CheckTwometaHashRequest = CheckTwometaHashRequest;
|
|
954
|
+
class CheckTwometaHashResponse extends $tea.Model {
|
|
955
|
+
constructor(map) {
|
|
956
|
+
super(map);
|
|
957
|
+
}
|
|
958
|
+
static names() {
|
|
959
|
+
return {
|
|
960
|
+
reqMsgId: 'req_msg_id',
|
|
961
|
+
resultCode: 'result_code',
|
|
962
|
+
resultMsg: 'result_msg',
|
|
963
|
+
};
|
|
964
|
+
}
|
|
965
|
+
static types() {
|
|
966
|
+
return {
|
|
967
|
+
reqMsgId: 'string',
|
|
968
|
+
resultCode: 'string',
|
|
969
|
+
resultMsg: 'string',
|
|
970
|
+
};
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
exports.CheckTwometaHashResponse = CheckTwometaHashResponse;
|
|
974
|
+
class QueryThreemetaOnlinetimeRequest extends $tea.Model {
|
|
975
|
+
constructor(map) {
|
|
976
|
+
super(map);
|
|
977
|
+
}
|
|
978
|
+
static names() {
|
|
979
|
+
return {
|
|
980
|
+
authToken: 'auth_token',
|
|
981
|
+
productInstanceId: 'product_instance_id',
|
|
982
|
+
outerOrderNo: 'outer_order_no',
|
|
983
|
+
certName: 'cert_name',
|
|
984
|
+
certNo: 'cert_no',
|
|
985
|
+
phoneNo: 'phone_no',
|
|
986
|
+
externParam: 'extern_param',
|
|
987
|
+
};
|
|
988
|
+
}
|
|
989
|
+
static types() {
|
|
990
|
+
return {
|
|
991
|
+
authToken: 'string',
|
|
992
|
+
productInstanceId: 'string',
|
|
993
|
+
outerOrderNo: 'string',
|
|
994
|
+
certName: 'string',
|
|
995
|
+
certNo: 'string',
|
|
996
|
+
phoneNo: 'string',
|
|
997
|
+
externParam: 'string',
|
|
998
|
+
};
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
exports.QueryThreemetaOnlinetimeRequest = QueryThreemetaOnlinetimeRequest;
|
|
1002
|
+
class QueryThreemetaOnlinetimeResponse extends $tea.Model {
|
|
1003
|
+
constructor(map) {
|
|
1004
|
+
super(map);
|
|
1005
|
+
}
|
|
1006
|
+
static names() {
|
|
1007
|
+
return {
|
|
1008
|
+
reqMsgId: 'req_msg_id',
|
|
1009
|
+
resultCode: 'result_code',
|
|
1010
|
+
resultMsg: 'result_msg',
|
|
1011
|
+
lengthCode: 'length_code',
|
|
1012
|
+
externInfo: 'extern_info',
|
|
1013
|
+
};
|
|
1014
|
+
}
|
|
1015
|
+
static types() {
|
|
1016
|
+
return {
|
|
1017
|
+
reqMsgId: 'string',
|
|
1018
|
+
resultCode: 'string',
|
|
1019
|
+
resultMsg: 'string',
|
|
1020
|
+
lengthCode: 'string',
|
|
1021
|
+
externInfo: 'string',
|
|
1022
|
+
};
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
exports.QueryThreemetaOnlinetimeResponse = QueryThreemetaOnlinetimeResponse;
|
|
1026
|
+
class InitFacevrfZimRequest extends $tea.Model {
|
|
64
1027
|
constructor(map) {
|
|
65
1028
|
super(map);
|
|
66
1029
|
}
|
|
@@ -68,29 +1031,33 @@ class QueryDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
68
1031
|
return {
|
|
69
1032
|
authToken: 'auth_token',
|
|
70
1033
|
productInstanceId: 'product_instance_id',
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
1034
|
+
bizData: 'biz_data',
|
|
1035
|
+
channel: 'channel',
|
|
1036
|
+
merchant: 'merchant',
|
|
1037
|
+
metaInfo: 'meta_info',
|
|
1038
|
+
produceNode: 'produce_node',
|
|
1039
|
+
productName: 'product_name',
|
|
1040
|
+
zimId: 'zim_id',
|
|
1041
|
+
zimPrincipal: 'zim_principal',
|
|
77
1042
|
};
|
|
78
1043
|
}
|
|
79
1044
|
static types() {
|
|
80
1045
|
return {
|
|
81
1046
|
authToken: 'string',
|
|
82
1047
|
productInstanceId: 'string',
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1048
|
+
bizData: 'string',
|
|
1049
|
+
channel: 'string',
|
|
1050
|
+
merchant: 'string',
|
|
1051
|
+
metaInfo: 'string',
|
|
1052
|
+
produceNode: 'string',
|
|
1053
|
+
productName: 'string',
|
|
1054
|
+
zimId: 'string',
|
|
1055
|
+
zimPrincipal: 'string',
|
|
89
1056
|
};
|
|
90
1057
|
}
|
|
91
1058
|
}
|
|
92
|
-
exports.
|
|
93
|
-
class
|
|
1059
|
+
exports.InitFacevrfZimRequest = InitFacevrfZimRequest;
|
|
1060
|
+
class InitFacevrfZimResponse extends $tea.Model {
|
|
94
1061
|
constructor(map) {
|
|
95
1062
|
super(map);
|
|
96
1063
|
}
|
|
@@ -99,11 +1066,13 @@ class QueryDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
99
1066
|
reqMsgId: 'req_msg_id',
|
|
100
1067
|
resultCode: 'result_code',
|
|
101
1068
|
resultMsg: 'result_msg',
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
1069
|
+
extParams: 'ext_params',
|
|
1070
|
+
message: 'message',
|
|
1071
|
+
protocol: 'protocol',
|
|
1072
|
+
retCode: 'ret_code',
|
|
1073
|
+
retCodeSub: 'ret_code_sub',
|
|
1074
|
+
retMessageSub: 'ret_message_sub',
|
|
1075
|
+
zimId: 'zim_id',
|
|
107
1076
|
};
|
|
108
1077
|
}
|
|
109
1078
|
static types() {
|
|
@@ -111,16 +1080,18 @@ class QueryDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
111
1080
|
reqMsgId: 'string',
|
|
112
1081
|
resultCode: 'string',
|
|
113
1082
|
resultMsg: 'string',
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
1083
|
+
extParams: 'string',
|
|
1084
|
+
message: 'string',
|
|
1085
|
+
protocol: 'string',
|
|
1086
|
+
retCode: 'string',
|
|
1087
|
+
retCodeSub: 'string',
|
|
1088
|
+
retMessageSub: 'string',
|
|
1089
|
+
zimId: 'string',
|
|
119
1090
|
};
|
|
120
1091
|
}
|
|
121
1092
|
}
|
|
122
|
-
exports.
|
|
123
|
-
class
|
|
1093
|
+
exports.InitFacevrfZimResponse = InitFacevrfZimResponse;
|
|
1094
|
+
class VerifyFacevrfZimRequest extends $tea.Model {
|
|
124
1095
|
constructor(map) {
|
|
125
1096
|
super(map);
|
|
126
1097
|
}
|
|
@@ -128,49 +1099,23 @@ class CreateDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
128
1099
|
return {
|
|
129
1100
|
authToken: 'auth_token',
|
|
130
1101
|
productInstanceId: 'product_instance_id',
|
|
131
|
-
regionName: 'region_name',
|
|
132
|
-
bizCode: 'biz_code',
|
|
133
|
-
callbackUrl: 'callback_url',
|
|
134
|
-
certName: 'cert_name',
|
|
135
|
-
certNo: 'cert_no',
|
|
136
|
-
certType: 'cert_type',
|
|
137
1102
|
externParam: 'extern_param',
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
metaInfo: 'meta_info',
|
|
141
|
-
outerOrderNo: 'outer_order_no',
|
|
142
|
-
returnUrl: 'return_url',
|
|
143
|
-
sceneId: 'scene_id',
|
|
144
|
-
userId: 'user_id',
|
|
145
|
-
userIp: 'user_ip',
|
|
146
|
-
userMobile: 'user_mobile',
|
|
1103
|
+
zimData: 'zim_data',
|
|
1104
|
+
zimId: 'zim_id',
|
|
147
1105
|
};
|
|
148
1106
|
}
|
|
149
1107
|
static types() {
|
|
150
1108
|
return {
|
|
151
1109
|
authToken: 'string',
|
|
152
1110
|
productInstanceId: 'string',
|
|
153
|
-
regionName: 'string',
|
|
154
|
-
bizCode: 'string',
|
|
155
|
-
callbackUrl: 'string',
|
|
156
|
-
certName: 'string',
|
|
157
|
-
certNo: 'string',
|
|
158
|
-
certType: 'string',
|
|
159
1111
|
externParam: 'string',
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
metaInfo: 'string',
|
|
163
|
-
outerOrderNo: 'string',
|
|
164
|
-
returnUrl: 'string',
|
|
165
|
-
sceneId: 'string',
|
|
166
|
-
userId: 'string',
|
|
167
|
-
userIp: 'string',
|
|
168
|
-
userMobile: 'string',
|
|
1112
|
+
zimData: 'string',
|
|
1113
|
+
zimId: 'string',
|
|
169
1114
|
};
|
|
170
1115
|
}
|
|
171
1116
|
}
|
|
172
|
-
exports.
|
|
173
|
-
class
|
|
1117
|
+
exports.VerifyFacevrfZimRequest = VerifyFacevrfZimRequest;
|
|
1118
|
+
class VerifyFacevrfZimResponse extends $tea.Model {
|
|
174
1119
|
constructor(map) {
|
|
175
1120
|
super(map);
|
|
176
1121
|
}
|
|
@@ -179,8 +1124,13 @@ class CreateDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
179
1124
|
reqMsgId: 'req_msg_id',
|
|
180
1125
|
resultCode: 'result_code',
|
|
181
1126
|
resultMsg: 'result_msg',
|
|
182
|
-
|
|
183
|
-
|
|
1127
|
+
extParams: 'ext_params',
|
|
1128
|
+
hasNext: 'has_next',
|
|
1129
|
+
nextProtocol: 'next_protocol',
|
|
1130
|
+
productRetCode: 'product_ret_code',
|
|
1131
|
+
retCodeSub: 'ret_code_sub',
|
|
1132
|
+
retMessageSub: 'ret_message_sub',
|
|
1133
|
+
validationRetCode: 'validation_ret_code',
|
|
184
1134
|
};
|
|
185
1135
|
}
|
|
186
1136
|
static types() {
|
|
@@ -188,13 +1138,18 @@ class CreateDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
188
1138
|
reqMsgId: 'string',
|
|
189
1139
|
resultCode: 'string',
|
|
190
1140
|
resultMsg: 'string',
|
|
191
|
-
|
|
192
|
-
|
|
1141
|
+
extParams: 'string',
|
|
1142
|
+
hasNext: 'string',
|
|
1143
|
+
nextProtocol: 'string',
|
|
1144
|
+
productRetCode: 'string',
|
|
1145
|
+
retCodeSub: 'string',
|
|
1146
|
+
retMessageSub: 'string',
|
|
1147
|
+
validationRetCode: 'string',
|
|
193
1148
|
};
|
|
194
1149
|
}
|
|
195
1150
|
}
|
|
196
|
-
exports.
|
|
197
|
-
class
|
|
1151
|
+
exports.VerifyFacevrfZimResponse = VerifyFacevrfZimResponse;
|
|
1152
|
+
class RecognizeDocIndividualcardRequest extends $tea.Model {
|
|
198
1153
|
constructor(map) {
|
|
199
1154
|
super(map);
|
|
200
1155
|
}
|
|
@@ -202,43 +1157,33 @@ class ExecDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
202
1157
|
return {
|
|
203
1158
|
authToken: 'auth_token',
|
|
204
1159
|
productInstanceId: 'product_instance_id',
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
1160
|
+
outOrderNo: 'out_order_no',
|
|
1161
|
+
cardType: 'card_type',
|
|
1162
|
+
dataType: 'data_type',
|
|
1163
|
+
dataContent: 'data_content',
|
|
1164
|
+
reqEncType: 'req_enc_type',
|
|
1165
|
+
respEncType: 'resp_enc_type',
|
|
1166
|
+
respEncToken: 'resp_enc_token',
|
|
209
1167
|
externParam: 'extern_param',
|
|
210
|
-
facialPictureAuth: 'facial_picture_auth',
|
|
211
|
-
facialPictureRef: 'facial_picture_ref',
|
|
212
|
-
identityType: 'identity_type',
|
|
213
|
-
outerOrderNo: 'outer_order_no',
|
|
214
|
-
sceneId: 'scene_id',
|
|
215
|
-
userId: 'user_id',
|
|
216
|
-
userIp: 'user_ip',
|
|
217
|
-
userMobile: 'user_mobile',
|
|
218
1168
|
};
|
|
219
1169
|
}
|
|
220
1170
|
static types() {
|
|
221
1171
|
return {
|
|
222
1172
|
authToken: 'string',
|
|
223
1173
|
productInstanceId: 'string',
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
1174
|
+
outOrderNo: 'string',
|
|
1175
|
+
cardType: 'string',
|
|
1176
|
+
dataType: 'string',
|
|
1177
|
+
dataContent: 'string',
|
|
1178
|
+
reqEncType: 'string',
|
|
1179
|
+
respEncType: 'string',
|
|
1180
|
+
respEncToken: 'string',
|
|
228
1181
|
externParam: 'string',
|
|
229
|
-
facialPictureAuth: 'string',
|
|
230
|
-
facialPictureRef: 'string',
|
|
231
|
-
identityType: 'string',
|
|
232
|
-
outerOrderNo: 'string',
|
|
233
|
-
sceneId: 'string',
|
|
234
|
-
userId: 'string',
|
|
235
|
-
userIp: 'string',
|
|
236
|
-
userMobile: 'string',
|
|
237
1182
|
};
|
|
238
1183
|
}
|
|
239
1184
|
}
|
|
240
|
-
exports.
|
|
241
|
-
class
|
|
1185
|
+
exports.RecognizeDocIndividualcardRequest = RecognizeDocIndividualcardRequest;
|
|
1186
|
+
class RecognizeDocIndividualcardResponse extends $tea.Model {
|
|
242
1187
|
constructor(map) {
|
|
243
1188
|
super(map);
|
|
244
1189
|
}
|
|
@@ -247,9 +1192,11 @@ class ExecDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
247
1192
|
reqMsgId: 'req_msg_id',
|
|
248
1193
|
resultCode: 'result_code',
|
|
249
1194
|
resultMsg: 'result_msg',
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
1195
|
+
retCode: 'ret_code',
|
|
1196
|
+
retCodeSub: 'ret_code_sub',
|
|
1197
|
+
retMessageSub: 'ret_message_sub',
|
|
1198
|
+
ocrInfo: 'ocr_info',
|
|
1199
|
+
extInfo: 'ext_info',
|
|
253
1200
|
};
|
|
254
1201
|
}
|
|
255
1202
|
static types() {
|
|
@@ -257,36 +1204,44 @@ class ExecDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
257
1204
|
reqMsgId: 'string',
|
|
258
1205
|
resultCode: 'string',
|
|
259
1206
|
resultMsg: 'string',
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
1207
|
+
retCode: 'string',
|
|
1208
|
+
retCodeSub: 'string',
|
|
1209
|
+
retMessageSub: 'string',
|
|
1210
|
+
ocrInfo: 'string',
|
|
1211
|
+
extInfo: 'string',
|
|
263
1212
|
};
|
|
264
1213
|
}
|
|
265
1214
|
}
|
|
266
|
-
exports.
|
|
267
|
-
class
|
|
1215
|
+
exports.RecognizeDocIndividualcardResponse = RecognizeDocIndividualcardResponse;
|
|
1216
|
+
class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
268
1217
|
constructor(map) {
|
|
269
1218
|
super(map);
|
|
270
1219
|
}
|
|
271
1220
|
static names() {
|
|
272
1221
|
return {
|
|
273
1222
|
authToken: 'auth_token',
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
1223
|
+
apiCode: 'api_code',
|
|
1224
|
+
fileLabel: 'file_label',
|
|
1225
|
+
fileMetadata: 'file_metadata',
|
|
1226
|
+
fileName: 'file_name',
|
|
1227
|
+
mimeType: 'mime_type',
|
|
1228
|
+
apiCluster: 'api_cluster',
|
|
277
1229
|
};
|
|
278
1230
|
}
|
|
279
1231
|
static types() {
|
|
280
1232
|
return {
|
|
281
1233
|
authToken: 'string',
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
1234
|
+
apiCode: 'string',
|
|
1235
|
+
fileLabel: 'string',
|
|
1236
|
+
fileMetadata: 'string',
|
|
1237
|
+
fileName: 'string',
|
|
1238
|
+
mimeType: 'string',
|
|
1239
|
+
apiCluster: 'string',
|
|
285
1240
|
};
|
|
286
1241
|
}
|
|
287
1242
|
}
|
|
288
|
-
exports.
|
|
289
|
-
class
|
|
1243
|
+
exports.CreateAntcloudGatewayxFileUploadRequest = CreateAntcloudGatewayxFileUploadRequest;
|
|
1244
|
+
class CreateAntcloudGatewayxFileUploadResponse extends $tea.Model {
|
|
290
1245
|
constructor(map) {
|
|
291
1246
|
super(map);
|
|
292
1247
|
}
|
|
@@ -295,11 +1250,10 @@ class GetDiRealpersonFacevrfEvidenceResponse extends $tea.Model {
|
|
|
295
1250
|
reqMsgId: 'req_msg_id',
|
|
296
1251
|
resultCode: 'result_code',
|
|
297
1252
|
resultMsg: 'result_msg',
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
pdfExpired: 'pdf_expired',
|
|
1253
|
+
expiredTime: 'expired_time',
|
|
1254
|
+
fileId: 'file_id',
|
|
1255
|
+
uploadHeaders: 'upload_headers',
|
|
1256
|
+
uploadUrl: 'upload_url',
|
|
303
1257
|
};
|
|
304
1258
|
}
|
|
305
1259
|
static types() {
|
|
@@ -307,15 +1261,14 @@ class GetDiRealpersonFacevrfEvidenceResponse extends $tea.Model {
|
|
|
307
1261
|
reqMsgId: 'string',
|
|
308
1262
|
resultCode: 'string',
|
|
309
1263
|
resultMsg: 'string',
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
pdfExpired: 'boolean',
|
|
1264
|
+
expiredTime: 'string',
|
|
1265
|
+
fileId: 'string',
|
|
1266
|
+
uploadHeaders: { 'type': 'array', 'itemType': XNameValuePair },
|
|
1267
|
+
uploadUrl: 'string',
|
|
315
1268
|
};
|
|
316
1269
|
}
|
|
317
1270
|
}
|
|
318
|
-
exports.
|
|
1271
|
+
exports.CreateAntcloudGatewayxFileUploadResponse = CreateAntcloudGatewayxFileUploadResponse;
|
|
319
1272
|
class Client {
|
|
320
1273
|
/**
|
|
321
1274
|
* Init client with Config
|
|
@@ -334,14 +1287,18 @@ class Client {
|
|
|
334
1287
|
this._endpoint = config.endpoint;
|
|
335
1288
|
this._protocol = config.protocol;
|
|
336
1289
|
this._userAgent = config.userAgent;
|
|
337
|
-
this._readTimeout = config.readTimeout;
|
|
338
|
-
this._connectTimeout = config.connectTimeout;
|
|
1290
|
+
this._readTimeout = tea_util_1.default.defaultNumber(config.readTimeout, 20000);
|
|
1291
|
+
this._connectTimeout = tea_util_1.default.defaultNumber(config.connectTimeout, 20000);
|
|
339
1292
|
this._httpProxy = config.httpProxy;
|
|
340
1293
|
this._httpsProxy = config.httpsProxy;
|
|
341
1294
|
this._noProxy = config.noProxy;
|
|
342
1295
|
this._socks5Proxy = config.socks5Proxy;
|
|
343
1296
|
this._socks5NetWork = config.socks5NetWork;
|
|
344
|
-
this._maxIdleConns = config.maxIdleConns;
|
|
1297
|
+
this._maxIdleConns = tea_util_1.default.defaultNumber(config.maxIdleConns, 60000);
|
|
1298
|
+
this._maxIdleTimeMillis = tea_util_1.default.defaultNumber(config.maxIdleTimeMillis, 5);
|
|
1299
|
+
this._keepAliveDurationMillis = tea_util_1.default.defaultNumber(config.keepAliveDurationMillis, 5000);
|
|
1300
|
+
this._maxRequests = tea_util_1.default.defaultNumber(config.maxRequests, 100);
|
|
1301
|
+
this._maxRequestsPerHost = tea_util_1.default.defaultNumber(config.maxRequestsPerHost, 100);
|
|
345
1302
|
}
|
|
346
1303
|
/**
|
|
347
1304
|
* Encapsulate the request and invoke the network
|
|
@@ -353,7 +1310,7 @@ class Client {
|
|
|
353
1310
|
* @param runtime which controls some details of call api, such as retry times
|
|
354
1311
|
* @return the response
|
|
355
1312
|
*/
|
|
356
|
-
async doRequest(version, action, protocol, method, pathname, request, runtime) {
|
|
1313
|
+
async doRequest(version, action, protocol, method, pathname, request, headers, runtime) {
|
|
357
1314
|
let _runtime = {
|
|
358
1315
|
timeouted: "retry",
|
|
359
1316
|
readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout),
|
|
@@ -362,6 +1319,10 @@ class Client {
|
|
|
362
1319
|
httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy),
|
|
363
1320
|
noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy),
|
|
364
1321
|
maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
1322
|
+
maxIdleTimeMillis: this._maxIdleTimeMillis,
|
|
1323
|
+
keepAliveDurationMillis: this._keepAliveDurationMillis,
|
|
1324
|
+
maxRequests: this._maxRequests,
|
|
1325
|
+
maxRequestsPerHost: this._maxRequestsPerHost,
|
|
365
1326
|
retry: {
|
|
366
1327
|
retryable: runtime.autoretry,
|
|
367
1328
|
maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3),
|
|
@@ -393,19 +1354,17 @@ class Client {
|
|
|
393
1354
|
version: version,
|
|
394
1355
|
sign_type: "HmacSHA1",
|
|
395
1356
|
req_time: alipay_util_1.default.getTimestamp(),
|
|
396
|
-
req_msg_id:
|
|
1357
|
+
req_msg_id: alipay_util_1.default.getNonce(),
|
|
397
1358
|
access_key: this._accessKeyId,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
1359
|
+
base_sdk_version: "TeaSDK-2.0",
|
|
1360
|
+
sdk_version: "1.9.0",
|
|
1361
|
+
_prod_code: "REALPERSON",
|
|
1362
|
+
_prod_channel: "undefined",
|
|
401
1363
|
};
|
|
402
1364
|
if (!tea_util_1.default.empty(this._securityToken)) {
|
|
403
1365
|
request_.query["security_token"] = this._securityToken;
|
|
404
1366
|
}
|
|
405
|
-
request_.headers = {
|
|
406
|
-
host: this._endpoint,
|
|
407
|
-
'user-agent': this.getUserAgent(),
|
|
408
|
-
};
|
|
1367
|
+
request_.headers = Object.assign({ host: tea_util_1.default.defaultString(this._endpoint, "openapi.antchain.antgroup.com"), 'user-agent': tea_util_1.default.getUserAgent(this._userAgent) }, headers);
|
|
409
1368
|
let tmp = tea_util_1.default.anyifyMapValue(rpc_util_1.default.query(request));
|
|
410
1369
|
request_.body = new $tea.BytesReadable(tea_util_1.default.toFormString(tmp));
|
|
411
1370
|
request_.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
@@ -413,10 +1372,11 @@ class Client {
|
|
|
413
1372
|
request_.query["sign"] = alipay_util_1.default.getSignature(signedParam, this._accessKeySecret);
|
|
414
1373
|
_lastRequest = request_;
|
|
415
1374
|
let response_ = await $tea.doAction(request_, _runtime);
|
|
416
|
-
let
|
|
1375
|
+
let raw = await tea_util_1.default.readAsString(response_.body);
|
|
1376
|
+
let obj = tea_util_1.default.parseJSON(raw);
|
|
417
1377
|
let res = tea_util_1.default.assertAsMap(obj);
|
|
418
1378
|
let resp = tea_util_1.default.assertAsMap(res["response"]);
|
|
419
|
-
if (alipay_util_1.default.hasError(
|
|
1379
|
+
if (alipay_util_1.default.hasError(raw, this._accessKeySecret)) {
|
|
420
1380
|
throw $tea.newError({
|
|
421
1381
|
message: resp["result_msg"],
|
|
422
1382
|
data: resp,
|
|
@@ -434,77 +1394,364 @@ class Client {
|
|
|
434
1394
|
}
|
|
435
1395
|
throw $tea.newUnretryableError(_lastRequest);
|
|
436
1396
|
}
|
|
437
|
-
/**
|
|
438
|
-
* Get user agent
|
|
439
|
-
* @return user agent
|
|
440
|
-
*/
|
|
441
|
-
getUserAgent() {
|
|
442
|
-
let userAgent = "TeaClient/1.0.0";
|
|
443
|
-
return tea_util_1.default.getUserAgent(userAgent);
|
|
444
|
-
}
|
|
445
1397
|
/**
|
|
446
1398
|
* Description: 查询认证的结果和相关信息
|
|
447
1399
|
* Summary: 认证查询
|
|
448
1400
|
*/
|
|
449
|
-
async
|
|
1401
|
+
async queryFacevrfServer(request) {
|
|
450
1402
|
let runtime = new $Util.RuntimeOptions({});
|
|
451
|
-
|
|
1403
|
+
let headers = {};
|
|
1404
|
+
return await this.queryFacevrfServerEx(request, headers, runtime);
|
|
452
1405
|
}
|
|
453
1406
|
/**
|
|
454
1407
|
* Description: 查询认证的结果和相关信息
|
|
455
1408
|
* Summary: 认证查询
|
|
456
1409
|
*/
|
|
457
|
-
async
|
|
1410
|
+
async queryFacevrfServerEx(request, headers, runtime) {
|
|
458
1411
|
tea_util_1.default.validateModel(request);
|
|
459
|
-
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), runtime), new
|
|
1412
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryFacevrfServerResponse({}));
|
|
460
1413
|
}
|
|
461
1414
|
/**
|
|
462
1415
|
* Description: 服务端认证创建,传入认证信息,获取认证ID(和url)
|
|
463
1416
|
* Summary: 认证创建
|
|
464
1417
|
*/
|
|
465
|
-
async
|
|
1418
|
+
async createFacevrfServer(request) {
|
|
466
1419
|
let runtime = new $Util.RuntimeOptions({});
|
|
467
|
-
|
|
1420
|
+
let headers = {};
|
|
1421
|
+
return await this.createFacevrfServerEx(request, headers, runtime);
|
|
468
1422
|
}
|
|
469
1423
|
/**
|
|
470
1424
|
* Description: 服务端认证创建,传入认证信息,获取认证ID(和url)
|
|
471
1425
|
* Summary: 认证创建
|
|
472
1426
|
*/
|
|
473
|
-
async
|
|
1427
|
+
async createFacevrfServerEx(request, headers, runtime) {
|
|
474
1428
|
tea_util_1.default.validateModel(request);
|
|
475
|
-
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), runtime), new
|
|
1429
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateFacevrfServerResponse({}));
|
|
476
1430
|
}
|
|
477
1431
|
/**
|
|
478
1432
|
* Description: 纯服务端比对,直接输入待比对的图片,返回比对结果
|
|
479
1433
|
* Summary: 纯服务端比对
|
|
480
1434
|
*/
|
|
481
|
-
async
|
|
1435
|
+
async execFacevrfServer(request) {
|
|
482
1436
|
let runtime = new $Util.RuntimeOptions({});
|
|
483
|
-
|
|
1437
|
+
let headers = {};
|
|
1438
|
+
return await this.execFacevrfServerEx(request, headers, runtime);
|
|
484
1439
|
}
|
|
485
1440
|
/**
|
|
486
1441
|
* Description: 纯服务端比对,直接输入待比对的图片,返回比对结果
|
|
487
1442
|
* Summary: 纯服务端比对
|
|
488
1443
|
*/
|
|
489
|
-
async
|
|
1444
|
+
async execFacevrfServerEx(request, headers, runtime) {
|
|
490
1445
|
tea_util_1.default.validateModel(request);
|
|
491
|
-
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), runtime), new
|
|
1446
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecFacevrfServerResponse({}));
|
|
492
1447
|
}
|
|
493
1448
|
/**
|
|
494
1449
|
* Description: 传入某次刷脸的certifyID,获得刷脸存证的pdf文件和司法脸统一证据ID,这两份数据可以在司法链的控制台中进行核验存证是否被记录在区块链上从而证实其真实可信。
|
|
495
1450
|
* Summary: 商户获取司法链上刷脸存证和统一证据ID
|
|
496
1451
|
*/
|
|
497
|
-
async
|
|
1452
|
+
async getFacevrfEvidence(request) {
|
|
498
1453
|
let runtime = new $Util.RuntimeOptions({});
|
|
499
|
-
|
|
1454
|
+
let headers = {};
|
|
1455
|
+
return await this.getFacevrfEvidenceEx(request, headers, runtime);
|
|
500
1456
|
}
|
|
501
1457
|
/**
|
|
502
1458
|
* Description: 传入某次刷脸的certifyID,获得刷脸存证的pdf文件和司法脸统一证据ID,这两份数据可以在司法链的控制台中进行核验存证是否被记录在区块链上从而证实其真实可信。
|
|
503
1459
|
* Summary: 商户获取司法链上刷脸存证和统一证据ID
|
|
504
1460
|
*/
|
|
505
|
-
async
|
|
1461
|
+
async getFacevrfEvidenceEx(request, headers, runtime) {
|
|
1462
|
+
tea_util_1.default.validateModel(request);
|
|
1463
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.evidence.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetFacevrfEvidenceResponse({}));
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Description: 个人二要素认证
|
|
1467
|
+
* Summary: 个人二要素认证
|
|
1468
|
+
*/
|
|
1469
|
+
async checkIndividualidTwometa(request) {
|
|
1470
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1471
|
+
let headers = {};
|
|
1472
|
+
return await this.checkIndividualidTwometaEx(request, headers, runtime);
|
|
1473
|
+
}
|
|
1474
|
+
/**
|
|
1475
|
+
* Description: 个人二要素认证
|
|
1476
|
+
* Summary: 个人二要素认证
|
|
1477
|
+
*/
|
|
1478
|
+
async checkIndividualidTwometaEx(request, headers, runtime) {
|
|
1479
|
+
tea_util_1.default.validateModel(request);
|
|
1480
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.individualid.twometa.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidTwometaResponse({}));
|
|
1481
|
+
}
|
|
1482
|
+
/**
|
|
1483
|
+
* Description: 个人三要素认证
|
|
1484
|
+
* Summary: 个人三要素认证
|
|
1485
|
+
*/
|
|
1486
|
+
async checkIndividualidThreemeta(request) {
|
|
1487
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1488
|
+
let headers = {};
|
|
1489
|
+
return await this.checkIndividualidThreemetaEx(request, headers, runtime);
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Description: 个人三要素认证
|
|
1493
|
+
* Summary: 个人三要素认证
|
|
1494
|
+
*/
|
|
1495
|
+
async checkIndividualidThreemetaEx(request, headers, runtime) {
|
|
1496
|
+
tea_util_1.default.validateModel(request);
|
|
1497
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.individualid.threemeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidThreemetaResponse({}));
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Description: 个人四要素认证
|
|
1501
|
+
* Summary: 个人四要素认证
|
|
1502
|
+
*/
|
|
1503
|
+
async checkIndividualidFourmeta(request) {
|
|
1504
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1505
|
+
let headers = {};
|
|
1506
|
+
return await this.checkIndividualidFourmetaEx(request, headers, runtime);
|
|
1507
|
+
}
|
|
1508
|
+
/**
|
|
1509
|
+
* Description: 个人四要素认证
|
|
1510
|
+
* Summary: 个人四要素认证
|
|
1511
|
+
*/
|
|
1512
|
+
async checkIndividualidFourmetaEx(request, headers, runtime) {
|
|
1513
|
+
tea_util_1.default.validateModel(request);
|
|
1514
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.individualid.fourmeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidFourmetaResponse({}));
|
|
1515
|
+
}
|
|
1516
|
+
/**
|
|
1517
|
+
* Description: 个人三要素认证(场景路由)
|
|
1518
|
+
* Summary: 个人三要素认证(场景路由)
|
|
1519
|
+
*/
|
|
1520
|
+
async checkRouteThreemeta(request) {
|
|
1521
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1522
|
+
let headers = {};
|
|
1523
|
+
return await this.checkRouteThreemetaEx(request, headers, runtime);
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Description: 个人三要素认证(场景路由)
|
|
1527
|
+
* Summary: 个人三要素认证(场景路由)
|
|
1528
|
+
*/
|
|
1529
|
+
async checkRouteThreemetaEx(request, headers, runtime) {
|
|
1530
|
+
tea_util_1.default.validateModel(request);
|
|
1531
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.route.threemeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckRouteThreemetaResponse({}));
|
|
1532
|
+
}
|
|
1533
|
+
/**
|
|
1534
|
+
* Description: 纯服务端声纹注册
|
|
1535
|
+
* Summary: 纯服务端声纹注册
|
|
1536
|
+
*/
|
|
1537
|
+
async createVoiceprintServermode(request) {
|
|
1538
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1539
|
+
let headers = {};
|
|
1540
|
+
return await this.createVoiceprintServermodeEx(request, headers, runtime);
|
|
1541
|
+
}
|
|
1542
|
+
/**
|
|
1543
|
+
* Description: 纯服务端声纹注册
|
|
1544
|
+
* Summary: 纯服务端声纹注册
|
|
1545
|
+
*/
|
|
1546
|
+
async createVoiceprintServermodeEx(request, headers, runtime) {
|
|
1547
|
+
if (!tea_util_1.default.isUnset(request.fileObject)) {
|
|
1548
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
1549
|
+
authToken: request.authToken,
|
|
1550
|
+
apiCode: "di.realperson.voiceprint.servermode.create",
|
|
1551
|
+
fileName: request.fileObjectName,
|
|
1552
|
+
});
|
|
1553
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
1554
|
+
if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
|
|
1555
|
+
let createVoiceprintServermodeResponse = new CreateVoiceprintServermodeResponse({
|
|
1556
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
1557
|
+
resultCode: uploadResp.resultCode,
|
|
1558
|
+
resultMsg: uploadResp.resultMsg,
|
|
1559
|
+
});
|
|
1560
|
+
return createVoiceprintServermodeResponse;
|
|
1561
|
+
}
|
|
1562
|
+
let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
1563
|
+
await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
1564
|
+
request.fileId = uploadResp.fileId;
|
|
1565
|
+
}
|
|
1566
|
+
tea_util_1.default.validateModel(request);
|
|
1567
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.voiceprint.servermode.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateVoiceprintServermodeResponse({}));
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Description: 纯服务端声纹比对
|
|
1571
|
+
* Summary: 纯服务端声纹比对
|
|
1572
|
+
*/
|
|
1573
|
+
async verifyVoiceprintServermode(request) {
|
|
1574
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1575
|
+
let headers = {};
|
|
1576
|
+
return await this.verifyVoiceprintServermodeEx(request, headers, runtime);
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* Description: 纯服务端声纹比对
|
|
1580
|
+
* Summary: 纯服务端声纹比对
|
|
1581
|
+
*/
|
|
1582
|
+
async verifyVoiceprintServermodeEx(request, headers, runtime) {
|
|
1583
|
+
tea_util_1.default.validateModel(request);
|
|
1584
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.voiceprint.servermode.verify", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new VerifyVoiceprintServermodeResponse({}));
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* Description: 个人二要素认证(场景路由)
|
|
1588
|
+
* Summary: 个人二要素认证(场景路由)
|
|
1589
|
+
*/
|
|
1590
|
+
async checkRouteTwometa(request) {
|
|
1591
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1592
|
+
let headers = {};
|
|
1593
|
+
return await this.checkRouteTwometaEx(request, headers, runtime);
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* Description: 个人二要素认证(场景路由)
|
|
1597
|
+
* Summary: 个人二要素认证(场景路由)
|
|
1598
|
+
*/
|
|
1599
|
+
async checkRouteTwometaEx(request, headers, runtime) {
|
|
1600
|
+
tea_util_1.default.validateModel(request);
|
|
1601
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.route.twometa.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckRouteTwometaResponse({}));
|
|
1602
|
+
}
|
|
1603
|
+
/**
|
|
1604
|
+
* Description: 通过移动设备身份临时标识查询该设备相关的设备风险信息的服务
|
|
1605
|
+
* Summary: 移动风险设备查询
|
|
1606
|
+
*/
|
|
1607
|
+
async queryMobileRisk(request) {
|
|
1608
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1609
|
+
let headers = {};
|
|
1610
|
+
return await this.queryMobileRiskEx(request, headers, runtime);
|
|
1611
|
+
}
|
|
1612
|
+
/**
|
|
1613
|
+
* Description: 通过移动设备身份临时标识查询该设备相关的设备风险信息的服务
|
|
1614
|
+
* Summary: 移动风险设备查询
|
|
1615
|
+
*/
|
|
1616
|
+
async queryMobileRiskEx(request, headers, runtime) {
|
|
1617
|
+
tea_util_1.default.validateModel(request);
|
|
1618
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.mobile.risk.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMobileRiskResponse({}));
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* Description: 通过认证ID查询认证人、认证时间等相关信息,供智科内部使用
|
|
1622
|
+
* Summary: 查询认证人、认证时间等相关信息
|
|
1623
|
+
*/
|
|
1624
|
+
async detailFacevrfServer(request) {
|
|
1625
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1626
|
+
let headers = {};
|
|
1627
|
+
return await this.detailFacevrfServerEx(request, headers, runtime);
|
|
1628
|
+
}
|
|
1629
|
+
/**
|
|
1630
|
+
* Description: 通过认证ID查询认证人、认证时间等相关信息,供智科内部使用
|
|
1631
|
+
* Summary: 查询认证人、认证时间等相关信息
|
|
1632
|
+
*/
|
|
1633
|
+
async detailFacevrfServerEx(request, headers, runtime) {
|
|
1634
|
+
tea_util_1.default.validateModel(request);
|
|
1635
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.detail", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new DetailFacevrfServerResponse({}));
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Description: 临工场景等场景下,通过主体的社保缴纳情况进行的反欺诈校验
|
|
1639
|
+
* Summary: 个人反欺诈风险校验
|
|
1640
|
+
*/
|
|
1641
|
+
async checkAnticheatPersonal(request) {
|
|
1642
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1643
|
+
let headers = {};
|
|
1644
|
+
return await this.checkAnticheatPersonalEx(request, headers, runtime);
|
|
1645
|
+
}
|
|
1646
|
+
/**
|
|
1647
|
+
* Description: 临工场景等场景下,通过主体的社保缴纳情况进行的反欺诈校验
|
|
1648
|
+
* Summary: 个人反欺诈风险校验
|
|
1649
|
+
*/
|
|
1650
|
+
async checkAnticheatPersonalEx(request, headers, runtime) {
|
|
1651
|
+
tea_util_1.default.validateModel(request);
|
|
1652
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.anticheat.personal.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckAnticheatPersonalResponse({}));
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
* Description: 二要素支持hash主体信息
|
|
1656
|
+
* Summary: 个人二要素核验支持hash的主体信息
|
|
1657
|
+
*/
|
|
1658
|
+
async checkTwometaHash(request) {
|
|
1659
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1660
|
+
let headers = {};
|
|
1661
|
+
return await this.checkTwometaHashEx(request, headers, runtime);
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Description: 二要素支持hash主体信息
|
|
1665
|
+
* Summary: 个人二要素核验支持hash的主体信息
|
|
1666
|
+
*/
|
|
1667
|
+
async checkTwometaHashEx(request, headers, runtime) {
|
|
1668
|
+
tea_util_1.default.validateModel(request);
|
|
1669
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.twometa.hash.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckTwometaHashResponse({}));
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Description: 对接运营商等数据源查询手机号码的在网时长
|
|
1673
|
+
* Summary: 三要素在网时长查询接口
|
|
1674
|
+
*/
|
|
1675
|
+
async queryThreemetaOnlinetime(request) {
|
|
1676
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1677
|
+
let headers = {};
|
|
1678
|
+
return await this.queryThreemetaOnlinetimeEx(request, headers, runtime);
|
|
1679
|
+
}
|
|
1680
|
+
/**
|
|
1681
|
+
* Description: 对接运营商等数据源查询手机号码的在网时长
|
|
1682
|
+
* Summary: 三要素在网时长查询接口
|
|
1683
|
+
*/
|
|
1684
|
+
async queryThreemetaOnlinetimeEx(request, headers, runtime) {
|
|
1685
|
+
tea_util_1.default.validateModel(request);
|
|
1686
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.threemeta.onlinetime.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryThreemetaOnlinetimeResponse({}));
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* Description: 客户端初始化认证(OEM专用)
|
|
1690
|
+
* Summary: 客户端初始化认证(OEM专用)
|
|
1691
|
+
*/
|
|
1692
|
+
async initFacevrfZim(request) {
|
|
1693
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1694
|
+
let headers = {};
|
|
1695
|
+
return await this.initFacevrfZimEx(request, headers, runtime);
|
|
1696
|
+
}
|
|
1697
|
+
/**
|
|
1698
|
+
* Description: 客户端初始化认证(OEM专用)
|
|
1699
|
+
* Summary: 客户端初始化认证(OEM专用)
|
|
1700
|
+
*/
|
|
1701
|
+
async initFacevrfZimEx(request, headers, runtime) {
|
|
1702
|
+
tea_util_1.default.validateModel(request);
|
|
1703
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.zim.init", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new InitFacevrfZimResponse({}));
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* Description: 客户端人脸验证(OEM专用)
|
|
1707
|
+
* Summary: 客户端人脸验证(OEM专用)
|
|
1708
|
+
*/
|
|
1709
|
+
async verifyFacevrfZim(request) {
|
|
1710
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1711
|
+
let headers = {};
|
|
1712
|
+
return await this.verifyFacevrfZimEx(request, headers, runtime);
|
|
1713
|
+
}
|
|
1714
|
+
/**
|
|
1715
|
+
* Description: 客户端人脸验证(OEM专用)
|
|
1716
|
+
* Summary: 客户端人脸验证(OEM专用)
|
|
1717
|
+
*/
|
|
1718
|
+
async verifyFacevrfZimEx(request, headers, runtime) {
|
|
1719
|
+
tea_util_1.default.validateModel(request);
|
|
1720
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.zim.verify", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new VerifyFacevrfZimResponse({}));
|
|
1721
|
+
}
|
|
1722
|
+
/**
|
|
1723
|
+
* Description: 卡证OCR
|
|
1724
|
+
* Summary: 卡证OCR
|
|
1725
|
+
*/
|
|
1726
|
+
async recognizeDocIndividualcard(request) {
|
|
1727
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1728
|
+
let headers = {};
|
|
1729
|
+
return await this.recognizeDocIndividualcardEx(request, headers, runtime);
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Description: 卡证OCR
|
|
1733
|
+
* Summary: 卡证OCR
|
|
1734
|
+
*/
|
|
1735
|
+
async recognizeDocIndividualcardEx(request, headers, runtime) {
|
|
1736
|
+
tea_util_1.default.validateModel(request);
|
|
1737
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.doc.individualcard.recognize", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new RecognizeDocIndividualcardResponse({}));
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Description: 创建HTTP PUT提交的文件上传
|
|
1741
|
+
* Summary: 文件上传创建
|
|
1742
|
+
*/
|
|
1743
|
+
async createAntcloudGatewayxFileUpload(request) {
|
|
1744
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1745
|
+
let headers = {};
|
|
1746
|
+
return await this.createAntcloudGatewayxFileUploadEx(request, headers, runtime);
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Description: 创建HTTP PUT提交的文件上传
|
|
1750
|
+
* Summary: 文件上传创建
|
|
1751
|
+
*/
|
|
1752
|
+
async createAntcloudGatewayxFileUploadEx(request, headers, runtime) {
|
|
506
1753
|
tea_util_1.default.validateModel(request);
|
|
507
|
-
return $tea.cast(await this.doRequest("1.0", "
|
|
1754
|
+
return $tea.cast(await this.doRequest("1.0", "antcloud.gatewayx.file.upload.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateAntcloudGatewayxFileUploadResponse({}));
|
|
508
1755
|
}
|
|
509
1756
|
}
|
|
510
1757
|
exports.default = Client;
|