@alicloud/dytnsapi20200217 2.3.0 → 2.5.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
@@ -8,6 +8,96 @@ import OpenApiUtil from '@alicloud/openapi-util';
8
8
  import EndpointUtil from '@alicloud/endpoint-util';
9
9
  import * as $tea from '@alicloud/tea-typescript';
10
10
 
11
+ export class CertNoTwoElementVerificationRequest extends $tea.Model {
12
+ authCode?: string;
13
+ certName?: string;
14
+ certNo?: string;
15
+ ownerId?: number;
16
+ resourceOwnerAccount?: string;
17
+ resourceOwnerId?: number;
18
+ static names(): { [key: string]: string } {
19
+ return {
20
+ authCode: 'AuthCode',
21
+ certName: 'CertName',
22
+ certNo: 'CertNo',
23
+ ownerId: 'OwnerId',
24
+ resourceOwnerAccount: 'ResourceOwnerAccount',
25
+ resourceOwnerId: 'ResourceOwnerId',
26
+ };
27
+ }
28
+
29
+ static types(): { [key: string]: any } {
30
+ return {
31
+ authCode: 'string',
32
+ certName: 'string',
33
+ certNo: 'string',
34
+ ownerId: 'number',
35
+ resourceOwnerAccount: 'string',
36
+ resourceOwnerId: 'number',
37
+ };
38
+ }
39
+
40
+ constructor(map?: { [key: string]: any }) {
41
+ super(map);
42
+ }
43
+ }
44
+
45
+ export class CertNoTwoElementVerificationResponseBody extends $tea.Model {
46
+ accessDeniedDetail?: string;
47
+ code?: string;
48
+ data?: CertNoTwoElementVerificationResponseBodyData;
49
+ message?: string;
50
+ requestId?: string;
51
+ static names(): { [key: string]: string } {
52
+ return {
53
+ accessDeniedDetail: 'AccessDeniedDetail',
54
+ code: 'Code',
55
+ data: 'Data',
56
+ message: 'Message',
57
+ requestId: 'RequestId',
58
+ };
59
+ }
60
+
61
+ static types(): { [key: string]: any } {
62
+ return {
63
+ accessDeniedDetail: 'string',
64
+ code: 'string',
65
+ data: CertNoTwoElementVerificationResponseBodyData,
66
+ message: 'string',
67
+ requestId: 'string',
68
+ };
69
+ }
70
+
71
+ constructor(map?: { [key: string]: any }) {
72
+ super(map);
73
+ }
74
+ }
75
+
76
+ export class CertNoTwoElementVerificationResponse extends $tea.Model {
77
+ headers: { [key: string]: string };
78
+ statusCode: number;
79
+ body: CertNoTwoElementVerificationResponseBody;
80
+ static names(): { [key: string]: string } {
81
+ return {
82
+ headers: 'headers',
83
+ statusCode: 'statusCode',
84
+ body: 'body',
85
+ };
86
+ }
87
+
88
+ static types(): { [key: string]: any } {
89
+ return {
90
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
91
+ statusCode: 'number',
92
+ body: CertNoTwoElementVerificationResponseBody,
93
+ };
94
+ }
95
+
96
+ constructor(map?: { [key: string]: any }) {
97
+ super(map);
98
+ }
99
+ }
100
+
11
101
  export class CompanyFourElementsVerificationRequest extends $tea.Model {
12
102
  authCode?: string;
13
103
  epCertName?: string;
@@ -557,6 +647,99 @@ export class DescribePhoneNumberAnalysisAIResponse extends $tea.Model {
557
647
  }
558
648
  }
559
649
 
650
+ export class DescribePhoneNumberAnalysisTransparentRequest extends $tea.Model {
651
+ authCode?: string;
652
+ inputNumber?: string;
653
+ ip?: string;
654
+ numberType?: string;
655
+ ownerId?: number;
656
+ resourceOwnerAccount?: string;
657
+ resourceOwnerId?: number;
658
+ static names(): { [key: string]: string } {
659
+ return {
660
+ authCode: 'AuthCode',
661
+ inputNumber: 'InputNumber',
662
+ ip: 'Ip',
663
+ numberType: 'NumberType',
664
+ ownerId: 'OwnerId',
665
+ resourceOwnerAccount: 'ResourceOwnerAccount',
666
+ resourceOwnerId: 'ResourceOwnerId',
667
+ };
668
+ }
669
+
670
+ static types(): { [key: string]: any } {
671
+ return {
672
+ authCode: 'string',
673
+ inputNumber: 'string',
674
+ ip: 'string',
675
+ numberType: 'string',
676
+ ownerId: 'number',
677
+ resourceOwnerAccount: 'string',
678
+ resourceOwnerId: 'number',
679
+ };
680
+ }
681
+
682
+ constructor(map?: { [key: string]: any }) {
683
+ super(map);
684
+ }
685
+ }
686
+
687
+ export class DescribePhoneNumberAnalysisTransparentResponseBody extends $tea.Model {
688
+ accessDeniedDetail?: string;
689
+ code?: string;
690
+ data?: DescribePhoneNumberAnalysisTransparentResponseBodyData;
691
+ message?: string;
692
+ requestId?: string;
693
+ static names(): { [key: string]: string } {
694
+ return {
695
+ accessDeniedDetail: 'AccessDeniedDetail',
696
+ code: 'Code',
697
+ data: 'Data',
698
+ message: 'Message',
699
+ requestId: 'RequestId',
700
+ };
701
+ }
702
+
703
+ static types(): { [key: string]: any } {
704
+ return {
705
+ accessDeniedDetail: 'string',
706
+ code: 'string',
707
+ data: DescribePhoneNumberAnalysisTransparentResponseBodyData,
708
+ message: 'string',
709
+ requestId: 'string',
710
+ };
711
+ }
712
+
713
+ constructor(map?: { [key: string]: any }) {
714
+ super(map);
715
+ }
716
+ }
717
+
718
+ export class DescribePhoneNumberAnalysisTransparentResponse extends $tea.Model {
719
+ headers: { [key: string]: string };
720
+ statusCode: number;
721
+ body: DescribePhoneNumberAnalysisTransparentResponseBody;
722
+ static names(): { [key: string]: string } {
723
+ return {
724
+ headers: 'headers',
725
+ statusCode: 'statusCode',
726
+ body: 'body',
727
+ };
728
+ }
729
+
730
+ static types(): { [key: string]: any } {
731
+ return {
732
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
733
+ statusCode: 'number',
734
+ body: DescribePhoneNumberAnalysisTransparentResponseBody,
735
+ };
736
+ }
737
+
738
+ constructor(map?: { [key: string]: any }) {
739
+ super(map);
740
+ }
741
+ }
742
+
560
743
  export class DescribePhoneNumberAttributeRequest extends $tea.Model {
561
744
  ownerId?: number;
562
745
  phoneNumber?: string;
@@ -815,6 +998,96 @@ export class DescribePhoneNumberOperatorAttributeResponse extends $tea.Model {
815
998
  }
816
999
  }
817
1000
 
1001
+ export class DescribePhoneNumberRiskRequest extends $tea.Model {
1002
+ authCode?: string;
1003
+ inputNumber?: string;
1004
+ mask?: string;
1005
+ ownerId?: number;
1006
+ resourceOwnerAccount?: string;
1007
+ resourceOwnerId?: number;
1008
+ static names(): { [key: string]: string } {
1009
+ return {
1010
+ authCode: 'AuthCode',
1011
+ inputNumber: 'InputNumber',
1012
+ mask: 'Mask',
1013
+ ownerId: 'OwnerId',
1014
+ resourceOwnerAccount: 'ResourceOwnerAccount',
1015
+ resourceOwnerId: 'ResourceOwnerId',
1016
+ };
1017
+ }
1018
+
1019
+ static types(): { [key: string]: any } {
1020
+ return {
1021
+ authCode: 'string',
1022
+ inputNumber: 'string',
1023
+ mask: 'string',
1024
+ ownerId: 'number',
1025
+ resourceOwnerAccount: 'string',
1026
+ resourceOwnerId: 'number',
1027
+ };
1028
+ }
1029
+
1030
+ constructor(map?: { [key: string]: any }) {
1031
+ super(map);
1032
+ }
1033
+ }
1034
+
1035
+ export class DescribePhoneNumberRiskResponseBody extends $tea.Model {
1036
+ accessDeniedDetail?: string;
1037
+ code?: string;
1038
+ data?: DescribePhoneNumberRiskResponseBodyData;
1039
+ message?: string;
1040
+ requestId?: string;
1041
+ static names(): { [key: string]: string } {
1042
+ return {
1043
+ accessDeniedDetail: 'AccessDeniedDetail',
1044
+ code: 'Code',
1045
+ data: 'Data',
1046
+ message: 'Message',
1047
+ requestId: 'RequestId',
1048
+ };
1049
+ }
1050
+
1051
+ static types(): { [key: string]: any } {
1052
+ return {
1053
+ accessDeniedDetail: 'string',
1054
+ code: 'string',
1055
+ data: DescribePhoneNumberRiskResponseBodyData,
1056
+ message: 'string',
1057
+ requestId: 'string',
1058
+ };
1059
+ }
1060
+
1061
+ constructor(map?: { [key: string]: any }) {
1062
+ super(map);
1063
+ }
1064
+ }
1065
+
1066
+ export class DescribePhoneNumberRiskResponse extends $tea.Model {
1067
+ headers: { [key: string]: string };
1068
+ statusCode: number;
1069
+ body: DescribePhoneNumberRiskResponseBody;
1070
+ static names(): { [key: string]: string } {
1071
+ return {
1072
+ headers: 'headers',
1073
+ statusCode: 'statusCode',
1074
+ body: 'body',
1075
+ };
1076
+ }
1077
+
1078
+ static types(): { [key: string]: any } {
1079
+ return {
1080
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1081
+ statusCode: 'number',
1082
+ body: DescribePhoneNumberRiskResponseBody,
1083
+ };
1084
+ }
1085
+
1086
+ constructor(map?: { [key: string]: any }) {
1087
+ super(map);
1088
+ }
1089
+ }
1090
+
818
1091
  export class DescribePhoneTwiceTelVerifyRequest extends $tea.Model {
819
1092
  authCode?: string;
820
1093
  inputNumber?: string;
@@ -2516,6 +2789,25 @@ export class UAIDVerificationResponse extends $tea.Model {
2516
2789
  }
2517
2790
  }
2518
2791
 
2792
+ export class CertNoTwoElementVerificationResponseBodyData extends $tea.Model {
2793
+ isConsistent?: string;
2794
+ static names(): { [key: string]: string } {
2795
+ return {
2796
+ isConsistent: 'IsConsistent',
2797
+ };
2798
+ }
2799
+
2800
+ static types(): { [key: string]: any } {
2801
+ return {
2802
+ isConsistent: 'string',
2803
+ };
2804
+ }
2805
+
2806
+ constructor(map?: { [key: string]: any }) {
2807
+ super(map);
2808
+ }
2809
+ }
2810
+
2519
2811
  export class CompanyFourElementsVerificationResponseBodyDataDetailInfo extends $tea.Model {
2520
2812
  enterpriseStatus?: string;
2521
2813
  openTime?: string;
@@ -2751,6 +3043,37 @@ export class DescribePhoneNumberAnalysisAIResponseBodyData extends $tea.Model {
2751
3043
  }
2752
3044
  }
2753
3045
 
3046
+ export class DescribePhoneNumberAnalysisTransparentResponseBodyData extends $tea.Model {
3047
+ deviceRisk?: string;
3048
+ ipRisk?: string;
3049
+ score1?: string;
3050
+ score2?: string;
3051
+ score3?: string;
3052
+ static names(): { [key: string]: string } {
3053
+ return {
3054
+ deviceRisk: 'Device_risk',
3055
+ ipRisk: 'Ip_risk',
3056
+ score1: 'Score1',
3057
+ score2: 'Score2',
3058
+ score3: 'Score3',
3059
+ };
3060
+ }
3061
+
3062
+ static types(): { [key: string]: any } {
3063
+ return {
3064
+ deviceRisk: 'string',
3065
+ ipRisk: 'string',
3066
+ score1: 'string',
3067
+ score2: 'string',
3068
+ score3: 'string',
3069
+ };
3070
+ }
3071
+
3072
+ constructor(map?: { [key: string]: any }) {
3073
+ super(map);
3074
+ }
3075
+ }
3076
+
2754
3077
  export class DescribePhoneNumberAttributeResponseBodyPhoneNumberAttribute extends $tea.Model {
2755
3078
  basicCarrier?: string;
2756
3079
  carrier?: string;
@@ -2841,6 +3164,25 @@ export class DescribePhoneNumberOperatorAttributeResponseBodyData extends $tea.M
2841
3164
  }
2842
3165
  }
2843
3166
 
3167
+ export class DescribePhoneNumberRiskResponseBodyData extends $tea.Model {
3168
+ verifyResult?: string;
3169
+ static names(): { [key: string]: string } {
3170
+ return {
3171
+ verifyResult: 'VerifyResult',
3172
+ };
3173
+ }
3174
+
3175
+ static types(): { [key: string]: any } {
3176
+ return {
3177
+ verifyResult: 'string',
3178
+ };
3179
+ }
3180
+
3181
+ constructor(map?: { [key: string]: any }) {
3182
+ super(map);
3183
+ }
3184
+ }
3185
+
2844
3186
  export class DescribePhoneTwiceTelVerifyResponseBodyData extends $tea.Model {
2845
3187
  carrier?: string;
2846
3188
  verifyResult?: string;
@@ -3464,6 +3806,55 @@ export default class Client extends OpenApi {
3464
3806
  return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
3465
3807
  }
3466
3808
 
3809
+ async certNoTwoElementVerificationWithOptions(request: CertNoTwoElementVerificationRequest, runtime: $Util.RuntimeOptions): Promise<CertNoTwoElementVerificationResponse> {
3810
+ Util.validateModel(request);
3811
+ let query = { };
3812
+ if (!Util.isUnset(request.authCode)) {
3813
+ query["AuthCode"] = request.authCode;
3814
+ }
3815
+
3816
+ if (!Util.isUnset(request.certName)) {
3817
+ query["CertName"] = request.certName;
3818
+ }
3819
+
3820
+ if (!Util.isUnset(request.certNo)) {
3821
+ query["CertNo"] = request.certNo;
3822
+ }
3823
+
3824
+ if (!Util.isUnset(request.ownerId)) {
3825
+ query["OwnerId"] = request.ownerId;
3826
+ }
3827
+
3828
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
3829
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
3830
+ }
3831
+
3832
+ if (!Util.isUnset(request.resourceOwnerId)) {
3833
+ query["ResourceOwnerId"] = request.resourceOwnerId;
3834
+ }
3835
+
3836
+ let req = new $OpenApi.OpenApiRequest({
3837
+ query: OpenApiUtil.query(query),
3838
+ });
3839
+ let params = new $OpenApi.Params({
3840
+ action: "CertNoTwoElementVerification",
3841
+ version: "2020-02-17",
3842
+ protocol: "HTTPS",
3843
+ pathname: "/",
3844
+ method: "POST",
3845
+ authType: "AK",
3846
+ style: "RPC",
3847
+ reqBodyType: "formData",
3848
+ bodyType: "json",
3849
+ });
3850
+ return $tea.cast<CertNoTwoElementVerificationResponse>(await this.callApi(params, req, runtime), new CertNoTwoElementVerificationResponse({}));
3851
+ }
3852
+
3853
+ async certNoTwoElementVerification(request: CertNoTwoElementVerificationRequest): Promise<CertNoTwoElementVerificationResponse> {
3854
+ let runtime = new $Util.RuntimeOptions({ });
3855
+ return await this.certNoTwoElementVerificationWithOptions(request, runtime);
3856
+ }
3857
+
3467
3858
  /**
3468
3859
  * * Before you call this operation, make sure that you are familiar with the billing of services related to four-element verification for enterprises. For more information, see [Billing](https://help.aliyun.com/document_detail/154751.html?spm=a2c4g.154007.0.0.3edd7eb6E90YT4).
3469
3860
  * * You are charged only if the value of VerifyResult is true or false and the value of ReasonCode is 0, 1, or 2.
@@ -3873,6 +4264,59 @@ export default class Client extends OpenApi {
3873
4264
  return await this.describePhoneNumberAnalysisAIWithOptions(request, runtime);
3874
4265
  }
3875
4266
 
4267
+ async describePhoneNumberAnalysisTransparentWithOptions(request: DescribePhoneNumberAnalysisTransparentRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberAnalysisTransparentResponse> {
4268
+ Util.validateModel(request);
4269
+ let query = { };
4270
+ if (!Util.isUnset(request.authCode)) {
4271
+ query["AuthCode"] = request.authCode;
4272
+ }
4273
+
4274
+ if (!Util.isUnset(request.inputNumber)) {
4275
+ query["InputNumber"] = request.inputNumber;
4276
+ }
4277
+
4278
+ if (!Util.isUnset(request.ip)) {
4279
+ query["Ip"] = request.ip;
4280
+ }
4281
+
4282
+ if (!Util.isUnset(request.numberType)) {
4283
+ query["NumberType"] = request.numberType;
4284
+ }
4285
+
4286
+ if (!Util.isUnset(request.ownerId)) {
4287
+ query["OwnerId"] = request.ownerId;
4288
+ }
4289
+
4290
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
4291
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4292
+ }
4293
+
4294
+ if (!Util.isUnset(request.resourceOwnerId)) {
4295
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4296
+ }
4297
+
4298
+ let req = new $OpenApi.OpenApiRequest({
4299
+ query: OpenApiUtil.query(query),
4300
+ });
4301
+ let params = new $OpenApi.Params({
4302
+ action: "DescribePhoneNumberAnalysisTransparent",
4303
+ version: "2020-02-17",
4304
+ protocol: "HTTPS",
4305
+ pathname: "/",
4306
+ method: "POST",
4307
+ authType: "AK",
4308
+ style: "RPC",
4309
+ reqBodyType: "formData",
4310
+ bodyType: "json",
4311
+ });
4312
+ return $tea.cast<DescribePhoneNumberAnalysisTransparentResponse>(await this.callApi(params, req, runtime), new DescribePhoneNumberAnalysisTransparentResponse({}));
4313
+ }
4314
+
4315
+ async describePhoneNumberAnalysisTransparent(request: DescribePhoneNumberAnalysisTransparentRequest): Promise<DescribePhoneNumberAnalysisTransparentResponse> {
4316
+ let runtime = new $Util.RuntimeOptions({ });
4317
+ return await this.describePhoneNumberAnalysisTransparentWithOptions(request, runtime);
4318
+ }
4319
+
3876
4320
  /**
3877
4321
  * @deprecated : DescribePhoneNumberAttribute is deprecated, please use Dytnsapi::2020-02-17::DescribePhoneNumberOperatorAttribute instead.
3878
4322
  * * Before you call this operation, make sure that you are familiar with the [billing](~~154751~~) of Cell Phone Number Service.
@@ -4077,6 +4521,55 @@ export default class Client extends OpenApi {
4077
4521
  return await this.describePhoneNumberOperatorAttributeWithOptions(request, runtime);
4078
4522
  }
4079
4523
 
4524
+ async describePhoneNumberRiskWithOptions(request: DescribePhoneNumberRiskRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberRiskResponse> {
4525
+ Util.validateModel(request);
4526
+ let query = { };
4527
+ if (!Util.isUnset(request.authCode)) {
4528
+ query["AuthCode"] = request.authCode;
4529
+ }
4530
+
4531
+ if (!Util.isUnset(request.inputNumber)) {
4532
+ query["InputNumber"] = request.inputNumber;
4533
+ }
4534
+
4535
+ if (!Util.isUnset(request.mask)) {
4536
+ query["Mask"] = request.mask;
4537
+ }
4538
+
4539
+ if (!Util.isUnset(request.ownerId)) {
4540
+ query["OwnerId"] = request.ownerId;
4541
+ }
4542
+
4543
+ if (!Util.isUnset(request.resourceOwnerAccount)) {
4544
+ query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
4545
+ }
4546
+
4547
+ if (!Util.isUnset(request.resourceOwnerId)) {
4548
+ query["ResourceOwnerId"] = request.resourceOwnerId;
4549
+ }
4550
+
4551
+ let req = new $OpenApi.OpenApiRequest({
4552
+ query: OpenApiUtil.query(query),
4553
+ });
4554
+ let params = new $OpenApi.Params({
4555
+ action: "DescribePhoneNumberRisk",
4556
+ version: "2020-02-17",
4557
+ protocol: "HTTPS",
4558
+ pathname: "/",
4559
+ method: "POST",
4560
+ authType: "AK",
4561
+ style: "RPC",
4562
+ reqBodyType: "formData",
4563
+ bodyType: "json",
4564
+ });
4565
+ return $tea.cast<DescribePhoneNumberRiskResponse>(await this.callApi(params, req, runtime), new DescribePhoneNumberRiskResponse({}));
4566
+ }
4567
+
4568
+ async describePhoneNumberRisk(request: DescribePhoneNumberRiskRequest): Promise<DescribePhoneNumberRiskResponse> {
4569
+ let runtime = new $Util.RuntimeOptions({ });
4570
+ return await this.describePhoneNumberRiskWithOptions(request, runtime);
4571
+ }
4572
+
4080
4573
  /**
4081
4574
  * * Before you call this operation, make sure that you are familiar with the [billing](~~154751~~) of Cell Phone Number Service.
4082
4575
  * * You are charged for phone number verifications only if the value of Code is OK and the value of VerifyResult is not 0.