@alicloud/cloudauth20190307 2.0.8 → 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/src/client.ts CHANGED
@@ -1129,6 +1129,84 @@ 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;
1134
1212
  birthday?: string;
@@ -1402,6 +1480,168 @@ export class LivenessFaceVerifyResponse extends $tea.Model {
1402
1480
  }
1403
1481
  }
1404
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
+
1405
1645
  export class ModifyDeviceInfoRequest extends $tea.Model {
1406
1646
  bizType?: string;
1407
1647
  deviceId?: string;
@@ -2097,6 +2337,25 @@ export class DetectFaceAttributesResponseBodyData extends $tea.Model {
2097
2337
  }
2098
2338
  }
2099
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
+
2100
2359
  export class InitFaceVerifyResponseBodyResultObject extends $tea.Model {
2101
2360
  certifyId?: string;
2102
2361
  certifyUrl?: string;
@@ -2147,6 +2406,53 @@ export class LivenessFaceVerifyResponseBodyResultObject extends $tea.Model {
2147
2406
  }
2148
2407
  }
2149
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
+
2150
2456
  export class VerifyMaterialResponseBodyMaterialIdCardInfo extends $tea.Model {
2151
2457
  address?: string;
2152
2458
  authority?: string;
@@ -2933,6 +3239,43 @@ export default class Client extends OpenApi {
2933
3239
  return await this.detectFaceAttributesWithOptions(request, runtime);
2934
3240
  }
2935
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
+
2936
3279
  async initFaceVerifyWithOptions(request: InitFaceVerifyRequest, runtime: $Util.RuntimeOptions): Promise<InitFaceVerifyResponse> {
2937
3280
  Util.validateModel(request);
2938
3281
  let query = { };
@@ -3167,6 +3510,88 @@ export default class Client extends OpenApi {
3167
3510
  return await this.livenessFaceVerifyWithOptions(request, runtime);
3168
3511
  }
3169
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
+
3170
3595
  async modifyDeviceInfoWithOptions(request: ModifyDeviceInfoRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDeviceInfoResponse> {
3171
3596
  Util.validateModel(request);
3172
3597
  let query = { };