@antchain/realperson 1.1.4 → 1.8.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 +707 -44
- package/dist/client.js +1148 -142
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1703 -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,766 @@ 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 {
|
|
64
823
|
constructor(map) {
|
|
65
824
|
super(map);
|
|
66
825
|
}
|
|
@@ -68,29 +827,21 @@ class QueryDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
68
827
|
return {
|
|
69
828
|
authToken: 'auth_token',
|
|
70
829
|
productInstanceId: 'product_instance_id',
|
|
71
|
-
regionName: 'region_name',
|
|
72
830
|
certifyId: 'certify_id',
|
|
73
831
|
externParam: 'extern_param',
|
|
74
|
-
materialHash: 'material_hash',
|
|
75
|
-
outerOrderNo: 'outer_order_no',
|
|
76
|
-
sceneId: 'scene_id',
|
|
77
832
|
};
|
|
78
833
|
}
|
|
79
834
|
static types() {
|
|
80
835
|
return {
|
|
81
836
|
authToken: 'string',
|
|
82
837
|
productInstanceId: 'string',
|
|
83
|
-
regionName: 'string',
|
|
84
838
|
certifyId: 'string',
|
|
85
839
|
externParam: 'string',
|
|
86
|
-
materialHash: 'string',
|
|
87
|
-
outerOrderNo: 'string',
|
|
88
|
-
sceneId: 'string',
|
|
89
840
|
};
|
|
90
841
|
}
|
|
91
842
|
}
|
|
92
|
-
exports.
|
|
93
|
-
class
|
|
843
|
+
exports.DetailFacevrfServerRequest = DetailFacevrfServerRequest;
|
|
844
|
+
class DetailFacevrfServerResponse extends $tea.Model {
|
|
94
845
|
constructor(map) {
|
|
95
846
|
super(map);
|
|
96
847
|
}
|
|
@@ -99,11 +850,9 @@ class QueryDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
99
850
|
reqMsgId: 'req_msg_id',
|
|
100
851
|
resultCode: 'result_code',
|
|
101
852
|
resultMsg: 'result_msg',
|
|
853
|
+
state: 'state',
|
|
102
854
|
identityInfo: 'identity_info',
|
|
103
|
-
|
|
104
|
-
materialMatched: 'material_matched',
|
|
105
|
-
passed: 'passed',
|
|
106
|
-
reason: 'reason',
|
|
855
|
+
externInfo: 'extern_info',
|
|
107
856
|
};
|
|
108
857
|
}
|
|
109
858
|
static types() {
|
|
@@ -111,16 +860,14 @@ class QueryDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
111
860
|
reqMsgId: 'string',
|
|
112
861
|
resultCode: 'string',
|
|
113
862
|
resultMsg: 'string',
|
|
863
|
+
state: 'string',
|
|
114
864
|
identityInfo: 'string',
|
|
115
|
-
|
|
116
|
-
materialMatched: 'string',
|
|
117
|
-
passed: 'string',
|
|
118
|
-
reason: 'string',
|
|
865
|
+
externInfo: 'string',
|
|
119
866
|
};
|
|
120
867
|
}
|
|
121
868
|
}
|
|
122
|
-
exports.
|
|
123
|
-
class
|
|
869
|
+
exports.DetailFacevrfServerResponse = DetailFacevrfServerResponse;
|
|
870
|
+
class CheckAnticheatPersonalRequest extends $tea.Model {
|
|
124
871
|
constructor(map) {
|
|
125
872
|
super(map);
|
|
126
873
|
}
|
|
@@ -128,49 +875,83 @@ class CreateDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
128
875
|
return {
|
|
129
876
|
authToken: 'auth_token',
|
|
130
877
|
productInstanceId: 'product_instance_id',
|
|
131
|
-
|
|
132
|
-
bizCode: 'biz_code',
|
|
133
|
-
callbackUrl: 'callback_url',
|
|
878
|
+
outerOrderNo: 'outer_order_no',
|
|
134
879
|
certName: 'cert_name',
|
|
135
880
|
certNo: 'cert_no',
|
|
136
|
-
|
|
881
|
+
companyName: 'company_name',
|
|
882
|
+
companyNo: 'company_no',
|
|
137
883
|
externParam: 'extern_param',
|
|
138
|
-
facialPictureRef: 'facial_picture_ref',
|
|
139
|
-
identityType: 'identity_type',
|
|
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',
|
|
147
884
|
};
|
|
148
885
|
}
|
|
149
886
|
static types() {
|
|
150
887
|
return {
|
|
151
888
|
authToken: 'string',
|
|
152
889
|
productInstanceId: 'string',
|
|
153
|
-
|
|
154
|
-
bizCode: 'string',
|
|
155
|
-
callbackUrl: 'string',
|
|
890
|
+
outerOrderNo: 'string',
|
|
156
891
|
certName: 'string',
|
|
157
892
|
certNo: 'string',
|
|
158
|
-
|
|
893
|
+
companyName: 'string',
|
|
894
|
+
companyNo: 'string',
|
|
159
895
|
externParam: 'string',
|
|
160
|
-
facialPictureRef: 'string',
|
|
161
|
-
identityType: 'string',
|
|
162
|
-
metaInfo: 'string',
|
|
163
|
-
outerOrderNo: 'string',
|
|
164
|
-
returnUrl: 'string',
|
|
165
|
-
sceneId: 'string',
|
|
166
|
-
userId: 'string',
|
|
167
|
-
userIp: 'string',
|
|
168
|
-
userMobile: 'string',
|
|
169
896
|
};
|
|
170
897
|
}
|
|
171
898
|
}
|
|
172
|
-
exports.
|
|
173
|
-
class
|
|
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 {
|
|
174
955
|
constructor(map) {
|
|
175
956
|
super(map);
|
|
176
957
|
}
|
|
@@ -179,8 +960,6 @@ class CreateDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
179
960
|
reqMsgId: 'req_msg_id',
|
|
180
961
|
resultCode: 'result_code',
|
|
181
962
|
resultMsg: 'result_msg',
|
|
182
|
-
certifyId: 'certify_id',
|
|
183
|
-
certifyUrl: 'certify_url',
|
|
184
963
|
};
|
|
185
964
|
}
|
|
186
965
|
static types() {
|
|
@@ -188,13 +967,11 @@ class CreateDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
188
967
|
reqMsgId: 'string',
|
|
189
968
|
resultCode: 'string',
|
|
190
969
|
resultMsg: 'string',
|
|
191
|
-
certifyId: 'string',
|
|
192
|
-
certifyUrl: 'string',
|
|
193
970
|
};
|
|
194
971
|
}
|
|
195
972
|
}
|
|
196
|
-
exports.
|
|
197
|
-
class
|
|
973
|
+
exports.CheckTwometaHashResponse = CheckTwometaHashResponse;
|
|
974
|
+
class QueryThreemetaOnlinetimeRequest extends $tea.Model {
|
|
198
975
|
constructor(map) {
|
|
199
976
|
super(map);
|
|
200
977
|
}
|
|
@@ -202,43 +979,27 @@ class ExecDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
202
979
|
return {
|
|
203
980
|
authToken: 'auth_token',
|
|
204
981
|
productInstanceId: 'product_instance_id',
|
|
205
|
-
|
|
982
|
+
outerOrderNo: 'outer_order_no',
|
|
206
983
|
certName: 'cert_name',
|
|
207
984
|
certNo: 'cert_no',
|
|
208
|
-
|
|
985
|
+
phoneNo: 'phone_no',
|
|
209
986
|
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
987
|
};
|
|
219
988
|
}
|
|
220
989
|
static types() {
|
|
221
990
|
return {
|
|
222
991
|
authToken: 'string',
|
|
223
992
|
productInstanceId: 'string',
|
|
224
|
-
|
|
993
|
+
outerOrderNo: 'string',
|
|
225
994
|
certName: 'string',
|
|
226
995
|
certNo: 'string',
|
|
227
|
-
|
|
996
|
+
phoneNo: 'string',
|
|
228
997
|
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
998
|
};
|
|
238
999
|
}
|
|
239
1000
|
}
|
|
240
|
-
exports.
|
|
241
|
-
class
|
|
1001
|
+
exports.QueryThreemetaOnlinetimeRequest = QueryThreemetaOnlinetimeRequest;
|
|
1002
|
+
class QueryThreemetaOnlinetimeResponse extends $tea.Model {
|
|
242
1003
|
constructor(map) {
|
|
243
1004
|
super(map);
|
|
244
1005
|
}
|
|
@@ -247,9 +1008,8 @@ class ExecDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
247
1008
|
reqMsgId: 'req_msg_id',
|
|
248
1009
|
resultCode: 'result_code',
|
|
249
1010
|
resultMsg: 'result_msg',
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
reason: 'reason',
|
|
1011
|
+
lengthCode: 'length_code',
|
|
1012
|
+
externInfo: 'extern_info',
|
|
253
1013
|
};
|
|
254
1014
|
}
|
|
255
1015
|
static types() {
|
|
@@ -257,36 +1017,41 @@ class ExecDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
257
1017
|
reqMsgId: 'string',
|
|
258
1018
|
resultCode: 'string',
|
|
259
1019
|
resultMsg: 'string',
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
reason: 'string',
|
|
1020
|
+
lengthCode: 'string',
|
|
1021
|
+
externInfo: 'string',
|
|
263
1022
|
};
|
|
264
1023
|
}
|
|
265
1024
|
}
|
|
266
|
-
exports.
|
|
267
|
-
class
|
|
1025
|
+
exports.QueryThreemetaOnlinetimeResponse = QueryThreemetaOnlinetimeResponse;
|
|
1026
|
+
class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
268
1027
|
constructor(map) {
|
|
269
1028
|
super(map);
|
|
270
1029
|
}
|
|
271
1030
|
static names() {
|
|
272
1031
|
return {
|
|
273
1032
|
authToken: 'auth_token',
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
1033
|
+
apiCode: 'api_code',
|
|
1034
|
+
fileLabel: 'file_label',
|
|
1035
|
+
fileMetadata: 'file_metadata',
|
|
1036
|
+
fileName: 'file_name',
|
|
1037
|
+
mimeType: 'mime_type',
|
|
1038
|
+
apiCluster: 'api_cluster',
|
|
277
1039
|
};
|
|
278
1040
|
}
|
|
279
1041
|
static types() {
|
|
280
1042
|
return {
|
|
281
1043
|
authToken: 'string',
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
1044
|
+
apiCode: 'string',
|
|
1045
|
+
fileLabel: 'string',
|
|
1046
|
+
fileMetadata: 'string',
|
|
1047
|
+
fileName: 'string',
|
|
1048
|
+
mimeType: 'string',
|
|
1049
|
+
apiCluster: 'string',
|
|
285
1050
|
};
|
|
286
1051
|
}
|
|
287
1052
|
}
|
|
288
|
-
exports.
|
|
289
|
-
class
|
|
1053
|
+
exports.CreateAntcloudGatewayxFileUploadRequest = CreateAntcloudGatewayxFileUploadRequest;
|
|
1054
|
+
class CreateAntcloudGatewayxFileUploadResponse extends $tea.Model {
|
|
290
1055
|
constructor(map) {
|
|
291
1056
|
super(map);
|
|
292
1057
|
}
|
|
@@ -295,11 +1060,10 @@ class GetDiRealpersonFacevrfEvidenceResponse extends $tea.Model {
|
|
|
295
1060
|
reqMsgId: 'req_msg_id',
|
|
296
1061
|
resultCode: 'result_code',
|
|
297
1062
|
resultMsg: 'result_msg',
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
pdfExpired: 'pdf_expired',
|
|
1063
|
+
expiredTime: 'expired_time',
|
|
1064
|
+
fileId: 'file_id',
|
|
1065
|
+
uploadHeaders: 'upload_headers',
|
|
1066
|
+
uploadUrl: 'upload_url',
|
|
303
1067
|
};
|
|
304
1068
|
}
|
|
305
1069
|
static types() {
|
|
@@ -307,15 +1071,14 @@ class GetDiRealpersonFacevrfEvidenceResponse extends $tea.Model {
|
|
|
307
1071
|
reqMsgId: 'string',
|
|
308
1072
|
resultCode: 'string',
|
|
309
1073
|
resultMsg: 'string',
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
pdfExpired: 'boolean',
|
|
1074
|
+
expiredTime: 'string',
|
|
1075
|
+
fileId: 'string',
|
|
1076
|
+
uploadHeaders: { 'type': 'array', 'itemType': XNameValuePair },
|
|
1077
|
+
uploadUrl: 'string',
|
|
315
1078
|
};
|
|
316
1079
|
}
|
|
317
1080
|
}
|
|
318
|
-
exports.
|
|
1081
|
+
exports.CreateAntcloudGatewayxFileUploadResponse = CreateAntcloudGatewayxFileUploadResponse;
|
|
319
1082
|
class Client {
|
|
320
1083
|
/**
|
|
321
1084
|
* Init client with Config
|
|
@@ -334,14 +1097,18 @@ class Client {
|
|
|
334
1097
|
this._endpoint = config.endpoint;
|
|
335
1098
|
this._protocol = config.protocol;
|
|
336
1099
|
this._userAgent = config.userAgent;
|
|
337
|
-
this._readTimeout = config.readTimeout;
|
|
338
|
-
this._connectTimeout = config.connectTimeout;
|
|
1100
|
+
this._readTimeout = tea_util_1.default.defaultNumber(config.readTimeout, 20000);
|
|
1101
|
+
this._connectTimeout = tea_util_1.default.defaultNumber(config.connectTimeout, 20000);
|
|
339
1102
|
this._httpProxy = config.httpProxy;
|
|
340
1103
|
this._httpsProxy = config.httpsProxy;
|
|
341
1104
|
this._noProxy = config.noProxy;
|
|
342
1105
|
this._socks5Proxy = config.socks5Proxy;
|
|
343
1106
|
this._socks5NetWork = config.socks5NetWork;
|
|
344
|
-
this._maxIdleConns = config.maxIdleConns;
|
|
1107
|
+
this._maxIdleConns = tea_util_1.default.defaultNumber(config.maxIdleConns, 60000);
|
|
1108
|
+
this._maxIdleTimeMillis = tea_util_1.default.defaultNumber(config.maxIdleTimeMillis, 5);
|
|
1109
|
+
this._keepAliveDurationMillis = tea_util_1.default.defaultNumber(config.keepAliveDurationMillis, 5000);
|
|
1110
|
+
this._maxRequests = tea_util_1.default.defaultNumber(config.maxRequests, 100);
|
|
1111
|
+
this._maxRequestsPerHost = tea_util_1.default.defaultNumber(config.maxRequestsPerHost, 100);
|
|
345
1112
|
}
|
|
346
1113
|
/**
|
|
347
1114
|
* Encapsulate the request and invoke the network
|
|
@@ -353,7 +1120,7 @@ class Client {
|
|
|
353
1120
|
* @param runtime which controls some details of call api, such as retry times
|
|
354
1121
|
* @return the response
|
|
355
1122
|
*/
|
|
356
|
-
async doRequest(version, action, protocol, method, pathname, request, runtime) {
|
|
1123
|
+
async doRequest(version, action, protocol, method, pathname, request, headers, runtime) {
|
|
357
1124
|
let _runtime = {
|
|
358
1125
|
timeouted: "retry",
|
|
359
1126
|
readTimeout: tea_util_1.default.defaultNumber(runtime.readTimeout, this._readTimeout),
|
|
@@ -362,6 +1129,10 @@ class Client {
|
|
|
362
1129
|
httpsProxy: tea_util_1.default.defaultString(runtime.httpsProxy, this._httpsProxy),
|
|
363
1130
|
noProxy: tea_util_1.default.defaultString(runtime.noProxy, this._noProxy),
|
|
364
1131
|
maxIdleConns: tea_util_1.default.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
1132
|
+
maxIdleTimeMillis: this._maxIdleTimeMillis,
|
|
1133
|
+
keepAliveDurationMillis: this._keepAliveDurationMillis,
|
|
1134
|
+
maxRequests: this._maxRequests,
|
|
1135
|
+
maxRequestsPerHost: this._maxRequestsPerHost,
|
|
365
1136
|
retry: {
|
|
366
1137
|
retryable: runtime.autoretry,
|
|
367
1138
|
maxAttempts: tea_util_1.default.defaultNumber(runtime.maxAttempts, 3),
|
|
@@ -393,19 +1164,17 @@ class Client {
|
|
|
393
1164
|
version: version,
|
|
394
1165
|
sign_type: "HmacSHA1",
|
|
395
1166
|
req_time: alipay_util_1.default.getTimestamp(),
|
|
396
|
-
req_msg_id:
|
|
1167
|
+
req_msg_id: alipay_util_1.default.getNonce(),
|
|
397
1168
|
access_key: this._accessKeyId,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
1169
|
+
base_sdk_version: "TeaSDK-2.0",
|
|
1170
|
+
sdk_version: "1.8.0",
|
|
1171
|
+
_prod_code: "REALPERSON",
|
|
1172
|
+
_prod_channel: "undefined",
|
|
401
1173
|
};
|
|
402
1174
|
if (!tea_util_1.default.empty(this._securityToken)) {
|
|
403
1175
|
request_.query["security_token"] = this._securityToken;
|
|
404
1176
|
}
|
|
405
|
-
request_.headers = {
|
|
406
|
-
host: this._endpoint,
|
|
407
|
-
'user-agent': this.getUserAgent(),
|
|
408
|
-
};
|
|
1177
|
+
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
1178
|
let tmp = tea_util_1.default.anyifyMapValue(rpc_util_1.default.query(request));
|
|
410
1179
|
request_.body = new $tea.BytesReadable(tea_util_1.default.toFormString(tmp));
|
|
411
1180
|
request_.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
@@ -413,10 +1182,11 @@ class Client {
|
|
|
413
1182
|
request_.query["sign"] = alipay_util_1.default.getSignature(signedParam, this._accessKeySecret);
|
|
414
1183
|
_lastRequest = request_;
|
|
415
1184
|
let response_ = await $tea.doAction(request_, _runtime);
|
|
416
|
-
let
|
|
1185
|
+
let raw = await tea_util_1.default.readAsString(response_.body);
|
|
1186
|
+
let obj = tea_util_1.default.parseJSON(raw);
|
|
417
1187
|
let res = tea_util_1.default.assertAsMap(obj);
|
|
418
1188
|
let resp = tea_util_1.default.assertAsMap(res["response"]);
|
|
419
|
-
if (alipay_util_1.default.hasError(
|
|
1189
|
+
if (alipay_util_1.default.hasError(raw, this._accessKeySecret)) {
|
|
420
1190
|
throw $tea.newError({
|
|
421
1191
|
message: resp["result_msg"],
|
|
422
1192
|
data: resp,
|
|
@@ -434,77 +1204,313 @@ class Client {
|
|
|
434
1204
|
}
|
|
435
1205
|
throw $tea.newUnretryableError(_lastRequest);
|
|
436
1206
|
}
|
|
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
1207
|
/**
|
|
446
1208
|
* Description: 查询认证的结果和相关信息
|
|
447
1209
|
* Summary: 认证查询
|
|
448
1210
|
*/
|
|
449
|
-
async
|
|
1211
|
+
async queryFacevrfServer(request) {
|
|
450
1212
|
let runtime = new $Util.RuntimeOptions({});
|
|
451
|
-
|
|
1213
|
+
let headers = {};
|
|
1214
|
+
return await this.queryFacevrfServerEx(request, headers, runtime);
|
|
452
1215
|
}
|
|
453
1216
|
/**
|
|
454
1217
|
* Description: 查询认证的结果和相关信息
|
|
455
1218
|
* Summary: 认证查询
|
|
456
1219
|
*/
|
|
457
|
-
async
|
|
1220
|
+
async queryFacevrfServerEx(request, headers, runtime) {
|
|
458
1221
|
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
|
|
1222
|
+
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
1223
|
}
|
|
461
1224
|
/**
|
|
462
1225
|
* Description: 服务端认证创建,传入认证信息,获取认证ID(和url)
|
|
463
1226
|
* Summary: 认证创建
|
|
464
1227
|
*/
|
|
465
|
-
async
|
|
1228
|
+
async createFacevrfServer(request) {
|
|
466
1229
|
let runtime = new $Util.RuntimeOptions({});
|
|
467
|
-
|
|
1230
|
+
let headers = {};
|
|
1231
|
+
return await this.createFacevrfServerEx(request, headers, runtime);
|
|
468
1232
|
}
|
|
469
1233
|
/**
|
|
470
1234
|
* Description: 服务端认证创建,传入认证信息,获取认证ID(和url)
|
|
471
1235
|
* Summary: 认证创建
|
|
472
1236
|
*/
|
|
473
|
-
async
|
|
1237
|
+
async createFacevrfServerEx(request, headers, runtime) {
|
|
474
1238
|
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
|
|
1239
|
+
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
1240
|
}
|
|
477
1241
|
/**
|
|
478
1242
|
* Description: 纯服务端比对,直接输入待比对的图片,返回比对结果
|
|
479
1243
|
* Summary: 纯服务端比对
|
|
480
1244
|
*/
|
|
481
|
-
async
|
|
1245
|
+
async execFacevrfServer(request) {
|
|
482
1246
|
let runtime = new $Util.RuntimeOptions({});
|
|
483
|
-
|
|
1247
|
+
let headers = {};
|
|
1248
|
+
return await this.execFacevrfServerEx(request, headers, runtime);
|
|
484
1249
|
}
|
|
485
1250
|
/**
|
|
486
1251
|
* Description: 纯服务端比对,直接输入待比对的图片,返回比对结果
|
|
487
1252
|
* Summary: 纯服务端比对
|
|
488
1253
|
*/
|
|
489
|
-
async
|
|
1254
|
+
async execFacevrfServerEx(request, headers, runtime) {
|
|
490
1255
|
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
|
|
1256
|
+
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
1257
|
}
|
|
493
1258
|
/**
|
|
494
1259
|
* Description: 传入某次刷脸的certifyID,获得刷脸存证的pdf文件和司法脸统一证据ID,这两份数据可以在司法链的控制台中进行核验存证是否被记录在区块链上从而证实其真实可信。
|
|
495
1260
|
* Summary: 商户获取司法链上刷脸存证和统一证据ID
|
|
496
1261
|
*/
|
|
497
|
-
async
|
|
1262
|
+
async getFacevrfEvidence(request) {
|
|
498
1263
|
let runtime = new $Util.RuntimeOptions({});
|
|
499
|
-
|
|
1264
|
+
let headers = {};
|
|
1265
|
+
return await this.getFacevrfEvidenceEx(request, headers, runtime);
|
|
500
1266
|
}
|
|
501
1267
|
/**
|
|
502
1268
|
* Description: 传入某次刷脸的certifyID,获得刷脸存证的pdf文件和司法脸统一证据ID,这两份数据可以在司法链的控制台中进行核验存证是否被记录在区块链上从而证实其真实可信。
|
|
503
1269
|
* Summary: 商户获取司法链上刷脸存证和统一证据ID
|
|
504
1270
|
*/
|
|
505
|
-
async
|
|
1271
|
+
async getFacevrfEvidenceEx(request, headers, runtime) {
|
|
1272
|
+
tea_util_1.default.validateModel(request);
|
|
1273
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.evidence.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetFacevrfEvidenceResponse({}));
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* Description: 个人二要素认证
|
|
1277
|
+
* Summary: 个人二要素认证
|
|
1278
|
+
*/
|
|
1279
|
+
async checkIndividualidTwometa(request) {
|
|
1280
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1281
|
+
let headers = {};
|
|
1282
|
+
return await this.checkIndividualidTwometaEx(request, headers, runtime);
|
|
1283
|
+
}
|
|
1284
|
+
/**
|
|
1285
|
+
* Description: 个人二要素认证
|
|
1286
|
+
* Summary: 个人二要素认证
|
|
1287
|
+
*/
|
|
1288
|
+
async checkIndividualidTwometaEx(request, headers, runtime) {
|
|
1289
|
+
tea_util_1.default.validateModel(request);
|
|
1290
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.individualid.twometa.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidTwometaResponse({}));
|
|
1291
|
+
}
|
|
1292
|
+
/**
|
|
1293
|
+
* Description: 个人三要素认证
|
|
1294
|
+
* Summary: 个人三要素认证
|
|
1295
|
+
*/
|
|
1296
|
+
async checkIndividualidThreemeta(request) {
|
|
1297
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1298
|
+
let headers = {};
|
|
1299
|
+
return await this.checkIndividualidThreemetaEx(request, headers, runtime);
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Description: 个人三要素认证
|
|
1303
|
+
* Summary: 个人三要素认证
|
|
1304
|
+
*/
|
|
1305
|
+
async checkIndividualidThreemetaEx(request, headers, runtime) {
|
|
1306
|
+
tea_util_1.default.validateModel(request);
|
|
1307
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.individualid.threemeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidThreemetaResponse({}));
|
|
1308
|
+
}
|
|
1309
|
+
/**
|
|
1310
|
+
* Description: 个人四要素认证
|
|
1311
|
+
* Summary: 个人四要素认证
|
|
1312
|
+
*/
|
|
1313
|
+
async checkIndividualidFourmeta(request) {
|
|
1314
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1315
|
+
let headers = {};
|
|
1316
|
+
return await this.checkIndividualidFourmetaEx(request, headers, runtime);
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* Description: 个人四要素认证
|
|
1320
|
+
* Summary: 个人四要素认证
|
|
1321
|
+
*/
|
|
1322
|
+
async checkIndividualidFourmetaEx(request, headers, runtime) {
|
|
1323
|
+
tea_util_1.default.validateModel(request);
|
|
1324
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.individualid.fourmeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidFourmetaResponse({}));
|
|
1325
|
+
}
|
|
1326
|
+
/**
|
|
1327
|
+
* Description: 个人三要素认证(场景路由)
|
|
1328
|
+
* Summary: 个人三要素认证(场景路由)
|
|
1329
|
+
*/
|
|
1330
|
+
async checkRouteThreemeta(request) {
|
|
1331
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1332
|
+
let headers = {};
|
|
1333
|
+
return await this.checkRouteThreemetaEx(request, headers, runtime);
|
|
1334
|
+
}
|
|
1335
|
+
/**
|
|
1336
|
+
* Description: 个人三要素认证(场景路由)
|
|
1337
|
+
* Summary: 个人三要素认证(场景路由)
|
|
1338
|
+
*/
|
|
1339
|
+
async checkRouteThreemetaEx(request, headers, runtime) {
|
|
1340
|
+
tea_util_1.default.validateModel(request);
|
|
1341
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.route.threemeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckRouteThreemetaResponse({}));
|
|
1342
|
+
}
|
|
1343
|
+
/**
|
|
1344
|
+
* Description: 纯服务端声纹注册
|
|
1345
|
+
* Summary: 纯服务端声纹注册
|
|
1346
|
+
*/
|
|
1347
|
+
async createVoiceprintServermode(request) {
|
|
1348
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1349
|
+
let headers = {};
|
|
1350
|
+
return await this.createVoiceprintServermodeEx(request, headers, runtime);
|
|
1351
|
+
}
|
|
1352
|
+
/**
|
|
1353
|
+
* Description: 纯服务端声纹注册
|
|
1354
|
+
* Summary: 纯服务端声纹注册
|
|
1355
|
+
*/
|
|
1356
|
+
async createVoiceprintServermodeEx(request, headers, runtime) {
|
|
1357
|
+
if (!tea_util_1.default.isUnset(request.fileObject)) {
|
|
1358
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
1359
|
+
authToken: request.authToken,
|
|
1360
|
+
apiCode: "di.realperson.voiceprint.servermode.create",
|
|
1361
|
+
fileName: request.fileObjectName,
|
|
1362
|
+
});
|
|
1363
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
1364
|
+
if (!alipay_util_1.default.isSuccess(uploadResp.resultCode, "ok")) {
|
|
1365
|
+
let createVoiceprintServermodeResponse = new CreateVoiceprintServermodeResponse({
|
|
1366
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
1367
|
+
resultCode: uploadResp.resultCode,
|
|
1368
|
+
resultMsg: uploadResp.resultMsg,
|
|
1369
|
+
});
|
|
1370
|
+
return createVoiceprintServermodeResponse;
|
|
1371
|
+
}
|
|
1372
|
+
let uploadHeaders = alipay_util_1.default.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
1373
|
+
await alipay_util_1.default.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
1374
|
+
request.fileId = uploadResp.fileId;
|
|
1375
|
+
}
|
|
1376
|
+
tea_util_1.default.validateModel(request);
|
|
1377
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.voiceprint.servermode.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateVoiceprintServermodeResponse({}));
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Description: 纯服务端声纹比对
|
|
1381
|
+
* Summary: 纯服务端声纹比对
|
|
1382
|
+
*/
|
|
1383
|
+
async verifyVoiceprintServermode(request) {
|
|
1384
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1385
|
+
let headers = {};
|
|
1386
|
+
return await this.verifyVoiceprintServermodeEx(request, headers, runtime);
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Description: 纯服务端声纹比对
|
|
1390
|
+
* Summary: 纯服务端声纹比对
|
|
1391
|
+
*/
|
|
1392
|
+
async verifyVoiceprintServermodeEx(request, headers, runtime) {
|
|
1393
|
+
tea_util_1.default.validateModel(request);
|
|
1394
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.voiceprint.servermode.verify", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new VerifyVoiceprintServermodeResponse({}));
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* Description: 个人二要素认证(场景路由)
|
|
1398
|
+
* Summary: 个人二要素认证(场景路由)
|
|
1399
|
+
*/
|
|
1400
|
+
async checkRouteTwometa(request) {
|
|
1401
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1402
|
+
let headers = {};
|
|
1403
|
+
return await this.checkRouteTwometaEx(request, headers, runtime);
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* Description: 个人二要素认证(场景路由)
|
|
1407
|
+
* Summary: 个人二要素认证(场景路由)
|
|
1408
|
+
*/
|
|
1409
|
+
async checkRouteTwometaEx(request, headers, runtime) {
|
|
1410
|
+
tea_util_1.default.validateModel(request);
|
|
1411
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.route.twometa.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckRouteTwometaResponse({}));
|
|
1412
|
+
}
|
|
1413
|
+
/**
|
|
1414
|
+
* Description: 通过移动设备身份临时标识查询该设备相关的设备风险信息的服务
|
|
1415
|
+
* Summary: 移动风险设备查询
|
|
1416
|
+
*/
|
|
1417
|
+
async queryMobileRisk(request) {
|
|
1418
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1419
|
+
let headers = {};
|
|
1420
|
+
return await this.queryMobileRiskEx(request, headers, runtime);
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* Description: 通过移动设备身份临时标识查询该设备相关的设备风险信息的服务
|
|
1424
|
+
* Summary: 移动风险设备查询
|
|
1425
|
+
*/
|
|
1426
|
+
async queryMobileRiskEx(request, headers, runtime) {
|
|
1427
|
+
tea_util_1.default.validateModel(request);
|
|
1428
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.mobile.risk.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMobileRiskResponse({}));
|
|
1429
|
+
}
|
|
1430
|
+
/**
|
|
1431
|
+
* Description: 通过认证ID查询认证人、认证时间等相关信息,供智科内部使用
|
|
1432
|
+
* Summary: 查询认证人、认证时间等相关信息
|
|
1433
|
+
*/
|
|
1434
|
+
async detailFacevrfServer(request) {
|
|
1435
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1436
|
+
let headers = {};
|
|
1437
|
+
return await this.detailFacevrfServerEx(request, headers, runtime);
|
|
1438
|
+
}
|
|
1439
|
+
/**
|
|
1440
|
+
* Description: 通过认证ID查询认证人、认证时间等相关信息,供智科内部使用
|
|
1441
|
+
* Summary: 查询认证人、认证时间等相关信息
|
|
1442
|
+
*/
|
|
1443
|
+
async detailFacevrfServerEx(request, headers, runtime) {
|
|
1444
|
+
tea_util_1.default.validateModel(request);
|
|
1445
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.facevrf.server.detail", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new DetailFacevrfServerResponse({}));
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Description: 临工场景等场景下,通过主体的社保缴纳情况进行的反欺诈校验
|
|
1449
|
+
* Summary: 个人反欺诈风险校验
|
|
1450
|
+
*/
|
|
1451
|
+
async checkAnticheatPersonal(request) {
|
|
1452
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1453
|
+
let headers = {};
|
|
1454
|
+
return await this.checkAnticheatPersonalEx(request, headers, runtime);
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* Description: 临工场景等场景下,通过主体的社保缴纳情况进行的反欺诈校验
|
|
1458
|
+
* Summary: 个人反欺诈风险校验
|
|
1459
|
+
*/
|
|
1460
|
+
async checkAnticheatPersonalEx(request, headers, runtime) {
|
|
1461
|
+
tea_util_1.default.validateModel(request);
|
|
1462
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.anticheat.personal.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckAnticheatPersonalResponse({}));
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Description: 二要素支持hash主体信息
|
|
1466
|
+
* Summary: 个人二要素核验支持hash的主体信息
|
|
1467
|
+
*/
|
|
1468
|
+
async checkTwometaHash(request) {
|
|
1469
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1470
|
+
let headers = {};
|
|
1471
|
+
return await this.checkTwometaHashEx(request, headers, runtime);
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Description: 二要素支持hash主体信息
|
|
1475
|
+
* Summary: 个人二要素核验支持hash的主体信息
|
|
1476
|
+
*/
|
|
1477
|
+
async checkTwometaHashEx(request, headers, runtime) {
|
|
1478
|
+
tea_util_1.default.validateModel(request);
|
|
1479
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.twometa.hash.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckTwometaHashResponse({}));
|
|
1480
|
+
}
|
|
1481
|
+
/**
|
|
1482
|
+
* Description: 对接运营商等数据源查询手机号码的在网时长
|
|
1483
|
+
* Summary: 三要素在网时长查询接口
|
|
1484
|
+
*/
|
|
1485
|
+
async queryThreemetaOnlinetime(request) {
|
|
1486
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1487
|
+
let headers = {};
|
|
1488
|
+
return await this.queryThreemetaOnlinetimeEx(request, headers, runtime);
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* Description: 对接运营商等数据源查询手机号码的在网时长
|
|
1492
|
+
* Summary: 三要素在网时长查询接口
|
|
1493
|
+
*/
|
|
1494
|
+
async queryThreemetaOnlinetimeEx(request, headers, runtime) {
|
|
1495
|
+
tea_util_1.default.validateModel(request);
|
|
1496
|
+
return $tea.cast(await this.doRequest("1.0", "di.realperson.threemeta.onlinetime.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryThreemetaOnlinetimeResponse({}));
|
|
1497
|
+
}
|
|
1498
|
+
/**
|
|
1499
|
+
* Description: 创建HTTP PUT提交的文件上传
|
|
1500
|
+
* Summary: 文件上传创建
|
|
1501
|
+
*/
|
|
1502
|
+
async createAntcloudGatewayxFileUpload(request) {
|
|
1503
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
1504
|
+
let headers = {};
|
|
1505
|
+
return await this.createAntcloudGatewayxFileUploadEx(request, headers, runtime);
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Description: 创建HTTP PUT提交的文件上传
|
|
1509
|
+
* Summary: 文件上传创建
|
|
1510
|
+
*/
|
|
1511
|
+
async createAntcloudGatewayxFileUploadEx(request, headers, runtime) {
|
|
506
1512
|
tea_util_1.default.validateModel(request);
|
|
507
|
-
return $tea.cast(await this.doRequest("1.0", "
|
|
1513
|
+
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
1514
|
}
|
|
509
1515
|
}
|
|
510
1516
|
exports.default = Client;
|