@alicloud/cloudauth20190307 3.2.0 → 3.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/cloudauth20190307",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -2772,10 +2772,10 @@ export class DetectFaceAttributesResponse extends $tea.Model {
2772
2772
  }
2773
2773
  }
2774
2774
 
2775
- export class Id2MetaVerifyRequest extends $tea.Model {
2775
+ export class Id2MetaStandardVerifyRequest extends $tea.Model {
2776
2776
  /**
2777
2777
  * @example
2778
- * 412722198610274919
2778
+ * 4****************1
2779
2779
  */
2780
2780
  identifyNum?: string;
2781
2781
  /**
@@ -2805,6 +2805,99 @@ export class Id2MetaVerifyRequest extends $tea.Model {
2805
2805
  }
2806
2806
  }
2807
2807
 
2808
+ export class Id2MetaStandardVerifyResponseBody extends $tea.Model {
2809
+ /**
2810
+ * @example
2811
+ * 200
2812
+ */
2813
+ code?: string;
2814
+ /**
2815
+ * @example
2816
+ * success
2817
+ */
2818
+ message?: string;
2819
+ /**
2820
+ * @remarks
2821
+ * Id of the request
2822
+ *
2823
+ * @example
2824
+ * D6163397-15C5-419C-9ACC-B7C83E0B4C10
2825
+ */
2826
+ requestId?: string;
2827
+ resultObject?: Id2MetaStandardVerifyResponseBodyResultObject;
2828
+ static names(): { [key: string]: string } {
2829
+ return {
2830
+ code: 'Code',
2831
+ message: 'Message',
2832
+ requestId: 'RequestId',
2833
+ resultObject: 'ResultObject',
2834
+ };
2835
+ }
2836
+
2837
+ static types(): { [key: string]: any } {
2838
+ return {
2839
+ code: 'string',
2840
+ message: 'string',
2841
+ requestId: 'string',
2842
+ resultObject: Id2MetaStandardVerifyResponseBodyResultObject,
2843
+ };
2844
+ }
2845
+
2846
+ constructor(map?: { [key: string]: any }) {
2847
+ super(map);
2848
+ }
2849
+ }
2850
+
2851
+ export class Id2MetaStandardVerifyResponse extends $tea.Model {
2852
+ headers?: { [key: string]: string };
2853
+ statusCode?: number;
2854
+ body?: Id2MetaStandardVerifyResponseBody;
2855
+ static names(): { [key: string]: string } {
2856
+ return {
2857
+ headers: 'headers',
2858
+ statusCode: 'statusCode',
2859
+ body: 'body',
2860
+ };
2861
+ }
2862
+
2863
+ static types(): { [key: string]: any } {
2864
+ return {
2865
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
2866
+ statusCode: 'number',
2867
+ body: Id2MetaStandardVerifyResponseBody,
2868
+ };
2869
+ }
2870
+
2871
+ constructor(map?: { [key: string]: any }) {
2872
+ super(map);
2873
+ }
2874
+ }
2875
+
2876
+ export class Id2MetaVerifyRequest extends $tea.Model {
2877
+ identifyNum?: string;
2878
+ paramType?: string;
2879
+ userName?: string;
2880
+ static names(): { [key: string]: string } {
2881
+ return {
2882
+ identifyNum: 'IdentifyNum',
2883
+ paramType: 'ParamType',
2884
+ userName: 'UserName',
2885
+ };
2886
+ }
2887
+
2888
+ static types(): { [key: string]: any } {
2889
+ return {
2890
+ identifyNum: 'string',
2891
+ paramType: 'string',
2892
+ userName: 'string',
2893
+ };
2894
+ }
2895
+
2896
+ constructor(map?: { [key: string]: any }) {
2897
+ super(map);
2898
+ }
2899
+ }
2900
+
2808
2901
  export class Id2MetaVerifyResponseBody extends $tea.Model {
2809
2902
  /**
2810
2903
  * @example
@@ -3368,20 +3461,8 @@ export class LivenessFaceVerifyResponse extends $tea.Model {
3368
3461
  }
3369
3462
 
3370
3463
  export class Mobile3MetaDetailVerifyRequest extends $tea.Model {
3371
- /**
3372
- * @example
3373
- * 520181199902104631
3374
- */
3375
3464
  identifyNum?: string;
3376
- /**
3377
- * @example
3378
- * 150000xxxx
3379
- */
3380
3465
  mobile?: string;
3381
- /**
3382
- * @example
3383
- * normal
3384
- */
3385
3466
  paramType?: string;
3386
3467
  userName?: string;
3387
3468
  static names(): { [key: string]: string } {
@@ -3473,20 +3554,8 @@ export class Mobile3MetaDetailVerifyResponse extends $tea.Model {
3473
3554
  }
3474
3555
 
3475
3556
  export class Mobile3MetaSimpleVerifyRequest extends $tea.Model {
3476
- /**
3477
- * @example
3478
- * 429001********8211
3479
- */
3480
3557
  identifyNum?: string;
3481
- /**
3482
- * @example
3483
- * 150000****
3484
- */
3485
3558
  mobile?: string;
3486
- /**
3487
- * @example
3488
- * normal
3489
- */
3490
3559
  paramType?: string;
3491
3560
  userName?: string;
3492
3561
  static names(): { [key: string]: string } {
@@ -3578,15 +3647,7 @@ export class Mobile3MetaSimpleVerifyResponse extends $tea.Model {
3578
3647
  }
3579
3648
 
3580
3649
  export class MobileDetectRequest extends $tea.Model {
3581
- /**
3582
- * @example
3583
- * 138********,156********
3584
- */
3585
3650
  mobiles?: string;
3586
- /**
3587
- * @example
3588
- * normal
3589
- */
3590
3651
  paramType?: string;
3591
3652
  static names(): { [key: string]: string } {
3592
3653
  return {
@@ -3673,15 +3734,7 @@ export class MobileDetectResponse extends $tea.Model {
3673
3734
  }
3674
3735
 
3675
3736
  export class MobileOnlineStatusRequest extends $tea.Model {
3676
- /**
3677
- * @example
3678
- * 130********
3679
- */
3680
3737
  mobile?: string;
3681
- /**
3682
- * @example
3683
- * normal
3684
- */
3685
3738
  paramType?: string;
3686
3739
  static names(): { [key: string]: string } {
3687
3740
  return {
@@ -3768,15 +3821,7 @@ export class MobileOnlineStatusResponse extends $tea.Model {
3768
3821
  }
3769
3822
 
3770
3823
  export class MobileOnlineTimeRequest extends $tea.Model {
3771
- /**
3772
- * @example
3773
- * 130********
3774
- */
3775
3824
  mobile?: string;
3776
- /**
3777
- * @example
3778
- * normal
3779
- */
3780
3825
  paramType?: string;
3781
3826
  static names(): { [key: string]: string } {
3782
3827
  return {
@@ -5423,11 +5468,7 @@ export class DescribeDeviceInfoResponseBodyDeviceInfoList extends $tea.Model {
5423
5468
  }
5424
5469
 
5425
5470
  export class DescribeFaceGuardRiskResponseBodyResultObject extends $tea.Model {
5426
- /**
5427
- * @example
5428
- * ROOT,VPN,HOOK
5429
- */
5430
- riakTags?: string;
5471
+ certifyId?: string;
5431
5472
  /**
5432
5473
  * @example
5433
5474
  * {
@@ -5442,17 +5483,20 @@ export class DescribeFaceGuardRiskResponseBodyResultObject extends $tea.Model {
5442
5483
  * }
5443
5484
  */
5444
5485
  riskExtends?: string;
5486
+ riskTags?: string;
5445
5487
  static names(): { [key: string]: string } {
5446
5488
  return {
5447
- riakTags: 'RiakTags',
5489
+ certifyId: 'CertifyId',
5448
5490
  riskExtends: 'RiskExtends',
5491
+ riskTags: 'RiskTags',
5449
5492
  };
5450
5493
  }
5451
5494
 
5452
5495
  static types(): { [key: string]: any } {
5453
5496
  return {
5454
- riakTags: 'string',
5497
+ certifyId: 'string',
5455
5498
  riskExtends: 'string',
5499
+ riskTags: 'string',
5456
5500
  };
5457
5501
  }
5458
5502
 
@@ -6145,6 +6189,29 @@ export class DetectFaceAttributesResponseBodyData extends $tea.Model {
6145
6189
  }
6146
6190
  }
6147
6191
 
6192
+ export class Id2MetaStandardVerifyResponseBodyResultObject extends $tea.Model {
6193
+ /**
6194
+ * @example
6195
+ * 1
6196
+ */
6197
+ bizCode?: string;
6198
+ static names(): { [key: string]: string } {
6199
+ return {
6200
+ bizCode: 'BizCode',
6201
+ };
6202
+ }
6203
+
6204
+ static types(): { [key: string]: any } {
6205
+ return {
6206
+ bizCode: 'string',
6207
+ };
6208
+ }
6209
+
6210
+ constructor(map?: { [key: string]: any }) {
6211
+ super(map);
6212
+ }
6213
+ }
6214
+
6148
6215
  export class Id2MetaVerifyResponseBodyResultObject extends $tea.Model {
6149
6216
  /**
6150
6217
  * @example
@@ -8119,6 +8186,56 @@ export default class Client extends OpenApi {
8119
8186
  return await this.detectFaceAttributesWithOptions(request, runtime);
8120
8187
  }
8121
8188
 
8189
+ /**
8190
+ * 身份二要素标准版
8191
+ *
8192
+ * @param request - Id2MetaStandardVerifyRequest
8193
+ * @param runtime - runtime options for this request RuntimeOptions
8194
+ * @returns Id2MetaStandardVerifyResponse
8195
+ */
8196
+ async id2MetaStandardVerifyWithOptions(request: Id2MetaStandardVerifyRequest, runtime: $Util.RuntimeOptions): Promise<Id2MetaStandardVerifyResponse> {
8197
+ Util.validateModel(request);
8198
+ let body : {[key: string ]: any} = { };
8199
+ if (!Util.isUnset(request.identifyNum)) {
8200
+ body["IdentifyNum"] = request.identifyNum;
8201
+ }
8202
+
8203
+ if (!Util.isUnset(request.paramType)) {
8204
+ body["ParamType"] = request.paramType;
8205
+ }
8206
+
8207
+ if (!Util.isUnset(request.userName)) {
8208
+ body["UserName"] = request.userName;
8209
+ }
8210
+
8211
+ let req = new $OpenApi.OpenApiRequest({
8212
+ body: OpenApiUtil.parseToMap(body),
8213
+ });
8214
+ let params = new $OpenApi.Params({
8215
+ action: "Id2MetaStandardVerify",
8216
+ version: "2019-03-07",
8217
+ protocol: "HTTPS",
8218
+ pathname: "/",
8219
+ method: "POST",
8220
+ authType: "AK",
8221
+ style: "RPC",
8222
+ reqBodyType: "formData",
8223
+ bodyType: "json",
8224
+ });
8225
+ return $tea.cast<Id2MetaStandardVerifyResponse>(await this.callApi(params, req, runtime), new Id2MetaStandardVerifyResponse({}));
8226
+ }
8227
+
8228
+ /**
8229
+ * 身份二要素标准版
8230
+ *
8231
+ * @param request - Id2MetaStandardVerifyRequest
8232
+ * @returns Id2MetaStandardVerifyResponse
8233
+ */
8234
+ async id2MetaStandardVerify(request: Id2MetaStandardVerifyRequest): Promise<Id2MetaStandardVerifyResponse> {
8235
+ let runtime = new $Util.RuntimeOptions({ });
8236
+ return await this.id2MetaStandardVerifyWithOptions(request, runtime);
8237
+ }
8238
+
8122
8239
  /**
8123
8240
  * 身份二要素接口
8124
8241
  *
@@ -8128,21 +8245,21 @@ export default class Client extends OpenApi {
8128
8245
  */
8129
8246
  async id2MetaVerifyWithOptions(request: Id2MetaVerifyRequest, runtime: $Util.RuntimeOptions): Promise<Id2MetaVerifyResponse> {
8130
8247
  Util.validateModel(request);
8131
- let query = { };
8248
+ let body : {[key: string ]: any} = { };
8132
8249
  if (!Util.isUnset(request.identifyNum)) {
8133
- query["IdentifyNum"] = request.identifyNum;
8250
+ body["IdentifyNum"] = request.identifyNum;
8134
8251
  }
8135
8252
 
8136
8253
  if (!Util.isUnset(request.paramType)) {
8137
- query["ParamType"] = request.paramType;
8254
+ body["ParamType"] = request.paramType;
8138
8255
  }
8139
8256
 
8140
8257
  if (!Util.isUnset(request.userName)) {
8141
- query["UserName"] = request.userName;
8258
+ body["UserName"] = request.userName;
8142
8259
  }
8143
8260
 
8144
8261
  let req = new $OpenApi.OpenApiRequest({
8145
- query: OpenApiUtil.query(query),
8262
+ body: OpenApiUtil.parseToMap(body),
8146
8263
  });
8147
8264
  let params = new $OpenApi.Params({
8148
8265
  action: "Id2MetaVerify",
@@ -8512,25 +8629,25 @@ export default class Client extends OpenApi {
8512
8629
  */
8513
8630
  async mobile3MetaDetailVerifyWithOptions(request: Mobile3MetaDetailVerifyRequest, runtime: $Util.RuntimeOptions): Promise<Mobile3MetaDetailVerifyResponse> {
8514
8631
  Util.validateModel(request);
8515
- let query = { };
8632
+ let body : {[key: string ]: any} = { };
8516
8633
  if (!Util.isUnset(request.identifyNum)) {
8517
- query["IdentifyNum"] = request.identifyNum;
8634
+ body["IdentifyNum"] = request.identifyNum;
8518
8635
  }
8519
8636
 
8520
8637
  if (!Util.isUnset(request.mobile)) {
8521
- query["Mobile"] = request.mobile;
8638
+ body["Mobile"] = request.mobile;
8522
8639
  }
8523
8640
 
8524
8641
  if (!Util.isUnset(request.paramType)) {
8525
- query["ParamType"] = request.paramType;
8642
+ body["ParamType"] = request.paramType;
8526
8643
  }
8527
8644
 
8528
8645
  if (!Util.isUnset(request.userName)) {
8529
- query["UserName"] = request.userName;
8646
+ body["UserName"] = request.userName;
8530
8647
  }
8531
8648
 
8532
8649
  let req = new $OpenApi.OpenApiRequest({
8533
- query: OpenApiUtil.query(query),
8650
+ body: OpenApiUtil.parseToMap(body),
8534
8651
  });
8535
8652
  let params = new $OpenApi.Params({
8536
8653
  action: "Mobile3MetaDetailVerify",
@@ -8566,25 +8683,25 @@ export default class Client extends OpenApi {
8566
8683
  */
8567
8684
  async mobile3MetaSimpleVerifyWithOptions(request: Mobile3MetaSimpleVerifyRequest, runtime: $Util.RuntimeOptions): Promise<Mobile3MetaSimpleVerifyResponse> {
8568
8685
  Util.validateModel(request);
8569
- let query = { };
8686
+ let body : {[key: string ]: any} = { };
8570
8687
  if (!Util.isUnset(request.identifyNum)) {
8571
- query["IdentifyNum"] = request.identifyNum;
8688
+ body["IdentifyNum"] = request.identifyNum;
8572
8689
  }
8573
8690
 
8574
8691
  if (!Util.isUnset(request.mobile)) {
8575
- query["Mobile"] = request.mobile;
8692
+ body["Mobile"] = request.mobile;
8576
8693
  }
8577
8694
 
8578
8695
  if (!Util.isUnset(request.paramType)) {
8579
- query["ParamType"] = request.paramType;
8696
+ body["ParamType"] = request.paramType;
8580
8697
  }
8581
8698
 
8582
8699
  if (!Util.isUnset(request.userName)) {
8583
- query["UserName"] = request.userName;
8700
+ body["UserName"] = request.userName;
8584
8701
  }
8585
8702
 
8586
8703
  let req = new $OpenApi.OpenApiRequest({
8587
- query: OpenApiUtil.query(query),
8704
+ body: OpenApiUtil.parseToMap(body),
8588
8705
  });
8589
8706
  let params = new $OpenApi.Params({
8590
8707
  action: "Mobile3MetaSimpleVerify",
@@ -8620,17 +8737,17 @@ export default class Client extends OpenApi {
8620
8737
  */
8621
8738
  async mobileDetectWithOptions(request: MobileDetectRequest, runtime: $Util.RuntimeOptions): Promise<MobileDetectResponse> {
8622
8739
  Util.validateModel(request);
8623
- let query = { };
8740
+ let body : {[key: string ]: any} = { };
8624
8741
  if (!Util.isUnset(request.mobiles)) {
8625
- query["Mobiles"] = request.mobiles;
8742
+ body["Mobiles"] = request.mobiles;
8626
8743
  }
8627
8744
 
8628
8745
  if (!Util.isUnset(request.paramType)) {
8629
- query["ParamType"] = request.paramType;
8746
+ body["ParamType"] = request.paramType;
8630
8747
  }
8631
8748
 
8632
8749
  let req = new $OpenApi.OpenApiRequest({
8633
- query: OpenApiUtil.query(query),
8750
+ body: OpenApiUtil.parseToMap(body),
8634
8751
  });
8635
8752
  let params = new $OpenApi.Params({
8636
8753
  action: "MobileDetect",
@@ -8666,17 +8783,17 @@ export default class Client extends OpenApi {
8666
8783
  */
8667
8784
  async mobileOnlineStatusWithOptions(request: MobileOnlineStatusRequest, runtime: $Util.RuntimeOptions): Promise<MobileOnlineStatusResponse> {
8668
8785
  Util.validateModel(request);
8669
- let query = { };
8786
+ let body : {[key: string ]: any} = { };
8670
8787
  if (!Util.isUnset(request.mobile)) {
8671
- query["Mobile"] = request.mobile;
8788
+ body["Mobile"] = request.mobile;
8672
8789
  }
8673
8790
 
8674
8791
  if (!Util.isUnset(request.paramType)) {
8675
- query["ParamType"] = request.paramType;
8792
+ body["ParamType"] = request.paramType;
8676
8793
  }
8677
8794
 
8678
8795
  let req = new $OpenApi.OpenApiRequest({
8679
- query: OpenApiUtil.query(query),
8796
+ body: OpenApiUtil.parseToMap(body),
8680
8797
  });
8681
8798
  let params = new $OpenApi.Params({
8682
8799
  action: "MobileOnlineStatus",
@@ -8712,17 +8829,17 @@ export default class Client extends OpenApi {
8712
8829
  */
8713
8830
  async mobileOnlineTimeWithOptions(request: MobileOnlineTimeRequest, runtime: $Util.RuntimeOptions): Promise<MobileOnlineTimeResponse> {
8714
8831
  Util.validateModel(request);
8715
- let query = { };
8832
+ let body : {[key: string ]: any} = { };
8716
8833
  if (!Util.isUnset(request.mobile)) {
8717
- query["Mobile"] = request.mobile;
8834
+ body["Mobile"] = request.mobile;
8718
8835
  }
8719
8836
 
8720
8837
  if (!Util.isUnset(request.paramType)) {
8721
- query["ParamType"] = request.paramType;
8838
+ body["ParamType"] = request.paramType;
8722
8839
  }
8723
8840
 
8724
8841
  let req = new $OpenApi.OpenApiRequest({
8725
- query: OpenApiUtil.query(query),
8842
+ body: OpenApiUtil.parseToMap(body),
8726
8843
  });
8727
8844
  let params = new $OpenApi.Params({
8728
8845
  action: "MobileOnlineTime",