@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/src/client.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// This file is auto-generated, don't edit it
|
|
2
|
-
import
|
|
2
|
+
import AntchainUtil from '@antchain/alipay-util';
|
|
3
3
|
import Util, * as $Util from '@alicloud/tea-util';
|
|
4
4
|
import RPCUtil from '@alicloud/rpc-util';
|
|
5
|
+
import { Readable } from 'stream';
|
|
5
6
|
import * as $tea from '@alicloud/tea-typescript';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -22,6 +23,10 @@ export class Config extends $tea.Model {
|
|
|
22
23
|
userAgent?: string;
|
|
23
24
|
socks5Proxy?: string;
|
|
24
25
|
socks5NetWork?: string;
|
|
26
|
+
maxIdleTimeMillis?: number;
|
|
27
|
+
keepAliveDurationMillis?: number;
|
|
28
|
+
maxRequests?: number;
|
|
29
|
+
maxRequestsPerHost?: number;
|
|
25
30
|
static names(): { [key: string]: string } {
|
|
26
31
|
return {
|
|
27
32
|
accessKeyId: 'accessKeyId',
|
|
@@ -38,6 +43,10 @@ export class Config extends $tea.Model {
|
|
|
38
43
|
userAgent: 'userAgent',
|
|
39
44
|
socks5Proxy: 'socks5Proxy',
|
|
40
45
|
socks5NetWork: 'socks5NetWork',
|
|
46
|
+
maxIdleTimeMillis: 'maxIdleTimeMillis',
|
|
47
|
+
keepAliveDurationMillis: 'keepAliveDurationMillis',
|
|
48
|
+
maxRequests: 'maxRequests',
|
|
49
|
+
maxRequestsPerHost: 'maxRequestsPerHost',
|
|
41
50
|
};
|
|
42
51
|
}
|
|
43
52
|
|
|
@@ -57,6 +66,10 @@ export class Config extends $tea.Model {
|
|
|
57
66
|
userAgent: 'string',
|
|
58
67
|
socks5Proxy: 'string',
|
|
59
68
|
socks5NetWork: 'string',
|
|
69
|
+
maxIdleTimeMillis: 'number',
|
|
70
|
+
keepAliveDurationMillis: 'number',
|
|
71
|
+
maxRequests: 'number',
|
|
72
|
+
maxRequestsPerHost: 'number',
|
|
60
73
|
};
|
|
61
74
|
}
|
|
62
75
|
|
|
@@ -65,26 +78,112 @@ export class Config extends $tea.Model {
|
|
|
65
78
|
}
|
|
66
79
|
}
|
|
67
80
|
|
|
68
|
-
|
|
81
|
+
// 音频元数据
|
|
82
|
+
export class AudioMeta extends $tea.Model {
|
|
83
|
+
// 采样率
|
|
84
|
+
sampleFreq?: number;
|
|
85
|
+
// 音频道数
|
|
86
|
+
channelsNum?: number;
|
|
87
|
+
// 音频数据采样点所占位数
|
|
88
|
+
bits?: number;
|
|
89
|
+
// 语音信道分离标识
|
|
90
|
+
channel?: number;
|
|
91
|
+
static names(): { [key: string]: string } {
|
|
92
|
+
return {
|
|
93
|
+
sampleFreq: 'sample_freq',
|
|
94
|
+
channelsNum: 'channels_num',
|
|
95
|
+
bits: 'bits',
|
|
96
|
+
channel: 'channel',
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static types(): { [key: string]: any } {
|
|
101
|
+
return {
|
|
102
|
+
sampleFreq: 'number',
|
|
103
|
+
channelsNum: 'number',
|
|
104
|
+
bits: 'number',
|
|
105
|
+
channel: 'number',
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
constructor(map?: { [key: string]: any }) {
|
|
110
|
+
super(map);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
// 音频文件
|
|
115
|
+
export class Audio extends $tea.Model {
|
|
116
|
+
// 音频文件名称(单次请求保持唯一)
|
|
117
|
+
token?: string;
|
|
118
|
+
// 待认证的音频文件,base64编码格式
|
|
119
|
+
rawData?: string;
|
|
120
|
+
// 音频文件OSS地址
|
|
121
|
+
audioUrl?: string;
|
|
122
|
+
static names(): { [key: string]: string } {
|
|
123
|
+
return {
|
|
124
|
+
token: 'token',
|
|
125
|
+
rawData: 'raw_data',
|
|
126
|
+
audioUrl: 'audio_url',
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
static types(): { [key: string]: any } {
|
|
131
|
+
return {
|
|
132
|
+
token: 'string',
|
|
133
|
+
rawData: 'string',
|
|
134
|
+
audioUrl: 'string',
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
constructor(map?: { [key: string]: any }) {
|
|
139
|
+
super(map);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// 键值对
|
|
144
|
+
export class XNameValuePair extends $tea.Model {
|
|
145
|
+
// 键名
|
|
146
|
+
name: string;
|
|
147
|
+
// 键值
|
|
148
|
+
value: string;
|
|
149
|
+
static names(): { [key: string]: string } {
|
|
150
|
+
return {
|
|
151
|
+
name: 'name',
|
|
152
|
+
value: 'value',
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
static types(): { [key: string]: any } {
|
|
157
|
+
return {
|
|
158
|
+
name: 'string',
|
|
159
|
+
value: 'string',
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
constructor(map?: { [key: string]: any }) {
|
|
164
|
+
super(map);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export class QueryFacevrfServerRequest extends $tea.Model {
|
|
169
|
+
// OAuth模式下的授权token
|
|
69
170
|
authToken?: string;
|
|
70
171
|
productInstanceId?: string;
|
|
71
|
-
regionName?: string;
|
|
72
172
|
// 实人认证唯一标识
|
|
73
|
-
certifyId
|
|
173
|
+
certifyId: string;
|
|
74
174
|
// 预留扩展业务参数
|
|
75
175
|
externParam?: string;
|
|
76
176
|
// 认证材料(如人脸图像)的哈希
|
|
77
177
|
materialHash?: string;
|
|
78
178
|
// 外部唯一标识。用于定位。
|
|
79
179
|
// 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
80
|
-
outerOrderNo
|
|
180
|
+
outerOrderNo: string;
|
|
81
181
|
// 场景ID
|
|
82
|
-
sceneId
|
|
182
|
+
sceneId: string;
|
|
83
183
|
static names(): { [key: string]: string } {
|
|
84
184
|
return {
|
|
85
185
|
authToken: 'auth_token',
|
|
86
186
|
productInstanceId: 'product_instance_id',
|
|
87
|
-
regionName: 'region_name',
|
|
88
187
|
certifyId: 'certify_id',
|
|
89
188
|
externParam: 'extern_param',
|
|
90
189
|
materialHash: 'material_hash',
|
|
@@ -97,7 +196,6 @@ export class QueryDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
97
196
|
return {
|
|
98
197
|
authToken: 'string',
|
|
99
198
|
productInstanceId: 'string',
|
|
100
|
-
regionName: 'string',
|
|
101
199
|
certifyId: 'string',
|
|
102
200
|
externParam: 'string',
|
|
103
201
|
materialHash: 'string',
|
|
@@ -111,9 +209,12 @@ export class QueryDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
111
209
|
}
|
|
112
210
|
}
|
|
113
211
|
|
|
114
|
-
export class
|
|
212
|
+
export class QueryFacevrfServerResponse extends $tea.Model {
|
|
213
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
115
214
|
reqMsgId?: string;
|
|
215
|
+
// 结果码,一般OK表示调用成功
|
|
116
216
|
resultCode?: string;
|
|
217
|
+
// 异常信息的文本描述
|
|
117
218
|
resultMsg?: string;
|
|
118
219
|
// 认证的主体信息,一般的认证场景返回为空
|
|
119
220
|
identityInfo?: string;
|
|
@@ -156,50 +257,56 @@ export class QueryDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
156
257
|
}
|
|
157
258
|
}
|
|
158
259
|
|
|
159
|
-
export class
|
|
260
|
+
export class CreateFacevrfServerRequest extends $tea.Model {
|
|
261
|
+
// OAuth模式下的授权token
|
|
160
262
|
authToken?: string;
|
|
161
263
|
productInstanceId?: string;
|
|
162
|
-
regionName?: string;
|
|
163
264
|
// 认证模式码
|
|
164
|
-
bizCode
|
|
265
|
+
bizCode: string;
|
|
165
266
|
// h5认证完成后,服务端回调此地址通知商户认证结果
|
|
166
267
|
callbackUrl?: string;
|
|
167
268
|
// 真实姓名
|
|
168
|
-
certName
|
|
269
|
+
certName: string;
|
|
169
270
|
// 证件号码
|
|
170
|
-
certNo
|
|
271
|
+
certNo: string;
|
|
272
|
+
// cert_name、cert_no两个字段的传入模式。0:明文1:密文
|
|
273
|
+
encType?: string;
|
|
171
274
|
// 证件类型,如身份证
|
|
172
|
-
certType
|
|
275
|
+
certType: string;
|
|
173
276
|
// 预留扩展参数
|
|
174
277
|
externParam?: string;
|
|
175
278
|
// 自定义比对源人脸图像,base64编码格式
|
|
176
279
|
facialPictureRef?: string;
|
|
177
280
|
// 身份信息来源类型,如证件
|
|
178
|
-
identityType
|
|
281
|
+
identityType: string;
|
|
179
282
|
// metainfo 环境参数,需要通过客户端 SDK 获取
|
|
180
283
|
metaInfo?: string;
|
|
181
284
|
// 外部唯一标识。用于定位。
|
|
182
285
|
// 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
183
|
-
outerOrderNo
|
|
286
|
+
outerOrderNo: string;
|
|
184
287
|
// 回跳地址
|
|
185
288
|
returnUrl?: string;
|
|
186
289
|
// 场景ID
|
|
187
|
-
sceneId
|
|
290
|
+
sceneId: string;
|
|
188
291
|
// 商户自定义的用户ID
|
|
189
292
|
userId?: string;
|
|
190
293
|
// 用户的IP
|
|
191
294
|
userIp?: string;
|
|
192
295
|
// 用户的手机号
|
|
193
296
|
userMobile?: string;
|
|
297
|
+
// callbackUrl回调时是否需要重试,默认false(不需要重试)
|
|
298
|
+
callbackNeedRetry?: boolean;
|
|
299
|
+
// 活体检测的类型
|
|
300
|
+
model?: string;
|
|
194
301
|
static names(): { [key: string]: string } {
|
|
195
302
|
return {
|
|
196
303
|
authToken: 'auth_token',
|
|
197
304
|
productInstanceId: 'product_instance_id',
|
|
198
|
-
regionName: 'region_name',
|
|
199
305
|
bizCode: 'biz_code',
|
|
200
306
|
callbackUrl: 'callback_url',
|
|
201
307
|
certName: 'cert_name',
|
|
202
308
|
certNo: 'cert_no',
|
|
309
|
+
encType: 'enc_type',
|
|
203
310
|
certType: 'cert_type',
|
|
204
311
|
externParam: 'extern_param',
|
|
205
312
|
facialPictureRef: 'facial_picture_ref',
|
|
@@ -211,6 +318,8 @@ export class CreateDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
211
318
|
userId: 'user_id',
|
|
212
319
|
userIp: 'user_ip',
|
|
213
320
|
userMobile: 'user_mobile',
|
|
321
|
+
callbackNeedRetry: 'callback_need_retry',
|
|
322
|
+
model: 'model',
|
|
214
323
|
};
|
|
215
324
|
}
|
|
216
325
|
|
|
@@ -218,11 +327,11 @@ export class CreateDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
218
327
|
return {
|
|
219
328
|
authToken: 'string',
|
|
220
329
|
productInstanceId: 'string',
|
|
221
|
-
regionName: 'string',
|
|
222
330
|
bizCode: 'string',
|
|
223
331
|
callbackUrl: 'string',
|
|
224
332
|
certName: 'string',
|
|
225
333
|
certNo: 'string',
|
|
334
|
+
encType: 'string',
|
|
226
335
|
certType: 'string',
|
|
227
336
|
externParam: 'string',
|
|
228
337
|
facialPictureRef: 'string',
|
|
@@ -234,6 +343,8 @@ export class CreateDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
234
343
|
userId: 'string',
|
|
235
344
|
userIp: 'string',
|
|
236
345
|
userMobile: 'string',
|
|
346
|
+
callbackNeedRetry: 'boolean',
|
|
347
|
+
model: 'string',
|
|
237
348
|
};
|
|
238
349
|
}
|
|
239
350
|
|
|
@@ -242,9 +353,12 @@ export class CreateDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
242
353
|
}
|
|
243
354
|
}
|
|
244
355
|
|
|
245
|
-
export class
|
|
356
|
+
export class CreateFacevrfServerResponse extends $tea.Model {
|
|
357
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
246
358
|
reqMsgId?: string;
|
|
359
|
+
// 结果码,一般OK表示调用成功
|
|
247
360
|
resultCode?: string;
|
|
361
|
+
// 异常信息的文本描述
|
|
248
362
|
resultMsg?: string;
|
|
249
363
|
// 实人认证唯一标识
|
|
250
364
|
certifyId?: string;
|
|
@@ -275,44 +389,45 @@ export class CreateDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
275
389
|
}
|
|
276
390
|
}
|
|
277
391
|
|
|
278
|
-
export class
|
|
392
|
+
export class ExecFacevrfServerRequest extends $tea.Model {
|
|
393
|
+
// OAuth模式下的授权token
|
|
279
394
|
authToken?: string;
|
|
280
395
|
productInstanceId?: string;
|
|
281
|
-
regionName?: string;
|
|
282
396
|
// 真实姓名
|
|
283
|
-
certName
|
|
397
|
+
certName: string;
|
|
284
398
|
// 证件号码
|
|
285
|
-
certNo
|
|
399
|
+
certNo: string;
|
|
400
|
+
// cert_name、cert_no两个字段的传入模式0:明文1:密文
|
|
401
|
+
encType?: string;
|
|
286
402
|
// 证件类型,如身份证
|
|
287
|
-
certType
|
|
403
|
+
certType: string;
|
|
288
404
|
// 预留扩展参数
|
|
289
405
|
externParam?: string;
|
|
290
|
-
// 待认证的人脸图像,base64编码格式
|
|
291
|
-
facialPictureAuth?: string;
|
|
292
406
|
// 自定义比对源人脸图像,base64编码格式
|
|
293
407
|
facialPictureRef?: string;
|
|
294
408
|
// 身份信息来源类型,如证件
|
|
295
|
-
identityType
|
|
409
|
+
identityType: string;
|
|
296
410
|
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
297
|
-
outerOrderNo
|
|
411
|
+
outerOrderNo: string;
|
|
298
412
|
// 场景ID
|
|
299
|
-
sceneId
|
|
413
|
+
sceneId: string;
|
|
300
414
|
// 商户自定义的用户ID
|
|
301
415
|
userId?: string;
|
|
302
416
|
// 用户的IP
|
|
303
417
|
userIp?: string;
|
|
304
418
|
// 用户的手机号(或其哈希值)
|
|
305
419
|
userMobile?: string;
|
|
420
|
+
// 待认证的人脸图像,base64编码格式
|
|
421
|
+
facialPictureAuth: string;
|
|
306
422
|
static names(): { [key: string]: string } {
|
|
307
423
|
return {
|
|
308
424
|
authToken: 'auth_token',
|
|
309
425
|
productInstanceId: 'product_instance_id',
|
|
310
|
-
regionName: 'region_name',
|
|
311
426
|
certName: 'cert_name',
|
|
312
427
|
certNo: 'cert_no',
|
|
428
|
+
encType: 'enc_type',
|
|
313
429
|
certType: 'cert_type',
|
|
314
430
|
externParam: 'extern_param',
|
|
315
|
-
facialPictureAuth: 'facial_picture_auth',
|
|
316
431
|
facialPictureRef: 'facial_picture_ref',
|
|
317
432
|
identityType: 'identity_type',
|
|
318
433
|
outerOrderNo: 'outer_order_no',
|
|
@@ -320,6 +435,7 @@ export class ExecDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
320
435
|
userId: 'user_id',
|
|
321
436
|
userIp: 'user_ip',
|
|
322
437
|
userMobile: 'user_mobile',
|
|
438
|
+
facialPictureAuth: 'facial_picture_auth',
|
|
323
439
|
};
|
|
324
440
|
}
|
|
325
441
|
|
|
@@ -327,12 +443,11 @@ export class ExecDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
327
443
|
return {
|
|
328
444
|
authToken: 'string',
|
|
329
445
|
productInstanceId: 'string',
|
|
330
|
-
regionName: 'string',
|
|
331
446
|
certName: 'string',
|
|
332
447
|
certNo: 'string',
|
|
448
|
+
encType: 'string',
|
|
333
449
|
certType: 'string',
|
|
334
450
|
externParam: 'string',
|
|
335
|
-
facialPictureAuth: 'string',
|
|
336
451
|
facialPictureRef: 'string',
|
|
337
452
|
identityType: 'string',
|
|
338
453
|
outerOrderNo: 'string',
|
|
@@ -340,6 +455,7 @@ export class ExecDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
340
455
|
userId: 'string',
|
|
341
456
|
userIp: 'string',
|
|
342
457
|
userMobile: 'string',
|
|
458
|
+
facialPictureAuth: 'string',
|
|
343
459
|
};
|
|
344
460
|
}
|
|
345
461
|
|
|
@@ -348,9 +464,12 @@ export class ExecDiRealpersonFacevrfServerRequest extends $tea.Model {
|
|
|
348
464
|
}
|
|
349
465
|
}
|
|
350
466
|
|
|
351
|
-
export class
|
|
467
|
+
export class ExecFacevrfServerResponse extends $tea.Model {
|
|
468
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
352
469
|
reqMsgId?: string;
|
|
470
|
+
// 结果码,一般OK表示调用成功
|
|
353
471
|
resultCode?: string;
|
|
472
|
+
// 异常信息的文本描述
|
|
354
473
|
resultMsg?: string;
|
|
355
474
|
// 认证ID
|
|
356
475
|
certifyId?: string;
|
|
@@ -358,6 +477,8 @@ export class ExecDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
358
477
|
passed?: string;
|
|
359
478
|
// 业务失败原因
|
|
360
479
|
reason?: string;
|
|
480
|
+
// 认证主体附件信息,包含共计类型等
|
|
481
|
+
materialInfo?: string;
|
|
361
482
|
static names(): { [key: string]: string } {
|
|
362
483
|
return {
|
|
363
484
|
reqMsgId: 'req_msg_id',
|
|
@@ -366,6 +487,7 @@ export class ExecDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
366
487
|
certifyId: 'certify_id',
|
|
367
488
|
passed: 'passed',
|
|
368
489
|
reason: 'reason',
|
|
490
|
+
materialInfo: 'material_info',
|
|
369
491
|
};
|
|
370
492
|
}
|
|
371
493
|
|
|
@@ -377,6 +499,7 @@ export class ExecDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
377
499
|
certifyId: 'string',
|
|
378
500
|
passed: 'string',
|
|
379
501
|
reason: 'string',
|
|
502
|
+
materialInfo: 'string',
|
|
380
503
|
};
|
|
381
504
|
}
|
|
382
505
|
|
|
@@ -385,17 +508,16 @@ export class ExecDiRealpersonFacevrfServerResponse extends $tea.Model {
|
|
|
385
508
|
}
|
|
386
509
|
}
|
|
387
510
|
|
|
388
|
-
export class
|
|
511
|
+
export class GetFacevrfEvidenceRequest extends $tea.Model {
|
|
512
|
+
// OAuth模式下的授权token
|
|
389
513
|
authToken?: string;
|
|
390
514
|
productInstanceId?: string;
|
|
391
|
-
regionName?: string;
|
|
392
515
|
// 某次刷脸的certifyId
|
|
393
|
-
certifyId
|
|
516
|
+
certifyId: string;
|
|
394
517
|
static names(): { [key: string]: string } {
|
|
395
518
|
return {
|
|
396
519
|
authToken: 'auth_token',
|
|
397
520
|
productInstanceId: 'product_instance_id',
|
|
398
|
-
regionName: 'region_name',
|
|
399
521
|
certifyId: 'certify_id',
|
|
400
522
|
};
|
|
401
523
|
}
|
|
@@ -404,7 +526,6 @@ export class GetDiRealpersonFacevrfEvidenceRequest extends $tea.Model {
|
|
|
404
526
|
return {
|
|
405
527
|
authToken: 'string',
|
|
406
528
|
productInstanceId: 'string',
|
|
407
|
-
regionName: 'string',
|
|
408
529
|
certifyId: 'string',
|
|
409
530
|
};
|
|
410
531
|
}
|
|
@@ -414,9 +535,12 @@ export class GetDiRealpersonFacevrfEvidenceRequest extends $tea.Model {
|
|
|
414
535
|
}
|
|
415
536
|
}
|
|
416
537
|
|
|
417
|
-
export class
|
|
538
|
+
export class GetFacevrfEvidenceResponse extends $tea.Model {
|
|
539
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
418
540
|
reqMsgId?: string;
|
|
541
|
+
// 结果码,一般OK表示调用成功
|
|
419
542
|
resultCode?: string;
|
|
543
|
+
// 异常信息的文本描述
|
|
420
544
|
resultMsg?: string;
|
|
421
545
|
// 刷脸的certifyId,原样返回
|
|
422
546
|
certifyId?: string;
|
|
@@ -424,10 +548,10 @@ export class GetDiRealpersonFacevrfEvidenceResponse extends $tea.Model {
|
|
|
424
548
|
onchainId?: string;
|
|
425
549
|
// 上链状态,`SUCCESS`表示成功、`INIT`表示正在上链
|
|
426
550
|
onchainStatus?: string;
|
|
427
|
-
// 存证pdf文件内容的base64
|
|
428
|
-
pdfContent?: string;
|
|
429
551
|
// pdf存证是否已经过期,不支持超过6个月的存证获取
|
|
430
552
|
pdfExpired?: boolean;
|
|
553
|
+
// 存证pdf文件内容的base64
|
|
554
|
+
pdfContent?: string;
|
|
431
555
|
static names(): { [key: string]: string } {
|
|
432
556
|
return {
|
|
433
557
|
reqMsgId: 'req_msg_id',
|
|
@@ -436,8 +560,8 @@ export class GetDiRealpersonFacevrfEvidenceResponse extends $tea.Model {
|
|
|
436
560
|
certifyId: 'certify_id',
|
|
437
561
|
onchainId: 'onchain_id',
|
|
438
562
|
onchainStatus: 'onchain_status',
|
|
439
|
-
pdfContent: 'pdf_content',
|
|
440
563
|
pdfExpired: 'pdf_expired',
|
|
564
|
+
pdfContent: 'pdf_content',
|
|
441
565
|
};
|
|
442
566
|
}
|
|
443
567
|
|
|
@@ -449,8 +573,8 @@ export class GetDiRealpersonFacevrfEvidenceResponse extends $tea.Model {
|
|
|
449
573
|
certifyId: 'string',
|
|
450
574
|
onchainId: 'string',
|
|
451
575
|
onchainStatus: 'string',
|
|
452
|
-
pdfContent: 'string',
|
|
453
576
|
pdfExpired: 'boolean',
|
|
577
|
+
pdfContent: 'string',
|
|
454
578
|
};
|
|
455
579
|
}
|
|
456
580
|
|
|
@@ -459,231 +583,1582 @@ export class GetDiRealpersonFacevrfEvidenceResponse extends $tea.Model {
|
|
|
459
583
|
}
|
|
460
584
|
}
|
|
461
585
|
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
throw $tea.newError({
|
|
487
|
-
code: "ParameterMissing",
|
|
488
|
-
message: "'config' can not be unset",
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
this._accessKeyId = config.accessKeyId;
|
|
493
|
-
this._accessKeySecret = config.accessKeySecret;
|
|
494
|
-
this._securityToken = config.securityToken;
|
|
495
|
-
this._endpoint = config.endpoint;
|
|
496
|
-
this._protocol = config.protocol;
|
|
497
|
-
this._userAgent = config.userAgent;
|
|
498
|
-
this._readTimeout = config.readTimeout;
|
|
499
|
-
this._connectTimeout = config.connectTimeout;
|
|
500
|
-
this._httpProxy = config.httpProxy;
|
|
501
|
-
this._httpsProxy = config.httpsProxy;
|
|
502
|
-
this._noProxy = config.noProxy;
|
|
503
|
-
this._socks5Proxy = config.socks5Proxy;
|
|
504
|
-
this._socks5NetWork = config.socks5NetWork;
|
|
505
|
-
this._maxIdleConns = config.maxIdleConns;
|
|
586
|
+
export class CheckIndividualidTwometaRequest extends $tea.Model {
|
|
587
|
+
// OAuth模式下的授权token
|
|
588
|
+
authToken?: string;
|
|
589
|
+
productInstanceId?: string;
|
|
590
|
+
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
591
|
+
outerOrderNo: string;
|
|
592
|
+
// 姓名
|
|
593
|
+
certName: string;
|
|
594
|
+
// 身份证号码
|
|
595
|
+
certNo: string;
|
|
596
|
+
// map结果的json数据格式,预留字段
|
|
597
|
+
externParam?: string;
|
|
598
|
+
// 认证子类型
|
|
599
|
+
scene?: string;
|
|
600
|
+
static names(): { [key: string]: string } {
|
|
601
|
+
return {
|
|
602
|
+
authToken: 'auth_token',
|
|
603
|
+
productInstanceId: 'product_instance_id',
|
|
604
|
+
outerOrderNo: 'outer_order_no',
|
|
605
|
+
certName: 'cert_name',
|
|
606
|
+
certNo: 'cert_no',
|
|
607
|
+
externParam: 'extern_param',
|
|
608
|
+
scene: 'scene',
|
|
609
|
+
};
|
|
506
610
|
}
|
|
507
611
|
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
async doRequest(version: string, action: string, protocol: string, method: string, pathname: string, request: {[key: string]: any}, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> {
|
|
519
|
-
let _runtime: { [key: string]: any } = {
|
|
520
|
-
timeouted: "retry",
|
|
521
|
-
readTimeout: Util.defaultNumber(runtime.readTimeout, this._readTimeout),
|
|
522
|
-
connectTimeout: Util.defaultNumber(runtime.connectTimeout, this._connectTimeout),
|
|
523
|
-
httpProxy: Util.defaultString(runtime.httpProxy, this._httpProxy),
|
|
524
|
-
httpsProxy: Util.defaultString(runtime.httpsProxy, this._httpsProxy),
|
|
525
|
-
noProxy: Util.defaultString(runtime.noProxy, this._noProxy),
|
|
526
|
-
maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
527
|
-
retry: {
|
|
528
|
-
retryable: runtime.autoretry,
|
|
529
|
-
maxAttempts: Util.defaultNumber(runtime.maxAttempts, 3),
|
|
530
|
-
},
|
|
531
|
-
backoff: {
|
|
532
|
-
policy: Util.defaultString(runtime.backoffPolicy, "no"),
|
|
533
|
-
period: Util.defaultNumber(runtime.backoffPeriod, 1),
|
|
534
|
-
},
|
|
535
|
-
ignoreSSL: runtime.ignoreSSL,
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
let _lastRequest = null;
|
|
539
|
-
let _now = Date.now();
|
|
540
|
-
let _retryTimes = 0;
|
|
541
|
-
while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) {
|
|
542
|
-
if (_retryTimes > 0) {
|
|
543
|
-
let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes);
|
|
544
|
-
if (_backoffTime > 0) {
|
|
545
|
-
await $tea.sleep(_backoffTime);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
_retryTimes = _retryTimes + 1;
|
|
550
|
-
try {
|
|
551
|
-
let request_ = new $tea.Request();
|
|
552
|
-
request_.protocol = Util.defaultString(this._protocol, protocol);
|
|
553
|
-
request_.method = method;
|
|
554
|
-
request_.pathname = pathname;
|
|
555
|
-
request_.query = {
|
|
556
|
-
method: action,
|
|
557
|
-
version: version,
|
|
558
|
-
sign_type: "HmacSHA1",
|
|
559
|
-
req_time: AlipayUtil.getTimestamp(),
|
|
560
|
-
req_msg_id: Util.getNonce(),
|
|
561
|
-
access_key: this._accessKeyId,
|
|
562
|
-
charset: "UTF-8",
|
|
563
|
-
baseSdkVersion: "Tea-SDK",
|
|
564
|
-
sdkVersion: "Tea-SDK-20201019",
|
|
565
|
-
};
|
|
566
|
-
if (!Util.empty(this._securityToken)) {
|
|
567
|
-
request_.query["security_token"] = this._securityToken;
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
request_.headers = {
|
|
571
|
-
host: this._endpoint,
|
|
572
|
-
'user-agent': this.getUserAgent(),
|
|
573
|
-
};
|
|
574
|
-
let tmp = Util.anyifyMapValue(RPCUtil.query(request));
|
|
575
|
-
request_.body = new $tea.BytesReadable(Util.toFormString(tmp));
|
|
576
|
-
request_.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
577
|
-
let signedParam = {
|
|
578
|
-
...request_.query,
|
|
579
|
-
...RPCUtil.query(request),
|
|
580
|
-
};
|
|
581
|
-
request_.query["sign"] = AlipayUtil.getSignature(signedParam, this._accessKeySecret);
|
|
582
|
-
_lastRequest = request_;
|
|
583
|
-
let response_ = await $tea.doAction(request_, _runtime);
|
|
584
|
-
|
|
585
|
-
let obj = await Util.readAsJSON(response_.body);
|
|
586
|
-
let res = Util.assertAsMap(obj);
|
|
587
|
-
let resp = Util.assertAsMap(res["response"]);
|
|
588
|
-
if (AlipayUtil.hasError(res)) {
|
|
589
|
-
throw $tea.newError({
|
|
590
|
-
message: resp["result_msg"],
|
|
591
|
-
data: resp,
|
|
592
|
-
code: resp["result_code"],
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
return resp;
|
|
597
|
-
} catch (ex) {
|
|
598
|
-
if ($tea.isRetryable(ex)) {
|
|
599
|
-
continue;
|
|
600
|
-
}
|
|
601
|
-
throw ex;
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
throw $tea.newUnretryableError(_lastRequest);
|
|
612
|
+
static types(): { [key: string]: any } {
|
|
613
|
+
return {
|
|
614
|
+
authToken: 'string',
|
|
615
|
+
productInstanceId: 'string',
|
|
616
|
+
outerOrderNo: 'string',
|
|
617
|
+
certName: 'string',
|
|
618
|
+
certNo: 'string',
|
|
619
|
+
externParam: 'string',
|
|
620
|
+
scene: 'string',
|
|
621
|
+
};
|
|
606
622
|
}
|
|
607
623
|
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
* @return user agent
|
|
611
|
-
*/
|
|
612
|
-
getUserAgent(): string {
|
|
613
|
-
let userAgent = "TeaClient/1.0.0";
|
|
614
|
-
return Util.getUserAgent(userAgent);
|
|
624
|
+
constructor(map?: { [key: string]: any }) {
|
|
625
|
+
super(map);
|
|
615
626
|
}
|
|
627
|
+
}
|
|
616
628
|
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
629
|
+
export class CheckIndividualidTwometaResponse extends $tea.Model {
|
|
630
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
631
|
+
reqMsgId?: string;
|
|
632
|
+
// 结果码,一般OK表示调用成功
|
|
633
|
+
resultCode?: string;
|
|
634
|
+
// 异常信息的文本描述
|
|
635
|
+
resultMsg?: string;
|
|
636
|
+
// true:匹配成功 false:匹配失败
|
|
637
|
+
match?: string;
|
|
638
|
+
// 扩展信息,预留字段
|
|
639
|
+
externInfo?: string;
|
|
640
|
+
static names(): { [key: string]: string } {
|
|
641
|
+
return {
|
|
642
|
+
reqMsgId: 'req_msg_id',
|
|
643
|
+
resultCode: 'result_code',
|
|
644
|
+
resultMsg: 'result_msg',
|
|
645
|
+
match: 'match',
|
|
646
|
+
externInfo: 'extern_info',
|
|
647
|
+
};
|
|
624
648
|
}
|
|
625
649
|
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
650
|
+
static types(): { [key: string]: any } {
|
|
651
|
+
return {
|
|
652
|
+
reqMsgId: 'string',
|
|
653
|
+
resultCode: 'string',
|
|
654
|
+
resultMsg: 'string',
|
|
655
|
+
match: 'string',
|
|
656
|
+
externInfo: 'string',
|
|
657
|
+
};
|
|
633
658
|
}
|
|
634
659
|
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
* Summary: 认证创建
|
|
638
|
-
*/
|
|
639
|
-
async createDiRealpersonFacevrfServer(request: CreateDiRealpersonFacevrfServerRequest): Promise<CreateDiRealpersonFacevrfServerResponse> {
|
|
640
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
641
|
-
return await this.createDiRealpersonFacevrfServerEx(request, runtime);
|
|
660
|
+
constructor(map?: { [key: string]: any }) {
|
|
661
|
+
super(map);
|
|
642
662
|
}
|
|
663
|
+
}
|
|
643
664
|
|
|
644
|
-
|
|
645
|
-
|
|
665
|
+
export class CheckIndividualidThreemetaRequest extends $tea.Model {
|
|
666
|
+
// OAuth模式下的授权token
|
|
667
|
+
authToken?: string;
|
|
668
|
+
productInstanceId?: string;
|
|
669
|
+
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
670
|
+
outerOrderNo: string;
|
|
671
|
+
// 姓名
|
|
672
|
+
certName: string;
|
|
673
|
+
// 身份证号码
|
|
674
|
+
certNo: string;
|
|
675
|
+
// 手机号码
|
|
676
|
+
mobile: string;
|
|
677
|
+
// map结果的json数据格式,预留字段
|
|
678
|
+
//
|
|
679
|
+
externParam?: string;
|
|
680
|
+
static names(): { [key: string]: string } {
|
|
681
|
+
return {
|
|
682
|
+
authToken: 'auth_token',
|
|
683
|
+
productInstanceId: 'product_instance_id',
|
|
684
|
+
outerOrderNo: 'outer_order_no',
|
|
685
|
+
certName: 'cert_name',
|
|
686
|
+
certNo: 'cert_no',
|
|
687
|
+
mobile: 'mobile',
|
|
688
|
+
externParam: 'extern_param',
|
|
689
|
+
};
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
static types(): { [key: string]: any } {
|
|
693
|
+
return {
|
|
694
|
+
authToken: 'string',
|
|
695
|
+
productInstanceId: 'string',
|
|
696
|
+
outerOrderNo: 'string',
|
|
697
|
+
certName: 'string',
|
|
698
|
+
certNo: 'string',
|
|
699
|
+
mobile: 'string',
|
|
700
|
+
externParam: 'string',
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
constructor(map?: { [key: string]: any }) {
|
|
705
|
+
super(map);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
export class CheckIndividualidThreemetaResponse extends $tea.Model {
|
|
710
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
711
|
+
reqMsgId?: string;
|
|
712
|
+
// 结果码,一般OK表示调用成功
|
|
713
|
+
resultCode?: string;
|
|
714
|
+
// 异常信息的文本描述
|
|
715
|
+
resultMsg?: string;
|
|
716
|
+
// true:匹配成功 false:匹配失败
|
|
717
|
+
match?: string;
|
|
718
|
+
// 扩展信息,预留字段
|
|
719
|
+
//
|
|
720
|
+
externInfo?: string;
|
|
721
|
+
static names(): { [key: string]: string } {
|
|
722
|
+
return {
|
|
723
|
+
reqMsgId: 'req_msg_id',
|
|
724
|
+
resultCode: 'result_code',
|
|
725
|
+
resultMsg: 'result_msg',
|
|
726
|
+
match: 'match',
|
|
727
|
+
externInfo: 'extern_info',
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
static types(): { [key: string]: any } {
|
|
732
|
+
return {
|
|
733
|
+
reqMsgId: 'string',
|
|
734
|
+
resultCode: 'string',
|
|
735
|
+
resultMsg: 'string',
|
|
736
|
+
match: 'string',
|
|
737
|
+
externInfo: 'string',
|
|
738
|
+
};
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
constructor(map?: { [key: string]: any }) {
|
|
742
|
+
super(map);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
export class CheckIndividualidFourmetaRequest extends $tea.Model {
|
|
747
|
+
// OAuth模式下的授权token
|
|
748
|
+
authToken?: string;
|
|
749
|
+
productInstanceId?: string;
|
|
750
|
+
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
751
|
+
outerOrderNo: string;
|
|
752
|
+
// 姓名
|
|
753
|
+
//
|
|
754
|
+
certName: string;
|
|
755
|
+
// 身份证号码
|
|
756
|
+
certNo: string;
|
|
757
|
+
// 手机号码
|
|
758
|
+
mobile: string;
|
|
759
|
+
// 银行卡号
|
|
760
|
+
bankCard: string;
|
|
761
|
+
// map结果的json数据格式,预留字段
|
|
762
|
+
//
|
|
763
|
+
externParam?: string;
|
|
764
|
+
static names(): { [key: string]: string } {
|
|
765
|
+
return {
|
|
766
|
+
authToken: 'auth_token',
|
|
767
|
+
productInstanceId: 'product_instance_id',
|
|
768
|
+
outerOrderNo: 'outer_order_no',
|
|
769
|
+
certName: 'cert_name',
|
|
770
|
+
certNo: 'cert_no',
|
|
771
|
+
mobile: 'mobile',
|
|
772
|
+
bankCard: 'bank_card',
|
|
773
|
+
externParam: 'extern_param',
|
|
774
|
+
};
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
static types(): { [key: string]: any } {
|
|
778
|
+
return {
|
|
779
|
+
authToken: 'string',
|
|
780
|
+
productInstanceId: 'string',
|
|
781
|
+
outerOrderNo: 'string',
|
|
782
|
+
certName: 'string',
|
|
783
|
+
certNo: 'string',
|
|
784
|
+
mobile: 'string',
|
|
785
|
+
bankCard: 'string',
|
|
786
|
+
externParam: 'string',
|
|
787
|
+
};
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
constructor(map?: { [key: string]: any }) {
|
|
791
|
+
super(map);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export class CheckIndividualidFourmetaResponse extends $tea.Model {
|
|
796
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
797
|
+
reqMsgId?: string;
|
|
798
|
+
// 结果码,一般OK表示调用成功
|
|
799
|
+
resultCode?: string;
|
|
800
|
+
// 异常信息的文本描述
|
|
801
|
+
resultMsg?: string;
|
|
802
|
+
// true:匹配成功 false:匹配失败
|
|
803
|
+
//
|
|
804
|
+
match?: string;
|
|
805
|
+
// 扩展信息,预留字段
|
|
806
|
+
//
|
|
807
|
+
externInfo?: string;
|
|
808
|
+
static names(): { [key: string]: string } {
|
|
809
|
+
return {
|
|
810
|
+
reqMsgId: 'req_msg_id',
|
|
811
|
+
resultCode: 'result_code',
|
|
812
|
+
resultMsg: 'result_msg',
|
|
813
|
+
match: 'match',
|
|
814
|
+
externInfo: 'extern_info',
|
|
815
|
+
};
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
static types(): { [key: string]: any } {
|
|
819
|
+
return {
|
|
820
|
+
reqMsgId: 'string',
|
|
821
|
+
resultCode: 'string',
|
|
822
|
+
resultMsg: 'string',
|
|
823
|
+
match: 'string',
|
|
824
|
+
externInfo: 'string',
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
constructor(map?: { [key: string]: any }) {
|
|
829
|
+
super(map);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
export class CheckRouteThreemetaRequest extends $tea.Model {
|
|
834
|
+
// OAuth模式下的授权token
|
|
835
|
+
authToken?: string;
|
|
836
|
+
productInstanceId?: string;
|
|
837
|
+
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
838
|
+
outerOrderNo: string;
|
|
839
|
+
// 姓名
|
|
840
|
+
certName: string;
|
|
841
|
+
// 身份证号
|
|
842
|
+
certNo: string;
|
|
843
|
+
// 手机号
|
|
844
|
+
mobile: string;
|
|
845
|
+
// 使用场景
|
|
846
|
+
scene: string;
|
|
847
|
+
// map结果的json数据格式,预留字段
|
|
848
|
+
externParam?: string;
|
|
849
|
+
static names(): { [key: string]: string } {
|
|
850
|
+
return {
|
|
851
|
+
authToken: 'auth_token',
|
|
852
|
+
productInstanceId: 'product_instance_id',
|
|
853
|
+
outerOrderNo: 'outer_order_no',
|
|
854
|
+
certName: 'cert_name',
|
|
855
|
+
certNo: 'cert_no',
|
|
856
|
+
mobile: 'mobile',
|
|
857
|
+
scene: 'scene',
|
|
858
|
+
externParam: 'extern_param',
|
|
859
|
+
};
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
static types(): { [key: string]: any } {
|
|
863
|
+
return {
|
|
864
|
+
authToken: 'string',
|
|
865
|
+
productInstanceId: 'string',
|
|
866
|
+
outerOrderNo: 'string',
|
|
867
|
+
certName: 'string',
|
|
868
|
+
certNo: 'string',
|
|
869
|
+
mobile: 'string',
|
|
870
|
+
scene: 'string',
|
|
871
|
+
externParam: 'string',
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
constructor(map?: { [key: string]: any }) {
|
|
876
|
+
super(map);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
export class CheckRouteThreemetaResponse extends $tea.Model {
|
|
881
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
882
|
+
reqMsgId?: string;
|
|
883
|
+
// 结果码,一般OK表示调用成功
|
|
884
|
+
resultCode?: string;
|
|
885
|
+
// 异常信息的文本描述
|
|
886
|
+
resultMsg?: string;
|
|
887
|
+
// true:匹配成功 false:匹配失败
|
|
888
|
+
match?: string;
|
|
889
|
+
// 扩展信息,预留字段
|
|
890
|
+
externInfo?: string;
|
|
891
|
+
static names(): { [key: string]: string } {
|
|
892
|
+
return {
|
|
893
|
+
reqMsgId: 'req_msg_id',
|
|
894
|
+
resultCode: 'result_code',
|
|
895
|
+
resultMsg: 'result_msg',
|
|
896
|
+
match: 'match',
|
|
897
|
+
externInfo: 'extern_info',
|
|
898
|
+
};
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
static types(): { [key: string]: any } {
|
|
902
|
+
return {
|
|
903
|
+
reqMsgId: 'string',
|
|
904
|
+
resultCode: 'string',
|
|
905
|
+
resultMsg: 'string',
|
|
906
|
+
match: 'string',
|
|
907
|
+
externInfo: 'string',
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
constructor(map?: { [key: string]: any }) {
|
|
912
|
+
super(map);
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
export class CreateVoiceprintServermodeRequest extends $tea.Model {
|
|
917
|
+
// OAuth模式下的授权token
|
|
918
|
+
authToken?: string;
|
|
919
|
+
productInstanceId?: string;
|
|
920
|
+
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
921
|
+
outerOrderNo: string;
|
|
922
|
+
// 商户自定义的用户ID
|
|
923
|
+
userId: string;
|
|
924
|
+
// 音频文件流
|
|
925
|
+
fileObject?: Readable;
|
|
926
|
+
fileObjectName?: string;
|
|
927
|
+
fileId?: string;
|
|
928
|
+
// 音频元数据
|
|
929
|
+
audioMeta: AudioMeta;
|
|
930
|
+
// 音频文件集合
|
|
931
|
+
audios: Audio[];
|
|
932
|
+
// 预留扩展参数
|
|
933
|
+
externParam?: string;
|
|
934
|
+
static names(): { [key: string]: string } {
|
|
935
|
+
return {
|
|
936
|
+
authToken: 'auth_token',
|
|
937
|
+
productInstanceId: 'product_instance_id',
|
|
938
|
+
outerOrderNo: 'outer_order_no',
|
|
939
|
+
userId: 'user_id',
|
|
940
|
+
fileObject: 'fileObject',
|
|
941
|
+
fileObjectName: 'fileObjectName',
|
|
942
|
+
fileId: 'file_id',
|
|
943
|
+
audioMeta: 'audio_meta',
|
|
944
|
+
audios: 'audios',
|
|
945
|
+
externParam: 'extern_param',
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
static types(): { [key: string]: any } {
|
|
950
|
+
return {
|
|
951
|
+
authToken: 'string',
|
|
952
|
+
productInstanceId: 'string',
|
|
953
|
+
outerOrderNo: 'string',
|
|
954
|
+
userId: 'string',
|
|
955
|
+
fileObject: 'Readable',
|
|
956
|
+
fileObjectName: 'string',
|
|
957
|
+
fileId: 'string',
|
|
958
|
+
audioMeta: AudioMeta,
|
|
959
|
+
audios: { 'type': 'array', 'itemType': Audio },
|
|
960
|
+
externParam: 'string',
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
constructor(map?: { [key: string]: any }) {
|
|
965
|
+
super(map);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
export class CreateVoiceprintServermodeResponse extends $tea.Model {
|
|
970
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
971
|
+
reqMsgId?: string;
|
|
972
|
+
// 结果码,一般OK表示调用成功
|
|
973
|
+
resultCode?: string;
|
|
974
|
+
// 异常信息的文本描述
|
|
975
|
+
resultMsg?: string;
|
|
976
|
+
// 扩展信息,预留字段
|
|
977
|
+
externInfo?: string;
|
|
978
|
+
// 产品结果明细,不影响决策
|
|
979
|
+
resultCodeSub?: string;
|
|
980
|
+
// result_code_sub对应的文案
|
|
981
|
+
resultMsgSub?: string;
|
|
982
|
+
static names(): { [key: string]: string } {
|
|
983
|
+
return {
|
|
984
|
+
reqMsgId: 'req_msg_id',
|
|
985
|
+
resultCode: 'result_code',
|
|
986
|
+
resultMsg: 'result_msg',
|
|
987
|
+
externInfo: 'extern_info',
|
|
988
|
+
resultCodeSub: 'result_code_sub',
|
|
989
|
+
resultMsgSub: 'result_msg_sub',
|
|
990
|
+
};
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
static types(): { [key: string]: any } {
|
|
994
|
+
return {
|
|
995
|
+
reqMsgId: 'string',
|
|
996
|
+
resultCode: 'string',
|
|
997
|
+
resultMsg: 'string',
|
|
998
|
+
externInfo: 'string',
|
|
999
|
+
resultCodeSub: 'string',
|
|
1000
|
+
resultMsgSub: 'string',
|
|
1001
|
+
};
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
constructor(map?: { [key: string]: any }) {
|
|
1005
|
+
super(map);
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
export class VerifyVoiceprintServermodeRequest extends $tea.Model {
|
|
1010
|
+
// OAuth模式下的授权token
|
|
1011
|
+
authToken?: string;
|
|
1012
|
+
productInstanceId?: string;
|
|
1013
|
+
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
1014
|
+
outerOrderNo: string;
|
|
1015
|
+
// 商户自定义的用户ID
|
|
1016
|
+
userId: string;
|
|
1017
|
+
// 音频文件,base64编码格式
|
|
1018
|
+
//
|
|
1019
|
+
audioAuth?: string;
|
|
1020
|
+
// 音频文件OSS地址
|
|
1021
|
+
audioUrl?: string;
|
|
1022
|
+
// 音频元数据
|
|
1023
|
+
audioMeta: AudioMeta;
|
|
1024
|
+
// 预留扩展参数
|
|
1025
|
+
externParam?: string;
|
|
1026
|
+
static names(): { [key: string]: string } {
|
|
1027
|
+
return {
|
|
1028
|
+
authToken: 'auth_token',
|
|
1029
|
+
productInstanceId: 'product_instance_id',
|
|
1030
|
+
outerOrderNo: 'outer_order_no',
|
|
1031
|
+
userId: 'user_id',
|
|
1032
|
+
audioAuth: 'audio_auth',
|
|
1033
|
+
audioUrl: 'audio_url',
|
|
1034
|
+
audioMeta: 'audio_meta',
|
|
1035
|
+
externParam: 'extern_param',
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
static types(): { [key: string]: any } {
|
|
1040
|
+
return {
|
|
1041
|
+
authToken: 'string',
|
|
1042
|
+
productInstanceId: 'string',
|
|
1043
|
+
outerOrderNo: 'string',
|
|
1044
|
+
userId: 'string',
|
|
1045
|
+
audioAuth: 'string',
|
|
1046
|
+
audioUrl: 'string',
|
|
1047
|
+
audioMeta: AudioMeta,
|
|
1048
|
+
externParam: 'string',
|
|
1049
|
+
};
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
constructor(map?: { [key: string]: any }) {
|
|
1053
|
+
super(map);
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
export class VerifyVoiceprintServermodeResponse extends $tea.Model {
|
|
1058
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
1059
|
+
reqMsgId?: string;
|
|
1060
|
+
// 结果码,一般OK表示调用成功
|
|
1061
|
+
resultCode?: string;
|
|
1062
|
+
// 异常信息的文本描述
|
|
1063
|
+
resultMsg?: string;
|
|
1064
|
+
// 声纹认证唯一ID
|
|
1065
|
+
certifyId?: string;
|
|
1066
|
+
// 扩展信息,预留字段
|
|
1067
|
+
externInfo?: string;
|
|
1068
|
+
// 产品结果明细,不影响决策
|
|
1069
|
+
resultCodeSub?: string;
|
|
1070
|
+
// result_code_sub对应的文案
|
|
1071
|
+
resultMsgSub?: string;
|
|
1072
|
+
static names(): { [key: string]: string } {
|
|
1073
|
+
return {
|
|
1074
|
+
reqMsgId: 'req_msg_id',
|
|
1075
|
+
resultCode: 'result_code',
|
|
1076
|
+
resultMsg: 'result_msg',
|
|
1077
|
+
certifyId: 'certify_id',
|
|
1078
|
+
externInfo: 'extern_info',
|
|
1079
|
+
resultCodeSub: 'result_code_sub',
|
|
1080
|
+
resultMsgSub: 'result_msg_sub',
|
|
1081
|
+
};
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
static types(): { [key: string]: any } {
|
|
1085
|
+
return {
|
|
1086
|
+
reqMsgId: 'string',
|
|
1087
|
+
resultCode: 'string',
|
|
1088
|
+
resultMsg: 'string',
|
|
1089
|
+
certifyId: 'string',
|
|
1090
|
+
externInfo: 'string',
|
|
1091
|
+
resultCodeSub: 'string',
|
|
1092
|
+
resultMsgSub: 'string',
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
constructor(map?: { [key: string]: any }) {
|
|
1097
|
+
super(map);
|
|
1098
|
+
}
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export class CheckRouteTwometaRequest extends $tea.Model {
|
|
1102
|
+
// OAuth模式下的授权token
|
|
1103
|
+
authToken?: string;
|
|
1104
|
+
productInstanceId?: string;
|
|
1105
|
+
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
1106
|
+
outerOrderNo: string;
|
|
1107
|
+
// 姓名
|
|
1108
|
+
certName: string;
|
|
1109
|
+
// 身份证号
|
|
1110
|
+
certNo: string;
|
|
1111
|
+
// 使用场景
|
|
1112
|
+
scene: string;
|
|
1113
|
+
// map结果的json数据格式,预留字段
|
|
1114
|
+
//
|
|
1115
|
+
externParam?: string;
|
|
1116
|
+
static names(): { [key: string]: string } {
|
|
1117
|
+
return {
|
|
1118
|
+
authToken: 'auth_token',
|
|
1119
|
+
productInstanceId: 'product_instance_id',
|
|
1120
|
+
outerOrderNo: 'outer_order_no',
|
|
1121
|
+
certName: 'cert_name',
|
|
1122
|
+
certNo: 'cert_no',
|
|
1123
|
+
scene: 'scene',
|
|
1124
|
+
externParam: 'extern_param',
|
|
1125
|
+
};
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
static types(): { [key: string]: any } {
|
|
1129
|
+
return {
|
|
1130
|
+
authToken: 'string',
|
|
1131
|
+
productInstanceId: 'string',
|
|
1132
|
+
outerOrderNo: 'string',
|
|
1133
|
+
certName: 'string',
|
|
1134
|
+
certNo: 'string',
|
|
1135
|
+
scene: 'string',
|
|
1136
|
+
externParam: 'string',
|
|
1137
|
+
};
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
constructor(map?: { [key: string]: any }) {
|
|
1141
|
+
super(map);
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
export class CheckRouteTwometaResponse extends $tea.Model {
|
|
1146
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
1147
|
+
reqMsgId?: string;
|
|
1148
|
+
// 结果码,一般OK表示调用成功
|
|
1149
|
+
resultCode?: string;
|
|
1150
|
+
// 异常信息的文本描述
|
|
1151
|
+
resultMsg?: string;
|
|
1152
|
+
// true:匹配成功 false:匹配失败
|
|
1153
|
+
//
|
|
1154
|
+
match?: string;
|
|
1155
|
+
// 扩展信息,预留字段
|
|
1156
|
+
//
|
|
1157
|
+
externInfo?: string;
|
|
1158
|
+
static names(): { [key: string]: string } {
|
|
1159
|
+
return {
|
|
1160
|
+
reqMsgId: 'req_msg_id',
|
|
1161
|
+
resultCode: 'result_code',
|
|
1162
|
+
resultMsg: 'result_msg',
|
|
1163
|
+
match: 'match',
|
|
1164
|
+
externInfo: 'extern_info',
|
|
1165
|
+
};
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
static types(): { [key: string]: any } {
|
|
1169
|
+
return {
|
|
1170
|
+
reqMsgId: 'string',
|
|
1171
|
+
resultCode: 'string',
|
|
1172
|
+
resultMsg: 'string',
|
|
1173
|
+
match: 'string',
|
|
1174
|
+
externInfo: 'string',
|
|
1175
|
+
};
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
constructor(map?: { [key: string]: any }) {
|
|
1179
|
+
super(map);
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
export class QueryMobileRiskRequest extends $tea.Model {
|
|
1184
|
+
// OAuth模式下的授权token
|
|
1185
|
+
authToken?: string;
|
|
1186
|
+
productInstanceId?: string;
|
|
1187
|
+
// 外部唯一标识。用于定位。 值为32位长度的字母数字组合前面几位字符是商户自定义的简称,中间可以使用一段时间,后段可以使用一个随机或递增序列
|
|
1188
|
+
outerOrderNo: string;
|
|
1189
|
+
// 设备身份临时标识
|
|
1190
|
+
apdidToken: string;
|
|
1191
|
+
// 接口使用场景,不同场景下接口返回字段集合会有差异,可缺省
|
|
1192
|
+
scene?: string;
|
|
1193
|
+
static names(): { [key: string]: string } {
|
|
1194
|
+
return {
|
|
1195
|
+
authToken: 'auth_token',
|
|
1196
|
+
productInstanceId: 'product_instance_id',
|
|
1197
|
+
outerOrderNo: 'outer_order_no',
|
|
1198
|
+
apdidToken: 'apdid_token',
|
|
1199
|
+
scene: 'scene',
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
|
|
1203
|
+
static types(): { [key: string]: any } {
|
|
1204
|
+
return {
|
|
1205
|
+
authToken: 'string',
|
|
1206
|
+
productInstanceId: 'string',
|
|
1207
|
+
outerOrderNo: 'string',
|
|
1208
|
+
apdidToken: 'string',
|
|
1209
|
+
scene: 'string',
|
|
1210
|
+
};
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
constructor(map?: { [key: string]: any }) {
|
|
1214
|
+
super(map);
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
export class QueryMobileRiskResponse extends $tea.Model {
|
|
1219
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
1220
|
+
reqMsgId?: string;
|
|
1221
|
+
// 结果码,一般OK表示调用成功
|
|
1222
|
+
resultCode?: string;
|
|
1223
|
+
// 异常信息的文本描述
|
|
1224
|
+
resultMsg?: string;
|
|
1225
|
+
// 设备相关数据,默认只返回apdid,由Map<String,String>序列化
|
|
1226
|
+
deviceInfo?: string;
|
|
1227
|
+
// 设备风险标签,由Map<String,String>序列化
|
|
1228
|
+
riskInfo?: string;
|
|
1229
|
+
static names(): { [key: string]: string } {
|
|
1230
|
+
return {
|
|
1231
|
+
reqMsgId: 'req_msg_id',
|
|
1232
|
+
resultCode: 'result_code',
|
|
1233
|
+
resultMsg: 'result_msg',
|
|
1234
|
+
deviceInfo: 'device_info',
|
|
1235
|
+
riskInfo: 'risk_info',
|
|
1236
|
+
};
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
static types(): { [key: string]: any } {
|
|
1240
|
+
return {
|
|
1241
|
+
reqMsgId: 'string',
|
|
1242
|
+
resultCode: 'string',
|
|
1243
|
+
resultMsg: 'string',
|
|
1244
|
+
deviceInfo: 'string',
|
|
1245
|
+
riskInfo: 'string',
|
|
1246
|
+
};
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
constructor(map?: { [key: string]: any }) {
|
|
1250
|
+
super(map);
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
export class DetailFacevrfServerRequest extends $tea.Model {
|
|
1255
|
+
// OAuth模式下的授权token
|
|
1256
|
+
authToken?: string;
|
|
1257
|
+
productInstanceId?: string;
|
|
1258
|
+
// 实人认证唯一标识
|
|
1259
|
+
certifyId: string;
|
|
1260
|
+
// 预留扩展业务参数
|
|
1261
|
+
externParam?: string;
|
|
1262
|
+
static names(): { [key: string]: string } {
|
|
1263
|
+
return {
|
|
1264
|
+
authToken: 'auth_token',
|
|
1265
|
+
productInstanceId: 'product_instance_id',
|
|
1266
|
+
certifyId: 'certify_id',
|
|
1267
|
+
externParam: 'extern_param',
|
|
1268
|
+
};
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
static types(): { [key: string]: any } {
|
|
1272
|
+
return {
|
|
1273
|
+
authToken: 'string',
|
|
1274
|
+
productInstanceId: 'string',
|
|
1275
|
+
certifyId: 'string',
|
|
1276
|
+
externParam: 'string',
|
|
1277
|
+
};
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
constructor(map?: { [key: string]: any }) {
|
|
1281
|
+
super(map);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
export class DetailFacevrfServerResponse extends $tea.Model {
|
|
1286
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
1287
|
+
reqMsgId?: string;
|
|
1288
|
+
// 结果码,一般OK表示调用成功
|
|
1289
|
+
resultCode?: string;
|
|
1290
|
+
// 异常信息的文本描述
|
|
1291
|
+
resultMsg?: string;
|
|
1292
|
+
// PASS:认证通过
|
|
1293
|
+
// FAIL:认证不通过
|
|
1294
|
+
// NO_RECODE:无认证记录
|
|
1295
|
+
// PROCESSING:认证中
|
|
1296
|
+
state?: string;
|
|
1297
|
+
// 认证人信息,包括姓名和身份证号,不加密
|
|
1298
|
+
// state为PASS/FAIL/PROCESSING时为JSON字符串,为NO_RECORD时为空
|
|
1299
|
+
identityInfo?: string;
|
|
1300
|
+
// 预留扩展结果
|
|
1301
|
+
externInfo?: string;
|
|
1302
|
+
static names(): { [key: string]: string } {
|
|
1303
|
+
return {
|
|
1304
|
+
reqMsgId: 'req_msg_id',
|
|
1305
|
+
resultCode: 'result_code',
|
|
1306
|
+
resultMsg: 'result_msg',
|
|
1307
|
+
state: 'state',
|
|
1308
|
+
identityInfo: 'identity_info',
|
|
1309
|
+
externInfo: 'extern_info',
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
static types(): { [key: string]: any } {
|
|
1314
|
+
return {
|
|
1315
|
+
reqMsgId: 'string',
|
|
1316
|
+
resultCode: 'string',
|
|
1317
|
+
resultMsg: 'string',
|
|
1318
|
+
state: 'string',
|
|
1319
|
+
identityInfo: 'string',
|
|
1320
|
+
externInfo: 'string',
|
|
1321
|
+
};
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
constructor(map?: { [key: string]: any }) {
|
|
1325
|
+
super(map);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
export class CheckAnticheatPersonalRequest extends $tea.Model {
|
|
1330
|
+
// OAuth模式下的授权token
|
|
1331
|
+
authToken?: string;
|
|
1332
|
+
productInstanceId?: string;
|
|
1333
|
+
// 外部请求id
|
|
1334
|
+
outerOrderNo: string;
|
|
1335
|
+
// 主体姓名
|
|
1336
|
+
certName?: string;
|
|
1337
|
+
// 主体身份证号
|
|
1338
|
+
certNo: string;
|
|
1339
|
+
// 受雇企业
|
|
1340
|
+
companyName: string;
|
|
1341
|
+
// 组织机构代码
|
|
1342
|
+
companyNo?: string;
|
|
1343
|
+
// 扩展字段,json格式
|
|
1344
|
+
externParam?: string;
|
|
1345
|
+
static names(): { [key: string]: string } {
|
|
1346
|
+
return {
|
|
1347
|
+
authToken: 'auth_token',
|
|
1348
|
+
productInstanceId: 'product_instance_id',
|
|
1349
|
+
outerOrderNo: 'outer_order_no',
|
|
1350
|
+
certName: 'cert_name',
|
|
1351
|
+
certNo: 'cert_no',
|
|
1352
|
+
companyName: 'company_name',
|
|
1353
|
+
companyNo: 'company_no',
|
|
1354
|
+
externParam: 'extern_param',
|
|
1355
|
+
};
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
static types(): { [key: string]: any } {
|
|
1359
|
+
return {
|
|
1360
|
+
authToken: 'string',
|
|
1361
|
+
productInstanceId: 'string',
|
|
1362
|
+
outerOrderNo: 'string',
|
|
1363
|
+
certName: 'string',
|
|
1364
|
+
certNo: 'string',
|
|
1365
|
+
companyName: 'string',
|
|
1366
|
+
companyNo: 'string',
|
|
1367
|
+
externParam: 'string',
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
constructor(map?: { [key: string]: any }) {
|
|
1372
|
+
super(map);
|
|
1373
|
+
}
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
export class CheckAnticheatPersonalResponse extends $tea.Model {
|
|
1377
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
1378
|
+
reqMsgId?: string;
|
|
1379
|
+
// 结果码,一般OK表示调用成功
|
|
1380
|
+
resultCode?: string;
|
|
1381
|
+
// 异常信息的文本描述
|
|
1382
|
+
resultMsg?: string;
|
|
1383
|
+
// 风险等级
|
|
1384
|
+
riskLevel?: string;
|
|
1385
|
+
// 风险等级文字描述
|
|
1386
|
+
riskLevelDesc?: string;
|
|
1387
|
+
// 扩展信息
|
|
1388
|
+
externInfo?: string;
|
|
1389
|
+
static names(): { [key: string]: string } {
|
|
1390
|
+
return {
|
|
1391
|
+
reqMsgId: 'req_msg_id',
|
|
1392
|
+
resultCode: 'result_code',
|
|
1393
|
+
resultMsg: 'result_msg',
|
|
1394
|
+
riskLevel: 'risk_level',
|
|
1395
|
+
riskLevelDesc: 'risk_level_desc',
|
|
1396
|
+
externInfo: 'extern_info',
|
|
1397
|
+
};
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
static types(): { [key: string]: any } {
|
|
1401
|
+
return {
|
|
1402
|
+
reqMsgId: 'string',
|
|
1403
|
+
resultCode: 'string',
|
|
1404
|
+
resultMsg: 'string',
|
|
1405
|
+
riskLevel: 'string',
|
|
1406
|
+
riskLevelDesc: 'string',
|
|
1407
|
+
externInfo: 'string',
|
|
1408
|
+
};
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
constructor(map?: { [key: string]: any }) {
|
|
1412
|
+
super(map);
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
export class CheckTwometaHashRequest extends $tea.Model {
|
|
1417
|
+
// OAuth模式下的授权token
|
|
1418
|
+
authToken?: string;
|
|
1419
|
+
productInstanceId?: string;
|
|
1420
|
+
// hash后的身份证号,不区分大小写,使用的hash算法参考hash_type字段
|
|
1421
|
+
certNoHash: string;
|
|
1422
|
+
// hash后的姓名,不区分大小写,使用的hash类型参考hash_type
|
|
1423
|
+
certNameHash: string;
|
|
1424
|
+
// 本次核验id
|
|
1425
|
+
outerOrderId: string;
|
|
1426
|
+
// 支持的hash类型
|
|
1427
|
+
hashType: string;
|
|
1428
|
+
// json格式的扩展字段
|
|
1429
|
+
externInfo?: string;
|
|
1430
|
+
static names(): { [key: string]: string } {
|
|
1431
|
+
return {
|
|
1432
|
+
authToken: 'auth_token',
|
|
1433
|
+
productInstanceId: 'product_instance_id',
|
|
1434
|
+
certNoHash: 'cert_no_hash',
|
|
1435
|
+
certNameHash: 'cert_name_hash',
|
|
1436
|
+
outerOrderId: 'outer_order_id',
|
|
1437
|
+
hashType: 'hash_type',
|
|
1438
|
+
externInfo: 'extern_info',
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
static types(): { [key: string]: any } {
|
|
1443
|
+
return {
|
|
1444
|
+
authToken: 'string',
|
|
1445
|
+
productInstanceId: 'string',
|
|
1446
|
+
certNoHash: 'string',
|
|
1447
|
+
certNameHash: 'string',
|
|
1448
|
+
outerOrderId: 'string',
|
|
1449
|
+
hashType: 'string',
|
|
1450
|
+
externInfo: 'string',
|
|
1451
|
+
};
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
constructor(map?: { [key: string]: any }) {
|
|
1455
|
+
super(map);
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
export class CheckTwometaHashResponse extends $tea.Model {
|
|
1460
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
1461
|
+
reqMsgId?: string;
|
|
1462
|
+
// 结果码,一般OK表示调用成功
|
|
1463
|
+
resultCode?: string;
|
|
1464
|
+
// 异常信息的文本描述
|
|
1465
|
+
resultMsg?: string;
|
|
1466
|
+
static names(): { [key: string]: string } {
|
|
1467
|
+
return {
|
|
1468
|
+
reqMsgId: 'req_msg_id',
|
|
1469
|
+
resultCode: 'result_code',
|
|
1470
|
+
resultMsg: 'result_msg',
|
|
1471
|
+
};
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1474
|
+
static types(): { [key: string]: any } {
|
|
1475
|
+
return {
|
|
1476
|
+
reqMsgId: 'string',
|
|
1477
|
+
resultCode: 'string',
|
|
1478
|
+
resultMsg: 'string',
|
|
1479
|
+
};
|
|
1480
|
+
}
|
|
1481
|
+
|
|
1482
|
+
constructor(map?: { [key: string]: any }) {
|
|
1483
|
+
super(map);
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
export class QueryThreemetaOnlinetimeRequest extends $tea.Model {
|
|
1488
|
+
// OAuth模式下的授权token
|
|
1489
|
+
authToken?: string;
|
|
1490
|
+
productInstanceId?: string;
|
|
1491
|
+
// 外部请求id
|
|
1492
|
+
outerOrderNo: string;
|
|
1493
|
+
// 姓名
|
|
1494
|
+
certName: string;
|
|
1495
|
+
// 身份证号
|
|
1496
|
+
certNo: string;
|
|
1497
|
+
// 手机号码
|
|
1498
|
+
phoneNo: string;
|
|
1499
|
+
// 扩展参数
|
|
1500
|
+
externParam?: string;
|
|
1501
|
+
static names(): { [key: string]: string } {
|
|
1502
|
+
return {
|
|
1503
|
+
authToken: 'auth_token',
|
|
1504
|
+
productInstanceId: 'product_instance_id',
|
|
1505
|
+
outerOrderNo: 'outer_order_no',
|
|
1506
|
+
certName: 'cert_name',
|
|
1507
|
+
certNo: 'cert_no',
|
|
1508
|
+
phoneNo: 'phone_no',
|
|
1509
|
+
externParam: 'extern_param',
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
static types(): { [key: string]: any } {
|
|
1514
|
+
return {
|
|
1515
|
+
authToken: 'string',
|
|
1516
|
+
productInstanceId: 'string',
|
|
1517
|
+
outerOrderNo: 'string',
|
|
1518
|
+
certName: 'string',
|
|
1519
|
+
certNo: 'string',
|
|
1520
|
+
phoneNo: 'string',
|
|
1521
|
+
externParam: 'string',
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
constructor(map?: { [key: string]: any }) {
|
|
1526
|
+
super(map);
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
export class QueryThreemetaOnlinetimeResponse extends $tea.Model {
|
|
1531
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
1532
|
+
reqMsgId?: string;
|
|
1533
|
+
// 结果码,一般OK表示调用成功
|
|
1534
|
+
resultCode?: string;
|
|
1535
|
+
// 异常信息的文本描述
|
|
1536
|
+
resultMsg?: string;
|
|
1537
|
+
// 在网时长标准码,规则:
|
|
1538
|
+
// 1: [0,3)表示在⽹时⻓是 0~3 个⽉
|
|
1539
|
+
// 2: [3,6)表示在⽹时⻓是 3~6 个⽉
|
|
1540
|
+
// 3: [6,12)表示在⽹时⻓是 6~12 个⽉
|
|
1541
|
+
// 4: [12,24)表示在⽹时⻓是 12~24 ⽉
|
|
1542
|
+
// 5: [24,+)表示在⽹时⻓是 24个⽉及以上
|
|
1543
|
+
lengthCode?: string;
|
|
1544
|
+
// 扩展信息,json格式
|
|
1545
|
+
externInfo?: string;
|
|
1546
|
+
static names(): { [key: string]: string } {
|
|
1547
|
+
return {
|
|
1548
|
+
reqMsgId: 'req_msg_id',
|
|
1549
|
+
resultCode: 'result_code',
|
|
1550
|
+
resultMsg: 'result_msg',
|
|
1551
|
+
lengthCode: 'length_code',
|
|
1552
|
+
externInfo: 'extern_info',
|
|
1553
|
+
};
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
static types(): { [key: string]: any } {
|
|
1557
|
+
return {
|
|
1558
|
+
reqMsgId: 'string',
|
|
1559
|
+
resultCode: 'string',
|
|
1560
|
+
resultMsg: 'string',
|
|
1561
|
+
lengthCode: 'string',
|
|
1562
|
+
externInfo: 'string',
|
|
1563
|
+
};
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
constructor(map?: { [key: string]: any }) {
|
|
1567
|
+
super(map);
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
export class CreateAntcloudGatewayxFileUploadRequest extends $tea.Model {
|
|
1572
|
+
// OAuth模式下的授权token
|
|
1573
|
+
authToken?: string;
|
|
1574
|
+
// 上传文件作用的openapi method
|
|
1575
|
+
apiCode: string;
|
|
1576
|
+
// 文件标签,多个标签;分割
|
|
1577
|
+
fileLabel?: string;
|
|
1578
|
+
// 自定义的文件元数据
|
|
1579
|
+
fileMetadata?: string;
|
|
1580
|
+
// 文件名,不传则随机生成文件名
|
|
1581
|
+
fileName?: string;
|
|
1582
|
+
// 文件的多媒体类型
|
|
1583
|
+
mimeType?: string;
|
|
1584
|
+
// 产品方的api归属集群,即productInstanceId
|
|
1585
|
+
apiCluster?: string;
|
|
1586
|
+
static names(): { [key: string]: string } {
|
|
1587
|
+
return {
|
|
1588
|
+
authToken: 'auth_token',
|
|
1589
|
+
apiCode: 'api_code',
|
|
1590
|
+
fileLabel: 'file_label',
|
|
1591
|
+
fileMetadata: 'file_metadata',
|
|
1592
|
+
fileName: 'file_name',
|
|
1593
|
+
mimeType: 'mime_type',
|
|
1594
|
+
apiCluster: 'api_cluster',
|
|
1595
|
+
};
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
static types(): { [key: string]: any } {
|
|
1599
|
+
return {
|
|
1600
|
+
authToken: 'string',
|
|
1601
|
+
apiCode: 'string',
|
|
1602
|
+
fileLabel: 'string',
|
|
1603
|
+
fileMetadata: 'string',
|
|
1604
|
+
fileName: 'string',
|
|
1605
|
+
mimeType: 'string',
|
|
1606
|
+
apiCluster: 'string',
|
|
1607
|
+
};
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
constructor(map?: { [key: string]: any }) {
|
|
1611
|
+
super(map);
|
|
1612
|
+
}
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
export class CreateAntcloudGatewayxFileUploadResponse extends $tea.Model {
|
|
1616
|
+
// 请求唯一ID,用于链路跟踪和问题排查
|
|
1617
|
+
reqMsgId?: string;
|
|
1618
|
+
// 结果码,一般OK表示调用成功
|
|
1619
|
+
resultCode?: string;
|
|
1620
|
+
// 异常信息的文本描述
|
|
1621
|
+
resultMsg?: string;
|
|
1622
|
+
// 上传有效期
|
|
1623
|
+
expiredTime?: string;
|
|
1624
|
+
// 32位文件唯一id
|
|
1625
|
+
fileId?: string;
|
|
1626
|
+
// 放入http请求头里
|
|
1627
|
+
uploadHeaders?: XNameValuePair[];
|
|
1628
|
+
// 文件上传地址
|
|
1629
|
+
uploadUrl?: string;
|
|
1630
|
+
static names(): { [key: string]: string } {
|
|
1631
|
+
return {
|
|
1632
|
+
reqMsgId: 'req_msg_id',
|
|
1633
|
+
resultCode: 'result_code',
|
|
1634
|
+
resultMsg: 'result_msg',
|
|
1635
|
+
expiredTime: 'expired_time',
|
|
1636
|
+
fileId: 'file_id',
|
|
1637
|
+
uploadHeaders: 'upload_headers',
|
|
1638
|
+
uploadUrl: 'upload_url',
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
static types(): { [key: string]: any } {
|
|
1643
|
+
return {
|
|
1644
|
+
reqMsgId: 'string',
|
|
1645
|
+
resultCode: 'string',
|
|
1646
|
+
resultMsg: 'string',
|
|
1647
|
+
expiredTime: 'string',
|
|
1648
|
+
fileId: 'string',
|
|
1649
|
+
uploadHeaders: { 'type': 'array', 'itemType': XNameValuePair },
|
|
1650
|
+
uploadUrl: 'string',
|
|
1651
|
+
};
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1654
|
+
constructor(map?: { [key: string]: any }) {
|
|
1655
|
+
super(map);
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
|
|
1660
|
+
export default class Client {
|
|
1661
|
+
_endpoint: string;
|
|
1662
|
+
_regionId: string;
|
|
1663
|
+
_accessKeyId: string;
|
|
1664
|
+
_accessKeySecret: string;
|
|
1665
|
+
_protocol: string;
|
|
1666
|
+
_userAgent: string;
|
|
1667
|
+
_readTimeout: number;
|
|
1668
|
+
_connectTimeout: number;
|
|
1669
|
+
_httpProxy: string;
|
|
1670
|
+
_httpsProxy: string;
|
|
1671
|
+
_socks5Proxy: string;
|
|
1672
|
+
_socks5NetWork: string;
|
|
1673
|
+
_noProxy: string;
|
|
1674
|
+
_maxIdleConns: number;
|
|
1675
|
+
_securityToken: string;
|
|
1676
|
+
_maxIdleTimeMillis: number;
|
|
1677
|
+
_keepAliveDurationMillis: number;
|
|
1678
|
+
_maxRequests: number;
|
|
1679
|
+
_maxRequestsPerHost: number;
|
|
1680
|
+
|
|
1681
|
+
/**
|
|
1682
|
+
* Init client with Config
|
|
1683
|
+
* @param config config contains the necessary information to create a client
|
|
1684
|
+
*/
|
|
1685
|
+
constructor(config: Config) {
|
|
1686
|
+
if (Util.isUnset($tea.toMap(config))) {
|
|
1687
|
+
throw $tea.newError({
|
|
1688
|
+
code: "ParameterMissing",
|
|
1689
|
+
message: "'config' can not be unset",
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
this._accessKeyId = config.accessKeyId;
|
|
1694
|
+
this._accessKeySecret = config.accessKeySecret;
|
|
1695
|
+
this._securityToken = config.securityToken;
|
|
1696
|
+
this._endpoint = config.endpoint;
|
|
1697
|
+
this._protocol = config.protocol;
|
|
1698
|
+
this._userAgent = config.userAgent;
|
|
1699
|
+
this._readTimeout = Util.defaultNumber(config.readTimeout, 20000);
|
|
1700
|
+
this._connectTimeout = Util.defaultNumber(config.connectTimeout, 20000);
|
|
1701
|
+
this._httpProxy = config.httpProxy;
|
|
1702
|
+
this._httpsProxy = config.httpsProxy;
|
|
1703
|
+
this._noProxy = config.noProxy;
|
|
1704
|
+
this._socks5Proxy = config.socks5Proxy;
|
|
1705
|
+
this._socks5NetWork = config.socks5NetWork;
|
|
1706
|
+
this._maxIdleConns = Util.defaultNumber(config.maxIdleConns, 60000);
|
|
1707
|
+
this._maxIdleTimeMillis = Util.defaultNumber(config.maxIdleTimeMillis, 5);
|
|
1708
|
+
this._keepAliveDurationMillis = Util.defaultNumber(config.keepAliveDurationMillis, 5000);
|
|
1709
|
+
this._maxRequests = Util.defaultNumber(config.maxRequests, 100);
|
|
1710
|
+
this._maxRequestsPerHost = Util.defaultNumber(config.maxRequestsPerHost, 100);
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Encapsulate the request and invoke the network
|
|
1715
|
+
* @param action api name
|
|
1716
|
+
* @param protocol http or https
|
|
1717
|
+
* @param method e.g. GET
|
|
1718
|
+
* @param pathname pathname of every api
|
|
1719
|
+
* @param request which contains request params
|
|
1720
|
+
* @param runtime which controls some details of call api, such as retry times
|
|
1721
|
+
* @return the response
|
|
1722
|
+
*/
|
|
1723
|
+
async doRequest(version: string, action: string, protocol: string, method: string, pathname: string, request: {[key: string]: any}, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<{[key: string]: any}> {
|
|
1724
|
+
let _runtime: { [key: string]: any } = {
|
|
1725
|
+
timeouted: "retry",
|
|
1726
|
+
readTimeout: Util.defaultNumber(runtime.readTimeout, this._readTimeout),
|
|
1727
|
+
connectTimeout: Util.defaultNumber(runtime.connectTimeout, this._connectTimeout),
|
|
1728
|
+
httpProxy: Util.defaultString(runtime.httpProxy, this._httpProxy),
|
|
1729
|
+
httpsProxy: Util.defaultString(runtime.httpsProxy, this._httpsProxy),
|
|
1730
|
+
noProxy: Util.defaultString(runtime.noProxy, this._noProxy),
|
|
1731
|
+
maxIdleConns: Util.defaultNumber(runtime.maxIdleConns, this._maxIdleConns),
|
|
1732
|
+
maxIdleTimeMillis: this._maxIdleTimeMillis,
|
|
1733
|
+
keepAliveDurationMillis: this._keepAliveDurationMillis,
|
|
1734
|
+
maxRequests: this._maxRequests,
|
|
1735
|
+
maxRequestsPerHost: this._maxRequestsPerHost,
|
|
1736
|
+
retry: {
|
|
1737
|
+
retryable: runtime.autoretry,
|
|
1738
|
+
maxAttempts: Util.defaultNumber(runtime.maxAttempts, 3),
|
|
1739
|
+
},
|
|
1740
|
+
backoff: {
|
|
1741
|
+
policy: Util.defaultString(runtime.backoffPolicy, "no"),
|
|
1742
|
+
period: Util.defaultNumber(runtime.backoffPeriod, 1),
|
|
1743
|
+
},
|
|
1744
|
+
ignoreSSL: runtime.ignoreSSL,
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
let _lastRequest = null;
|
|
1748
|
+
let _now = Date.now();
|
|
1749
|
+
let _retryTimes = 0;
|
|
1750
|
+
while ($tea.allowRetry(_runtime['retry'], _retryTimes, _now)) {
|
|
1751
|
+
if (_retryTimes > 0) {
|
|
1752
|
+
let _backoffTime = $tea.getBackoffTime(_runtime['backoff'], _retryTimes);
|
|
1753
|
+
if (_backoffTime > 0) {
|
|
1754
|
+
await $tea.sleep(_backoffTime);
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
_retryTimes = _retryTimes + 1;
|
|
1759
|
+
try {
|
|
1760
|
+
let request_ = new $tea.Request();
|
|
1761
|
+
request_.protocol = Util.defaultString(this._protocol, protocol);
|
|
1762
|
+
request_.method = method;
|
|
1763
|
+
request_.pathname = pathname;
|
|
1764
|
+
request_.query = {
|
|
1765
|
+
method: action,
|
|
1766
|
+
version: version,
|
|
1767
|
+
sign_type: "HmacSHA1",
|
|
1768
|
+
req_time: AntchainUtil.getTimestamp(),
|
|
1769
|
+
req_msg_id: AntchainUtil.getNonce(),
|
|
1770
|
+
access_key: this._accessKeyId,
|
|
1771
|
+
base_sdk_version: "TeaSDK-2.0",
|
|
1772
|
+
sdk_version: "1.8.0",
|
|
1773
|
+
_prod_code: "REALPERSON",
|
|
1774
|
+
_prod_channel: "undefined",
|
|
1775
|
+
};
|
|
1776
|
+
if (!Util.empty(this._securityToken)) {
|
|
1777
|
+
request_.query["security_token"] = this._securityToken;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
request_.headers = {
|
|
1781
|
+
host: Util.defaultString(this._endpoint, "openapi.antchain.antgroup.com"),
|
|
1782
|
+
'user-agent': Util.getUserAgent(this._userAgent),
|
|
1783
|
+
...headers,
|
|
1784
|
+
};
|
|
1785
|
+
let tmp = Util.anyifyMapValue(RPCUtil.query(request));
|
|
1786
|
+
request_.body = new $tea.BytesReadable(Util.toFormString(tmp));
|
|
1787
|
+
request_.headers["content-type"] = "application/x-www-form-urlencoded";
|
|
1788
|
+
let signedParam = {
|
|
1789
|
+
...request_.query,
|
|
1790
|
+
...RPCUtil.query(request),
|
|
1791
|
+
};
|
|
1792
|
+
request_.query["sign"] = AntchainUtil.getSignature(signedParam, this._accessKeySecret);
|
|
1793
|
+
_lastRequest = request_;
|
|
1794
|
+
let response_ = await $tea.doAction(request_, _runtime);
|
|
1795
|
+
|
|
1796
|
+
let raw = await Util.readAsString(response_.body);
|
|
1797
|
+
let obj = Util.parseJSON(raw);
|
|
1798
|
+
let res = Util.assertAsMap(obj);
|
|
1799
|
+
let resp = Util.assertAsMap(res["response"]);
|
|
1800
|
+
if (AntchainUtil.hasError(raw, this._accessKeySecret)) {
|
|
1801
|
+
throw $tea.newError({
|
|
1802
|
+
message: resp["result_msg"],
|
|
1803
|
+
data: resp,
|
|
1804
|
+
code: resp["result_code"],
|
|
1805
|
+
});
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
return resp;
|
|
1809
|
+
} catch (ex) {
|
|
1810
|
+
if ($tea.isRetryable(ex)) {
|
|
1811
|
+
continue;
|
|
1812
|
+
}
|
|
1813
|
+
throw ex;
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
throw $tea.newUnretryableError(_lastRequest);
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
/**
|
|
1821
|
+
* Description: 查询认证的结果和相关信息
|
|
1822
|
+
* Summary: 认证查询
|
|
1823
|
+
*/
|
|
1824
|
+
async queryFacevrfServer(request: QueryFacevrfServerRequest): Promise<QueryFacevrfServerResponse> {
|
|
1825
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1826
|
+
let headers : {[key: string ]: string} = { };
|
|
1827
|
+
return await this.queryFacevrfServerEx(request, headers, runtime);
|
|
1828
|
+
}
|
|
1829
|
+
|
|
1830
|
+
/**
|
|
1831
|
+
* Description: 查询认证的结果和相关信息
|
|
1832
|
+
* Summary: 认证查询
|
|
1833
|
+
*/
|
|
1834
|
+
async queryFacevrfServerEx(request: QueryFacevrfServerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryFacevrfServerResponse> {
|
|
1835
|
+
Util.validateModel(request);
|
|
1836
|
+
return $tea.cast<QueryFacevrfServerResponse>(await this.doRequest("1.0", "di.realperson.facevrf.server.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryFacevrfServerResponse({}));
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/**
|
|
1840
|
+
* Description: 服务端认证创建,传入认证信息,获取认证ID(和url)
|
|
1841
|
+
* Summary: 认证创建
|
|
1842
|
+
*/
|
|
1843
|
+
async createFacevrfServer(request: CreateFacevrfServerRequest): Promise<CreateFacevrfServerResponse> {
|
|
1844
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1845
|
+
let headers : {[key: string ]: string} = { };
|
|
1846
|
+
return await this.createFacevrfServerEx(request, headers, runtime);
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* Description: 服务端认证创建,传入认证信息,获取认证ID(和url)
|
|
646
1851
|
* Summary: 认证创建
|
|
647
1852
|
*/
|
|
648
|
-
async
|
|
1853
|
+
async createFacevrfServerEx(request: CreateFacevrfServerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateFacevrfServerResponse> {
|
|
649
1854
|
Util.validateModel(request);
|
|
650
|
-
return $tea.cast<
|
|
1855
|
+
return $tea.cast<CreateFacevrfServerResponse>(await this.doRequest("1.0", "di.realperson.facevrf.server.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateFacevrfServerResponse({}));
|
|
651
1856
|
}
|
|
652
1857
|
|
|
653
1858
|
/**
|
|
654
1859
|
* Description: 纯服务端比对,直接输入待比对的图片,返回比对结果
|
|
655
1860
|
* Summary: 纯服务端比对
|
|
656
1861
|
*/
|
|
657
|
-
async
|
|
1862
|
+
async execFacevrfServer(request: ExecFacevrfServerRequest): Promise<ExecFacevrfServerResponse> {
|
|
658
1863
|
let runtime = new $Util.RuntimeOptions({ });
|
|
659
|
-
|
|
1864
|
+
let headers : {[key: string ]: string} = { };
|
|
1865
|
+
return await this.execFacevrfServerEx(request, headers, runtime);
|
|
660
1866
|
}
|
|
661
1867
|
|
|
662
1868
|
/**
|
|
663
1869
|
* Description: 纯服务端比对,直接输入待比对的图片,返回比对结果
|
|
664
1870
|
* Summary: 纯服务端比对
|
|
665
1871
|
*/
|
|
666
|
-
async
|
|
1872
|
+
async execFacevrfServerEx(request: ExecFacevrfServerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ExecFacevrfServerResponse> {
|
|
667
1873
|
Util.validateModel(request);
|
|
668
|
-
return $tea.cast<
|
|
1874
|
+
return $tea.cast<ExecFacevrfServerResponse>(await this.doRequest("1.0", "di.realperson.facevrf.server.exec", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new ExecFacevrfServerResponse({}));
|
|
669
1875
|
}
|
|
670
1876
|
|
|
671
1877
|
/**
|
|
672
1878
|
* Description: 传入某次刷脸的certifyID,获得刷脸存证的pdf文件和司法脸统一证据ID,这两份数据可以在司法链的控制台中进行核验存证是否被记录在区块链上从而证实其真实可信。
|
|
673
1879
|
* Summary: 商户获取司法链上刷脸存证和统一证据ID
|
|
674
1880
|
*/
|
|
675
|
-
async
|
|
1881
|
+
async getFacevrfEvidence(request: GetFacevrfEvidenceRequest): Promise<GetFacevrfEvidenceResponse> {
|
|
676
1882
|
let runtime = new $Util.RuntimeOptions({ });
|
|
677
|
-
|
|
1883
|
+
let headers : {[key: string ]: string} = { };
|
|
1884
|
+
return await this.getFacevrfEvidenceEx(request, headers, runtime);
|
|
678
1885
|
}
|
|
679
1886
|
|
|
680
1887
|
/**
|
|
681
1888
|
* Description: 传入某次刷脸的certifyID,获得刷脸存证的pdf文件和司法脸统一证据ID,这两份数据可以在司法链的控制台中进行核验存证是否被记录在区块链上从而证实其真实可信。
|
|
682
1889
|
* Summary: 商户获取司法链上刷脸存证和统一证据ID
|
|
683
1890
|
*/
|
|
684
|
-
async
|
|
1891
|
+
async getFacevrfEvidenceEx(request: GetFacevrfEvidenceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetFacevrfEvidenceResponse> {
|
|
1892
|
+
Util.validateModel(request);
|
|
1893
|
+
return $tea.cast<GetFacevrfEvidenceResponse>(await this.doRequest("1.0", "di.realperson.facevrf.evidence.get", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new GetFacevrfEvidenceResponse({}));
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
/**
|
|
1897
|
+
* Description: 个人二要素认证
|
|
1898
|
+
* Summary: 个人二要素认证
|
|
1899
|
+
*/
|
|
1900
|
+
async checkIndividualidTwometa(request: CheckIndividualidTwometaRequest): Promise<CheckIndividualidTwometaResponse> {
|
|
1901
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1902
|
+
let headers : {[key: string ]: string} = { };
|
|
1903
|
+
return await this.checkIndividualidTwometaEx(request, headers, runtime);
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* Description: 个人二要素认证
|
|
1908
|
+
* Summary: 个人二要素认证
|
|
1909
|
+
*/
|
|
1910
|
+
async checkIndividualidTwometaEx(request: CheckIndividualidTwometaRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckIndividualidTwometaResponse> {
|
|
1911
|
+
Util.validateModel(request);
|
|
1912
|
+
return $tea.cast<CheckIndividualidTwometaResponse>(await this.doRequest("1.0", "di.realperson.individualid.twometa.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidTwometaResponse({}));
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* Description: 个人三要素认证
|
|
1917
|
+
* Summary: 个人三要素认证
|
|
1918
|
+
*/
|
|
1919
|
+
async checkIndividualidThreemeta(request: CheckIndividualidThreemetaRequest): Promise<CheckIndividualidThreemetaResponse> {
|
|
1920
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1921
|
+
let headers : {[key: string ]: string} = { };
|
|
1922
|
+
return await this.checkIndividualidThreemetaEx(request, headers, runtime);
|
|
1923
|
+
}
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* Description: 个人三要素认证
|
|
1927
|
+
* Summary: 个人三要素认证
|
|
1928
|
+
*/
|
|
1929
|
+
async checkIndividualidThreemetaEx(request: CheckIndividualidThreemetaRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckIndividualidThreemetaResponse> {
|
|
1930
|
+
Util.validateModel(request);
|
|
1931
|
+
return $tea.cast<CheckIndividualidThreemetaResponse>(await this.doRequest("1.0", "di.realperson.individualid.threemeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidThreemetaResponse({}));
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/**
|
|
1935
|
+
* Description: 个人四要素认证
|
|
1936
|
+
* Summary: 个人四要素认证
|
|
1937
|
+
*/
|
|
1938
|
+
async checkIndividualidFourmeta(request: CheckIndividualidFourmetaRequest): Promise<CheckIndividualidFourmetaResponse> {
|
|
1939
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1940
|
+
let headers : {[key: string ]: string} = { };
|
|
1941
|
+
return await this.checkIndividualidFourmetaEx(request, headers, runtime);
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
/**
|
|
1945
|
+
* Description: 个人四要素认证
|
|
1946
|
+
* Summary: 个人四要素认证
|
|
1947
|
+
*/
|
|
1948
|
+
async checkIndividualidFourmetaEx(request: CheckIndividualidFourmetaRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckIndividualidFourmetaResponse> {
|
|
1949
|
+
Util.validateModel(request);
|
|
1950
|
+
return $tea.cast<CheckIndividualidFourmetaResponse>(await this.doRequest("1.0", "di.realperson.individualid.fourmeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckIndividualidFourmetaResponse({}));
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
/**
|
|
1954
|
+
* Description: 个人三要素认证(场景路由)
|
|
1955
|
+
* Summary: 个人三要素认证(场景路由)
|
|
1956
|
+
*/
|
|
1957
|
+
async checkRouteThreemeta(request: CheckRouteThreemetaRequest): Promise<CheckRouteThreemetaResponse> {
|
|
1958
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1959
|
+
let headers : {[key: string ]: string} = { };
|
|
1960
|
+
return await this.checkRouteThreemetaEx(request, headers, runtime);
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
* Description: 个人三要素认证(场景路由)
|
|
1965
|
+
* Summary: 个人三要素认证(场景路由)
|
|
1966
|
+
*/
|
|
1967
|
+
async checkRouteThreemetaEx(request: CheckRouteThreemetaRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckRouteThreemetaResponse> {
|
|
1968
|
+
Util.validateModel(request);
|
|
1969
|
+
return $tea.cast<CheckRouteThreemetaResponse>(await this.doRequest("1.0", "di.realperson.route.threemeta.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckRouteThreemetaResponse({}));
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Description: 纯服务端声纹注册
|
|
1974
|
+
* Summary: 纯服务端声纹注册
|
|
1975
|
+
*/
|
|
1976
|
+
async createVoiceprintServermode(request: CreateVoiceprintServermodeRequest): Promise<CreateVoiceprintServermodeResponse> {
|
|
1977
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
1978
|
+
let headers : {[key: string ]: string} = { };
|
|
1979
|
+
return await this.createVoiceprintServermodeEx(request, headers, runtime);
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
/**
|
|
1983
|
+
* Description: 纯服务端声纹注册
|
|
1984
|
+
* Summary: 纯服务端声纹注册
|
|
1985
|
+
*/
|
|
1986
|
+
async createVoiceprintServermodeEx(request: CreateVoiceprintServermodeRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateVoiceprintServermodeResponse> {
|
|
1987
|
+
if (!Util.isUnset(request.fileObject)) {
|
|
1988
|
+
let uploadReq = new CreateAntcloudGatewayxFileUploadRequest({
|
|
1989
|
+
authToken: request.authToken,
|
|
1990
|
+
apiCode: "di.realperson.voiceprint.servermode.create",
|
|
1991
|
+
fileName: request.fileObjectName,
|
|
1992
|
+
});
|
|
1993
|
+
let uploadResp = await this.createAntcloudGatewayxFileUploadEx(uploadReq, headers, runtime);
|
|
1994
|
+
if (!AntchainUtil.isSuccess(uploadResp.resultCode, "ok")) {
|
|
1995
|
+
let createVoiceprintServermodeResponse = new CreateVoiceprintServermodeResponse({
|
|
1996
|
+
reqMsgId: uploadResp.reqMsgId,
|
|
1997
|
+
resultCode: uploadResp.resultCode,
|
|
1998
|
+
resultMsg: uploadResp.resultMsg,
|
|
1999
|
+
});
|
|
2000
|
+
return createVoiceprintServermodeResponse;
|
|
2001
|
+
}
|
|
2002
|
+
|
|
2003
|
+
let uploadHeaders = AntchainUtil.parseUploadHeaders(uploadResp.uploadHeaders);
|
|
2004
|
+
await AntchainUtil.putObject(request.fileObject, uploadHeaders, uploadResp.uploadUrl);
|
|
2005
|
+
request.fileId = uploadResp.fileId;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
Util.validateModel(request);
|
|
2009
|
+
return $tea.cast<CreateVoiceprintServermodeResponse>(await this.doRequest("1.0", "di.realperson.voiceprint.servermode.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateVoiceprintServermodeResponse({}));
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* Description: 纯服务端声纹比对
|
|
2014
|
+
* Summary: 纯服务端声纹比对
|
|
2015
|
+
*/
|
|
2016
|
+
async verifyVoiceprintServermode(request: VerifyVoiceprintServermodeRequest): Promise<VerifyVoiceprintServermodeResponse> {
|
|
2017
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2018
|
+
let headers : {[key: string ]: string} = { };
|
|
2019
|
+
return await this.verifyVoiceprintServermodeEx(request, headers, runtime);
|
|
2020
|
+
}
|
|
2021
|
+
|
|
2022
|
+
/**
|
|
2023
|
+
* Description: 纯服务端声纹比对
|
|
2024
|
+
* Summary: 纯服务端声纹比对
|
|
2025
|
+
*/
|
|
2026
|
+
async verifyVoiceprintServermodeEx(request: VerifyVoiceprintServermodeRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<VerifyVoiceprintServermodeResponse> {
|
|
2027
|
+
Util.validateModel(request);
|
|
2028
|
+
return $tea.cast<VerifyVoiceprintServermodeResponse>(await this.doRequest("1.0", "di.realperson.voiceprint.servermode.verify", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new VerifyVoiceprintServermodeResponse({}));
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
/**
|
|
2032
|
+
* Description: 个人二要素认证(场景路由)
|
|
2033
|
+
* Summary: 个人二要素认证(场景路由)
|
|
2034
|
+
*/
|
|
2035
|
+
async checkRouteTwometa(request: CheckRouteTwometaRequest): Promise<CheckRouteTwometaResponse> {
|
|
2036
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2037
|
+
let headers : {[key: string ]: string} = { };
|
|
2038
|
+
return await this.checkRouteTwometaEx(request, headers, runtime);
|
|
2039
|
+
}
|
|
2040
|
+
|
|
2041
|
+
/**
|
|
2042
|
+
* Description: 个人二要素认证(场景路由)
|
|
2043
|
+
* Summary: 个人二要素认证(场景路由)
|
|
2044
|
+
*/
|
|
2045
|
+
async checkRouteTwometaEx(request: CheckRouteTwometaRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckRouteTwometaResponse> {
|
|
2046
|
+
Util.validateModel(request);
|
|
2047
|
+
return $tea.cast<CheckRouteTwometaResponse>(await this.doRequest("1.0", "di.realperson.route.twometa.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckRouteTwometaResponse({}));
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
/**
|
|
2051
|
+
* Description: 通过移动设备身份临时标识查询该设备相关的设备风险信息的服务
|
|
2052
|
+
* Summary: 移动风险设备查询
|
|
2053
|
+
*/
|
|
2054
|
+
async queryMobileRisk(request: QueryMobileRiskRequest): Promise<QueryMobileRiskResponse> {
|
|
2055
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2056
|
+
let headers : {[key: string ]: string} = { };
|
|
2057
|
+
return await this.queryMobileRiskEx(request, headers, runtime);
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
/**
|
|
2061
|
+
* Description: 通过移动设备身份临时标识查询该设备相关的设备风险信息的服务
|
|
2062
|
+
* Summary: 移动风险设备查询
|
|
2063
|
+
*/
|
|
2064
|
+
async queryMobileRiskEx(request: QueryMobileRiskRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryMobileRiskResponse> {
|
|
2065
|
+
Util.validateModel(request);
|
|
2066
|
+
return $tea.cast<QueryMobileRiskResponse>(await this.doRequest("1.0", "di.realperson.mobile.risk.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryMobileRiskResponse({}));
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
/**
|
|
2070
|
+
* Description: 通过认证ID查询认证人、认证时间等相关信息,供智科内部使用
|
|
2071
|
+
* Summary: 查询认证人、认证时间等相关信息
|
|
2072
|
+
*/
|
|
2073
|
+
async detailFacevrfServer(request: DetailFacevrfServerRequest): Promise<DetailFacevrfServerResponse> {
|
|
2074
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2075
|
+
let headers : {[key: string ]: string} = { };
|
|
2076
|
+
return await this.detailFacevrfServerEx(request, headers, runtime);
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2079
|
+
/**
|
|
2080
|
+
* Description: 通过认证ID查询认证人、认证时间等相关信息,供智科内部使用
|
|
2081
|
+
* Summary: 查询认证人、认证时间等相关信息
|
|
2082
|
+
*/
|
|
2083
|
+
async detailFacevrfServerEx(request: DetailFacevrfServerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DetailFacevrfServerResponse> {
|
|
2084
|
+
Util.validateModel(request);
|
|
2085
|
+
return $tea.cast<DetailFacevrfServerResponse>(await this.doRequest("1.0", "di.realperson.facevrf.server.detail", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new DetailFacevrfServerResponse({}));
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* Description: 临工场景等场景下,通过主体的社保缴纳情况进行的反欺诈校验
|
|
2090
|
+
* Summary: 个人反欺诈风险校验
|
|
2091
|
+
*/
|
|
2092
|
+
async checkAnticheatPersonal(request: CheckAnticheatPersonalRequest): Promise<CheckAnticheatPersonalResponse> {
|
|
2093
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2094
|
+
let headers : {[key: string ]: string} = { };
|
|
2095
|
+
return await this.checkAnticheatPersonalEx(request, headers, runtime);
|
|
2096
|
+
}
|
|
2097
|
+
|
|
2098
|
+
/**
|
|
2099
|
+
* Description: 临工场景等场景下,通过主体的社保缴纳情况进行的反欺诈校验
|
|
2100
|
+
* Summary: 个人反欺诈风险校验
|
|
2101
|
+
*/
|
|
2102
|
+
async checkAnticheatPersonalEx(request: CheckAnticheatPersonalRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckAnticheatPersonalResponse> {
|
|
2103
|
+
Util.validateModel(request);
|
|
2104
|
+
return $tea.cast<CheckAnticheatPersonalResponse>(await this.doRequest("1.0", "di.realperson.anticheat.personal.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckAnticheatPersonalResponse({}));
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* Description: 二要素支持hash主体信息
|
|
2109
|
+
* Summary: 个人二要素核验支持hash的主体信息
|
|
2110
|
+
*/
|
|
2111
|
+
async checkTwometaHash(request: CheckTwometaHashRequest): Promise<CheckTwometaHashResponse> {
|
|
2112
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2113
|
+
let headers : {[key: string ]: string} = { };
|
|
2114
|
+
return await this.checkTwometaHashEx(request, headers, runtime);
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* Description: 二要素支持hash主体信息
|
|
2119
|
+
* Summary: 个人二要素核验支持hash的主体信息
|
|
2120
|
+
*/
|
|
2121
|
+
async checkTwometaHashEx(request: CheckTwometaHashRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckTwometaHashResponse> {
|
|
2122
|
+
Util.validateModel(request);
|
|
2123
|
+
return $tea.cast<CheckTwometaHashResponse>(await this.doRequest("1.0", "di.realperson.twometa.hash.check", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CheckTwometaHashResponse({}));
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* Description: 对接运营商等数据源查询手机号码的在网时长
|
|
2128
|
+
* Summary: 三要素在网时长查询接口
|
|
2129
|
+
*/
|
|
2130
|
+
async queryThreemetaOnlinetime(request: QueryThreemetaOnlinetimeRequest): Promise<QueryThreemetaOnlinetimeResponse> {
|
|
2131
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2132
|
+
let headers : {[key: string ]: string} = { };
|
|
2133
|
+
return await this.queryThreemetaOnlinetimeEx(request, headers, runtime);
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* Description: 对接运营商等数据源查询手机号码的在网时长
|
|
2138
|
+
* Summary: 三要素在网时长查询接口
|
|
2139
|
+
*/
|
|
2140
|
+
async queryThreemetaOnlinetimeEx(request: QueryThreemetaOnlinetimeRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<QueryThreemetaOnlinetimeResponse> {
|
|
2141
|
+
Util.validateModel(request);
|
|
2142
|
+
return $tea.cast<QueryThreemetaOnlinetimeResponse>(await this.doRequest("1.0", "di.realperson.threemeta.onlinetime.query", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new QueryThreemetaOnlinetimeResponse({}));
|
|
2143
|
+
}
|
|
2144
|
+
|
|
2145
|
+
/**
|
|
2146
|
+
* Description: 创建HTTP PUT提交的文件上传
|
|
2147
|
+
* Summary: 文件上传创建
|
|
2148
|
+
*/
|
|
2149
|
+
async createAntcloudGatewayxFileUpload(request: CreateAntcloudGatewayxFileUploadRequest): Promise<CreateAntcloudGatewayxFileUploadResponse> {
|
|
2150
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2151
|
+
let headers : {[key: string ]: string} = { };
|
|
2152
|
+
return await this.createAntcloudGatewayxFileUploadEx(request, headers, runtime);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
/**
|
|
2156
|
+
* Description: 创建HTTP PUT提交的文件上传
|
|
2157
|
+
* Summary: 文件上传创建
|
|
2158
|
+
*/
|
|
2159
|
+
async createAntcloudGatewayxFileUploadEx(request: CreateAntcloudGatewayxFileUploadRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateAntcloudGatewayxFileUploadResponse> {
|
|
685
2160
|
Util.validateModel(request);
|
|
686
|
-
return $tea.cast<
|
|
2161
|
+
return $tea.cast<CreateAntcloudGatewayxFileUploadResponse>(await this.doRequest("1.0", "antcloud.gatewayx.file.upload.create", "HTTPS", "POST", `/gateway.do`, $tea.toMap(request), headers, runtime), new CreateAntcloudGatewayxFileUploadResponse({}));
|
|
687
2162
|
}
|
|
688
2163
|
|
|
689
2164
|
}
|