@alicloud/cloudauth20190307 2.0.7 → 2.1.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 +188 -0
- package/dist/client.js +373 -0
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +463 -0
package/src/client.ts
CHANGED
|
@@ -1129,14 +1129,94 @@ export class DetectFaceAttributesResponse extends $tea.Model {
|
|
|
1129
1129
|
}
|
|
1130
1130
|
}
|
|
1131
1131
|
|
|
1132
|
+
export class Id2MetaVerifyRequest extends $tea.Model {
|
|
1133
|
+
identifyNum?: string;
|
|
1134
|
+
paramType?: string;
|
|
1135
|
+
userName?: string;
|
|
1136
|
+
static names(): { [key: string]: string } {
|
|
1137
|
+
return {
|
|
1138
|
+
identifyNum: 'IdentifyNum',
|
|
1139
|
+
paramType: 'ParamType',
|
|
1140
|
+
userName: 'UserName',
|
|
1141
|
+
};
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
static types(): { [key: string]: any } {
|
|
1145
|
+
return {
|
|
1146
|
+
identifyNum: 'string',
|
|
1147
|
+
paramType: 'string',
|
|
1148
|
+
userName: 'string',
|
|
1149
|
+
};
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
constructor(map?: { [key: string]: any }) {
|
|
1153
|
+
super(map);
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
export class Id2MetaVerifyResponseBody extends $tea.Model {
|
|
1158
|
+
code?: string;
|
|
1159
|
+
message?: string;
|
|
1160
|
+
requestId?: string;
|
|
1161
|
+
resultObject?: Id2MetaVerifyResponseBodyResultObject;
|
|
1162
|
+
static names(): { [key: string]: string } {
|
|
1163
|
+
return {
|
|
1164
|
+
code: 'Code',
|
|
1165
|
+
message: 'Message',
|
|
1166
|
+
requestId: 'RequestId',
|
|
1167
|
+
resultObject: 'ResultObject',
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
static types(): { [key: string]: any } {
|
|
1172
|
+
return {
|
|
1173
|
+
code: 'string',
|
|
1174
|
+
message: 'string',
|
|
1175
|
+
requestId: 'string',
|
|
1176
|
+
resultObject: Id2MetaVerifyResponseBodyResultObject,
|
|
1177
|
+
};
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
constructor(map?: { [key: string]: any }) {
|
|
1181
|
+
super(map);
|
|
1182
|
+
}
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
export class Id2MetaVerifyResponse extends $tea.Model {
|
|
1186
|
+
headers: { [key: string]: string };
|
|
1187
|
+
statusCode: number;
|
|
1188
|
+
body: Id2MetaVerifyResponseBody;
|
|
1189
|
+
static names(): { [key: string]: string } {
|
|
1190
|
+
return {
|
|
1191
|
+
headers: 'headers',
|
|
1192
|
+
statusCode: 'statusCode',
|
|
1193
|
+
body: 'body',
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
static types(): { [key: string]: any } {
|
|
1198
|
+
return {
|
|
1199
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1200
|
+
statusCode: 'number',
|
|
1201
|
+
body: Id2MetaVerifyResponseBody,
|
|
1202
|
+
};
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
constructor(map?: { [key: string]: any }) {
|
|
1206
|
+
super(map);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1132
1210
|
export class InitFaceVerifyRequest extends $tea.Model {
|
|
1133
1211
|
authId?: string;
|
|
1212
|
+
birthday?: string;
|
|
1134
1213
|
callbackToken?: string;
|
|
1135
1214
|
callbackUrl?: string;
|
|
1136
1215
|
certName?: string;
|
|
1137
1216
|
certNo?: string;
|
|
1138
1217
|
certType?: string;
|
|
1139
1218
|
certifyId?: string;
|
|
1219
|
+
certifyUrlStyle?: string;
|
|
1140
1220
|
certifyUrlType?: string;
|
|
1141
1221
|
crop?: string;
|
|
1142
1222
|
encryptType?: string;
|
|
@@ -1145,26 +1225,31 @@ export class InitFaceVerifyRequest extends $tea.Model {
|
|
|
1145
1225
|
ip?: string;
|
|
1146
1226
|
metaInfo?: string;
|
|
1147
1227
|
mobile?: string;
|
|
1228
|
+
mode?: string;
|
|
1148
1229
|
model?: string;
|
|
1149
1230
|
ossBucketName?: string;
|
|
1150
1231
|
ossObjectName?: string;
|
|
1151
1232
|
outerOrderNo?: string;
|
|
1152
1233
|
procedurePriority?: string;
|
|
1153
1234
|
productCode?: string;
|
|
1235
|
+
readImg?: string;
|
|
1154
1236
|
returnUrl?: string;
|
|
1155
1237
|
sceneId?: number;
|
|
1156
1238
|
suitableType?: string;
|
|
1157
1239
|
userId?: string;
|
|
1240
|
+
validityDate?: string;
|
|
1158
1241
|
voluntaryCustomizedContent?: string;
|
|
1159
1242
|
static names(): { [key: string]: string } {
|
|
1160
1243
|
return {
|
|
1161
1244
|
authId: 'AuthId',
|
|
1245
|
+
birthday: 'Birthday',
|
|
1162
1246
|
callbackToken: 'CallbackToken',
|
|
1163
1247
|
callbackUrl: 'CallbackUrl',
|
|
1164
1248
|
certName: 'CertName',
|
|
1165
1249
|
certNo: 'CertNo',
|
|
1166
1250
|
certType: 'CertType',
|
|
1167
1251
|
certifyId: 'CertifyId',
|
|
1252
|
+
certifyUrlStyle: 'CertifyUrlStyle',
|
|
1168
1253
|
certifyUrlType: 'CertifyUrlType',
|
|
1169
1254
|
crop: 'Crop',
|
|
1170
1255
|
encryptType: 'EncryptType',
|
|
@@ -1173,16 +1258,19 @@ export class InitFaceVerifyRequest extends $tea.Model {
|
|
|
1173
1258
|
ip: 'Ip',
|
|
1174
1259
|
metaInfo: 'MetaInfo',
|
|
1175
1260
|
mobile: 'Mobile',
|
|
1261
|
+
mode: 'Mode',
|
|
1176
1262
|
model: 'Model',
|
|
1177
1263
|
ossBucketName: 'OssBucketName',
|
|
1178
1264
|
ossObjectName: 'OssObjectName',
|
|
1179
1265
|
outerOrderNo: 'OuterOrderNo',
|
|
1180
1266
|
procedurePriority: 'ProcedurePriority',
|
|
1181
1267
|
productCode: 'ProductCode',
|
|
1268
|
+
readImg: 'ReadImg',
|
|
1182
1269
|
returnUrl: 'ReturnUrl',
|
|
1183
1270
|
sceneId: 'SceneId',
|
|
1184
1271
|
suitableType: 'SuitableType',
|
|
1185
1272
|
userId: 'UserId',
|
|
1273
|
+
validityDate: 'ValidityDate',
|
|
1186
1274
|
voluntaryCustomizedContent: 'VoluntaryCustomizedContent',
|
|
1187
1275
|
};
|
|
1188
1276
|
}
|
|
@@ -1190,12 +1278,14 @@ export class InitFaceVerifyRequest extends $tea.Model {
|
|
|
1190
1278
|
static types(): { [key: string]: any } {
|
|
1191
1279
|
return {
|
|
1192
1280
|
authId: 'string',
|
|
1281
|
+
birthday: 'string',
|
|
1193
1282
|
callbackToken: 'string',
|
|
1194
1283
|
callbackUrl: 'string',
|
|
1195
1284
|
certName: 'string',
|
|
1196
1285
|
certNo: 'string',
|
|
1197
1286
|
certType: 'string',
|
|
1198
1287
|
certifyId: 'string',
|
|
1288
|
+
certifyUrlStyle: 'string',
|
|
1199
1289
|
certifyUrlType: 'string',
|
|
1200
1290
|
crop: 'string',
|
|
1201
1291
|
encryptType: 'string',
|
|
@@ -1204,16 +1294,19 @@ export class InitFaceVerifyRequest extends $tea.Model {
|
|
|
1204
1294
|
ip: 'string',
|
|
1205
1295
|
metaInfo: 'string',
|
|
1206
1296
|
mobile: 'string',
|
|
1297
|
+
mode: 'string',
|
|
1207
1298
|
model: 'string',
|
|
1208
1299
|
ossBucketName: 'string',
|
|
1209
1300
|
ossObjectName: 'string',
|
|
1210
1301
|
outerOrderNo: 'string',
|
|
1211
1302
|
procedurePriority: 'string',
|
|
1212
1303
|
productCode: 'string',
|
|
1304
|
+
readImg: 'string',
|
|
1213
1305
|
returnUrl: 'string',
|
|
1214
1306
|
sceneId: 'number',
|
|
1215
1307
|
suitableType: 'string',
|
|
1216
1308
|
userId: 'string',
|
|
1309
|
+
validityDate: 'string',
|
|
1217
1310
|
voluntaryCustomizedContent: 'string',
|
|
1218
1311
|
};
|
|
1219
1312
|
}
|
|
@@ -1387,6 +1480,168 @@ export class LivenessFaceVerifyResponse extends $tea.Model {
|
|
|
1387
1480
|
}
|
|
1388
1481
|
}
|
|
1389
1482
|
|
|
1483
|
+
export class Mobile3MetaDetailVerifyRequest extends $tea.Model {
|
|
1484
|
+
identifyNum?: string;
|
|
1485
|
+
mobile?: string;
|
|
1486
|
+
paramType?: string;
|
|
1487
|
+
userName?: string;
|
|
1488
|
+
static names(): { [key: string]: string } {
|
|
1489
|
+
return {
|
|
1490
|
+
identifyNum: 'IdentifyNum',
|
|
1491
|
+
mobile: 'Mobile',
|
|
1492
|
+
paramType: 'ParamType',
|
|
1493
|
+
userName: 'UserName',
|
|
1494
|
+
};
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
static types(): { [key: string]: any } {
|
|
1498
|
+
return {
|
|
1499
|
+
identifyNum: 'string',
|
|
1500
|
+
mobile: 'string',
|
|
1501
|
+
paramType: 'string',
|
|
1502
|
+
userName: 'string',
|
|
1503
|
+
};
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
constructor(map?: { [key: string]: any }) {
|
|
1507
|
+
super(map);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
export class Mobile3MetaDetailVerifyResponseBody extends $tea.Model {
|
|
1512
|
+
code?: string;
|
|
1513
|
+
message?: string;
|
|
1514
|
+
requestId?: string;
|
|
1515
|
+
resultObject?: Mobile3MetaDetailVerifyResponseBodyResultObject;
|
|
1516
|
+
static names(): { [key: string]: string } {
|
|
1517
|
+
return {
|
|
1518
|
+
code: 'Code',
|
|
1519
|
+
message: 'Message',
|
|
1520
|
+
requestId: 'RequestId',
|
|
1521
|
+
resultObject: 'ResultObject',
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
static types(): { [key: string]: any } {
|
|
1526
|
+
return {
|
|
1527
|
+
code: 'string',
|
|
1528
|
+
message: 'string',
|
|
1529
|
+
requestId: 'string',
|
|
1530
|
+
resultObject: Mobile3MetaDetailVerifyResponseBodyResultObject,
|
|
1531
|
+
};
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
constructor(map?: { [key: string]: any }) {
|
|
1535
|
+
super(map);
|
|
1536
|
+
}
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
export class Mobile3MetaDetailVerifyResponse extends $tea.Model {
|
|
1540
|
+
headers: { [key: string]: string };
|
|
1541
|
+
statusCode: number;
|
|
1542
|
+
body: Mobile3MetaDetailVerifyResponseBody;
|
|
1543
|
+
static names(): { [key: string]: string } {
|
|
1544
|
+
return {
|
|
1545
|
+
headers: 'headers',
|
|
1546
|
+
statusCode: 'statusCode',
|
|
1547
|
+
body: 'body',
|
|
1548
|
+
};
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
static types(): { [key: string]: any } {
|
|
1552
|
+
return {
|
|
1553
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1554
|
+
statusCode: 'number',
|
|
1555
|
+
body: Mobile3MetaDetailVerifyResponseBody,
|
|
1556
|
+
};
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
constructor(map?: { [key: string]: any }) {
|
|
1560
|
+
super(map);
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
export class Mobile3MetaSimpleVerifyRequest extends $tea.Model {
|
|
1565
|
+
identifyNum?: string;
|
|
1566
|
+
mobile?: string;
|
|
1567
|
+
paramType?: string;
|
|
1568
|
+
userName?: string;
|
|
1569
|
+
static names(): { [key: string]: string } {
|
|
1570
|
+
return {
|
|
1571
|
+
identifyNum: 'IdentifyNum',
|
|
1572
|
+
mobile: 'Mobile',
|
|
1573
|
+
paramType: 'ParamType',
|
|
1574
|
+
userName: 'UserName',
|
|
1575
|
+
};
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
static types(): { [key: string]: any } {
|
|
1579
|
+
return {
|
|
1580
|
+
identifyNum: 'string',
|
|
1581
|
+
mobile: 'string',
|
|
1582
|
+
paramType: 'string',
|
|
1583
|
+
userName: 'string',
|
|
1584
|
+
};
|
|
1585
|
+
}
|
|
1586
|
+
|
|
1587
|
+
constructor(map?: { [key: string]: any }) {
|
|
1588
|
+
super(map);
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1592
|
+
export class Mobile3MetaSimpleVerifyResponseBody extends $tea.Model {
|
|
1593
|
+
code?: string;
|
|
1594
|
+
message?: string;
|
|
1595
|
+
requestId?: string;
|
|
1596
|
+
resultObject?: Mobile3MetaSimpleVerifyResponseBodyResultObject;
|
|
1597
|
+
static names(): { [key: string]: string } {
|
|
1598
|
+
return {
|
|
1599
|
+
code: 'Code',
|
|
1600
|
+
message: 'Message',
|
|
1601
|
+
requestId: 'RequestId',
|
|
1602
|
+
resultObject: 'ResultObject',
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
static types(): { [key: string]: any } {
|
|
1607
|
+
return {
|
|
1608
|
+
code: 'string',
|
|
1609
|
+
message: 'string',
|
|
1610
|
+
requestId: 'string',
|
|
1611
|
+
resultObject: Mobile3MetaSimpleVerifyResponseBodyResultObject,
|
|
1612
|
+
};
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
constructor(map?: { [key: string]: any }) {
|
|
1616
|
+
super(map);
|
|
1617
|
+
}
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
export class Mobile3MetaSimpleVerifyResponse extends $tea.Model {
|
|
1621
|
+
headers: { [key: string]: string };
|
|
1622
|
+
statusCode: number;
|
|
1623
|
+
body: Mobile3MetaSimpleVerifyResponseBody;
|
|
1624
|
+
static names(): { [key: string]: string } {
|
|
1625
|
+
return {
|
|
1626
|
+
headers: 'headers',
|
|
1627
|
+
statusCode: 'statusCode',
|
|
1628
|
+
body: 'body',
|
|
1629
|
+
};
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
static types(): { [key: string]: any } {
|
|
1633
|
+
return {
|
|
1634
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1635
|
+
statusCode: 'number',
|
|
1636
|
+
body: Mobile3MetaSimpleVerifyResponseBody,
|
|
1637
|
+
};
|
|
1638
|
+
}
|
|
1639
|
+
|
|
1640
|
+
constructor(map?: { [key: string]: any }) {
|
|
1641
|
+
super(map);
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1390
1645
|
export class ModifyDeviceInfoRequest extends $tea.Model {
|
|
1391
1646
|
bizType?: string;
|
|
1392
1647
|
deviceId?: string;
|
|
@@ -1711,6 +1966,7 @@ export class DescribeFaceVerifyResponseBodyResultObject extends $tea.Model {
|
|
|
1711
1966
|
materialInfo?: string;
|
|
1712
1967
|
passed?: string;
|
|
1713
1968
|
subCode?: string;
|
|
1969
|
+
success?: string;
|
|
1714
1970
|
static names(): { [key: string]: string } {
|
|
1715
1971
|
return {
|
|
1716
1972
|
deviceRisk: 'DeviceRisk',
|
|
@@ -1719,6 +1975,7 @@ export class DescribeFaceVerifyResponseBodyResultObject extends $tea.Model {
|
|
|
1719
1975
|
materialInfo: 'MaterialInfo',
|
|
1720
1976
|
passed: 'Passed',
|
|
1721
1977
|
subCode: 'SubCode',
|
|
1978
|
+
success: 'Success',
|
|
1722
1979
|
};
|
|
1723
1980
|
}
|
|
1724
1981
|
|
|
@@ -1730,6 +1987,7 @@ export class DescribeFaceVerifyResponseBodyResultObject extends $tea.Model {
|
|
|
1730
1987
|
materialInfo: 'string',
|
|
1731
1988
|
passed: 'string',
|
|
1732
1989
|
subCode: 'string',
|
|
1990
|
+
success: 'string',
|
|
1733
1991
|
};
|
|
1734
1992
|
}
|
|
1735
1993
|
|
|
@@ -2079,6 +2337,25 @@ export class DetectFaceAttributesResponseBodyData extends $tea.Model {
|
|
|
2079
2337
|
}
|
|
2080
2338
|
}
|
|
2081
2339
|
|
|
2340
|
+
export class Id2MetaVerifyResponseBodyResultObject extends $tea.Model {
|
|
2341
|
+
bizCode?: string;
|
|
2342
|
+
static names(): { [key: string]: string } {
|
|
2343
|
+
return {
|
|
2344
|
+
bizCode: 'BizCode',
|
|
2345
|
+
};
|
|
2346
|
+
}
|
|
2347
|
+
|
|
2348
|
+
static types(): { [key: string]: any } {
|
|
2349
|
+
return {
|
|
2350
|
+
bizCode: 'string',
|
|
2351
|
+
};
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2354
|
+
constructor(map?: { [key: string]: any }) {
|
|
2355
|
+
super(map);
|
|
2356
|
+
}
|
|
2357
|
+
}
|
|
2358
|
+
|
|
2082
2359
|
export class InitFaceVerifyResponseBodyResultObject extends $tea.Model {
|
|
2083
2360
|
certifyId?: string;
|
|
2084
2361
|
certifyUrl?: string;
|
|
@@ -2129,6 +2406,53 @@ export class LivenessFaceVerifyResponseBodyResultObject extends $tea.Model {
|
|
|
2129
2406
|
}
|
|
2130
2407
|
}
|
|
2131
2408
|
|
|
2409
|
+
export class Mobile3MetaDetailVerifyResponseBodyResultObject extends $tea.Model {
|
|
2410
|
+
bizCode?: string;
|
|
2411
|
+
ispName?: string;
|
|
2412
|
+
subCode?: string;
|
|
2413
|
+
static names(): { [key: string]: string } {
|
|
2414
|
+
return {
|
|
2415
|
+
bizCode: 'BizCode',
|
|
2416
|
+
ispName: 'IspName',
|
|
2417
|
+
subCode: 'SubCode',
|
|
2418
|
+
};
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
static types(): { [key: string]: any } {
|
|
2422
|
+
return {
|
|
2423
|
+
bizCode: 'string',
|
|
2424
|
+
ispName: 'string',
|
|
2425
|
+
subCode: 'string',
|
|
2426
|
+
};
|
|
2427
|
+
}
|
|
2428
|
+
|
|
2429
|
+
constructor(map?: { [key: string]: any }) {
|
|
2430
|
+
super(map);
|
|
2431
|
+
}
|
|
2432
|
+
}
|
|
2433
|
+
|
|
2434
|
+
export class Mobile3MetaSimpleVerifyResponseBodyResultObject extends $tea.Model {
|
|
2435
|
+
bizCode?: string;
|
|
2436
|
+
ispName?: string;
|
|
2437
|
+
static names(): { [key: string]: string } {
|
|
2438
|
+
return {
|
|
2439
|
+
bizCode: 'BizCode',
|
|
2440
|
+
ispName: 'IspName',
|
|
2441
|
+
};
|
|
2442
|
+
}
|
|
2443
|
+
|
|
2444
|
+
static types(): { [key: string]: any } {
|
|
2445
|
+
return {
|
|
2446
|
+
bizCode: 'string',
|
|
2447
|
+
ispName: 'string',
|
|
2448
|
+
};
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
constructor(map?: { [key: string]: any }) {
|
|
2452
|
+
super(map);
|
|
2453
|
+
}
|
|
2454
|
+
}
|
|
2455
|
+
|
|
2132
2456
|
export class VerifyMaterialResponseBodyMaterialIdCardInfo extends $tea.Model {
|
|
2133
2457
|
address?: string;
|
|
2134
2458
|
authority?: string;
|
|
@@ -2915,9 +3239,50 @@ export default class Client extends OpenApi {
|
|
|
2915
3239
|
return await this.detectFaceAttributesWithOptions(request, runtime);
|
|
2916
3240
|
}
|
|
2917
3241
|
|
|
3242
|
+
async id2MetaVerifyWithOptions(request: Id2MetaVerifyRequest, runtime: $Util.RuntimeOptions): Promise<Id2MetaVerifyResponse> {
|
|
3243
|
+
Util.validateModel(request);
|
|
3244
|
+
let query = { };
|
|
3245
|
+
if (!Util.isUnset(request.identifyNum)) {
|
|
3246
|
+
query["IdentifyNum"] = request.identifyNum;
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
if (!Util.isUnset(request.paramType)) {
|
|
3250
|
+
query["ParamType"] = request.paramType;
|
|
3251
|
+
}
|
|
3252
|
+
|
|
3253
|
+
if (!Util.isUnset(request.userName)) {
|
|
3254
|
+
query["UserName"] = request.userName;
|
|
3255
|
+
}
|
|
3256
|
+
|
|
3257
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3258
|
+
query: OpenApiUtil.query(query),
|
|
3259
|
+
});
|
|
3260
|
+
let params = new $OpenApi.Params({
|
|
3261
|
+
action: "Id2MetaVerify",
|
|
3262
|
+
version: "2019-03-07",
|
|
3263
|
+
protocol: "HTTPS",
|
|
3264
|
+
pathname: "/",
|
|
3265
|
+
method: "POST",
|
|
3266
|
+
authType: "AK",
|
|
3267
|
+
style: "RPC",
|
|
3268
|
+
reqBodyType: "formData",
|
|
3269
|
+
bodyType: "json",
|
|
3270
|
+
});
|
|
3271
|
+
return $tea.cast<Id2MetaVerifyResponse>(await this.callApi(params, req, runtime), new Id2MetaVerifyResponse({}));
|
|
3272
|
+
}
|
|
3273
|
+
|
|
3274
|
+
async id2MetaVerify(request: Id2MetaVerifyRequest): Promise<Id2MetaVerifyResponse> {
|
|
3275
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3276
|
+
return await this.id2MetaVerifyWithOptions(request, runtime);
|
|
3277
|
+
}
|
|
3278
|
+
|
|
2918
3279
|
async initFaceVerifyWithOptions(request: InitFaceVerifyRequest, runtime: $Util.RuntimeOptions): Promise<InitFaceVerifyResponse> {
|
|
2919
3280
|
Util.validateModel(request);
|
|
2920
3281
|
let query = { };
|
|
3282
|
+
if (!Util.isUnset(request.birthday)) {
|
|
3283
|
+
query["Birthday"] = request.birthday;
|
|
3284
|
+
}
|
|
3285
|
+
|
|
2921
3286
|
if (!Util.isUnset(request.callbackToken)) {
|
|
2922
3287
|
query["CallbackToken"] = request.callbackToken;
|
|
2923
3288
|
}
|
|
@@ -2942,6 +3307,10 @@ export default class Client extends OpenApi {
|
|
|
2942
3307
|
query["CertifyId"] = request.certifyId;
|
|
2943
3308
|
}
|
|
2944
3309
|
|
|
3310
|
+
if (!Util.isUnset(request.certifyUrlStyle)) {
|
|
3311
|
+
query["CertifyUrlStyle"] = request.certifyUrlStyle;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
2945
3314
|
if (!Util.isUnset(request.certifyUrlType)) {
|
|
2946
3315
|
query["CertifyUrlType"] = request.certifyUrlType;
|
|
2947
3316
|
}
|
|
@@ -2966,6 +3335,10 @@ export default class Client extends OpenApi {
|
|
|
2966
3335
|
query["Mobile"] = request.mobile;
|
|
2967
3336
|
}
|
|
2968
3337
|
|
|
3338
|
+
if (!Util.isUnset(request.mode)) {
|
|
3339
|
+
query["Mode"] = request.mode;
|
|
3340
|
+
}
|
|
3341
|
+
|
|
2969
3342
|
if (!Util.isUnset(request.ossBucketName)) {
|
|
2970
3343
|
query["OssBucketName"] = request.ossBucketName;
|
|
2971
3344
|
}
|
|
@@ -2986,6 +3359,10 @@ export default class Client extends OpenApi {
|
|
|
2986
3359
|
query["ProductCode"] = request.productCode;
|
|
2987
3360
|
}
|
|
2988
3361
|
|
|
3362
|
+
if (!Util.isUnset(request.readImg)) {
|
|
3363
|
+
query["ReadImg"] = request.readImg;
|
|
3364
|
+
}
|
|
3365
|
+
|
|
2989
3366
|
if (!Util.isUnset(request.returnUrl)) {
|
|
2990
3367
|
query["ReturnUrl"] = request.returnUrl;
|
|
2991
3368
|
}
|
|
@@ -3002,6 +3379,10 @@ export default class Client extends OpenApi {
|
|
|
3002
3379
|
query["UserId"] = request.userId;
|
|
3003
3380
|
}
|
|
3004
3381
|
|
|
3382
|
+
if (!Util.isUnset(request.validityDate)) {
|
|
3383
|
+
query["ValidityDate"] = request.validityDate;
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3005
3386
|
if (!Util.isUnset(request.voluntaryCustomizedContent)) {
|
|
3006
3387
|
query["VoluntaryCustomizedContent"] = request.voluntaryCustomizedContent;
|
|
3007
3388
|
}
|
|
@@ -3129,6 +3510,88 @@ export default class Client extends OpenApi {
|
|
|
3129
3510
|
return await this.livenessFaceVerifyWithOptions(request, runtime);
|
|
3130
3511
|
}
|
|
3131
3512
|
|
|
3513
|
+
async mobile3MetaDetailVerifyWithOptions(request: Mobile3MetaDetailVerifyRequest, runtime: $Util.RuntimeOptions): Promise<Mobile3MetaDetailVerifyResponse> {
|
|
3514
|
+
Util.validateModel(request);
|
|
3515
|
+
let query = { };
|
|
3516
|
+
if (!Util.isUnset(request.identifyNum)) {
|
|
3517
|
+
query["IdentifyNum"] = request.identifyNum;
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
if (!Util.isUnset(request.mobile)) {
|
|
3521
|
+
query["Mobile"] = request.mobile;
|
|
3522
|
+
}
|
|
3523
|
+
|
|
3524
|
+
if (!Util.isUnset(request.paramType)) {
|
|
3525
|
+
query["ParamType"] = request.paramType;
|
|
3526
|
+
}
|
|
3527
|
+
|
|
3528
|
+
if (!Util.isUnset(request.userName)) {
|
|
3529
|
+
query["UserName"] = request.userName;
|
|
3530
|
+
}
|
|
3531
|
+
|
|
3532
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3533
|
+
query: OpenApiUtil.query(query),
|
|
3534
|
+
});
|
|
3535
|
+
let params = new $OpenApi.Params({
|
|
3536
|
+
action: "Mobile3MetaDetailVerify",
|
|
3537
|
+
version: "2019-03-07",
|
|
3538
|
+
protocol: "HTTPS",
|
|
3539
|
+
pathname: "/",
|
|
3540
|
+
method: "POST",
|
|
3541
|
+
authType: "AK",
|
|
3542
|
+
style: "RPC",
|
|
3543
|
+
reqBodyType: "formData",
|
|
3544
|
+
bodyType: "json",
|
|
3545
|
+
});
|
|
3546
|
+
return $tea.cast<Mobile3MetaDetailVerifyResponse>(await this.callApi(params, req, runtime), new Mobile3MetaDetailVerifyResponse({}));
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
async mobile3MetaDetailVerify(request: Mobile3MetaDetailVerifyRequest): Promise<Mobile3MetaDetailVerifyResponse> {
|
|
3550
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3551
|
+
return await this.mobile3MetaDetailVerifyWithOptions(request, runtime);
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3554
|
+
async mobile3MetaSimpleVerifyWithOptions(request: Mobile3MetaSimpleVerifyRequest, runtime: $Util.RuntimeOptions): Promise<Mobile3MetaSimpleVerifyResponse> {
|
|
3555
|
+
Util.validateModel(request);
|
|
3556
|
+
let query = { };
|
|
3557
|
+
if (!Util.isUnset(request.identifyNum)) {
|
|
3558
|
+
query["IdentifyNum"] = request.identifyNum;
|
|
3559
|
+
}
|
|
3560
|
+
|
|
3561
|
+
if (!Util.isUnset(request.mobile)) {
|
|
3562
|
+
query["Mobile"] = request.mobile;
|
|
3563
|
+
}
|
|
3564
|
+
|
|
3565
|
+
if (!Util.isUnset(request.paramType)) {
|
|
3566
|
+
query["ParamType"] = request.paramType;
|
|
3567
|
+
}
|
|
3568
|
+
|
|
3569
|
+
if (!Util.isUnset(request.userName)) {
|
|
3570
|
+
query["UserName"] = request.userName;
|
|
3571
|
+
}
|
|
3572
|
+
|
|
3573
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3574
|
+
query: OpenApiUtil.query(query),
|
|
3575
|
+
});
|
|
3576
|
+
let params = new $OpenApi.Params({
|
|
3577
|
+
action: "Mobile3MetaSimpleVerify",
|
|
3578
|
+
version: "2019-03-07",
|
|
3579
|
+
protocol: "HTTPS",
|
|
3580
|
+
pathname: "/",
|
|
3581
|
+
method: "POST",
|
|
3582
|
+
authType: "AK",
|
|
3583
|
+
style: "RPC",
|
|
3584
|
+
reqBodyType: "formData",
|
|
3585
|
+
bodyType: "json",
|
|
3586
|
+
});
|
|
3587
|
+
return $tea.cast<Mobile3MetaSimpleVerifyResponse>(await this.callApi(params, req, runtime), new Mobile3MetaSimpleVerifyResponse({}));
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
async mobile3MetaSimpleVerify(request: Mobile3MetaSimpleVerifyRequest): Promise<Mobile3MetaSimpleVerifyResponse> {
|
|
3591
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
3592
|
+
return await this.mobile3MetaSimpleVerifyWithOptions(request, runtime);
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3132
3595
|
async modifyDeviceInfoWithOptions(request: ModifyDeviceInfoRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDeviceInfoResponse> {
|
|
3133
3596
|
Util.validateModel(request);
|
|
3134
3597
|
let query = { };
|