@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/dist/client.d.ts +194 -0
- package/dist/client.js +394 -0
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +493 -0
package/dist/client.d.ts
CHANGED
|
@@ -4,6 +4,55 @@
|
|
|
4
4
|
import * as $Util from '@alicloud/tea-util';
|
|
5
5
|
import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
|
|
6
6
|
import * as $tea from '@alicloud/tea-typescript';
|
|
7
|
+
export declare class CertNoTwoElementVerificationRequest extends $tea.Model {
|
|
8
|
+
authCode?: string;
|
|
9
|
+
certName?: string;
|
|
10
|
+
certNo?: string;
|
|
11
|
+
ownerId?: number;
|
|
12
|
+
resourceOwnerAccount?: string;
|
|
13
|
+
resourceOwnerId?: number;
|
|
14
|
+
static names(): {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
static types(): {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
constructor(map?: {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
export declare class CertNoTwoElementVerificationResponseBody extends $tea.Model {
|
|
25
|
+
accessDeniedDetail?: string;
|
|
26
|
+
code?: string;
|
|
27
|
+
data?: CertNoTwoElementVerificationResponseBodyData;
|
|
28
|
+
message?: string;
|
|
29
|
+
requestId?: string;
|
|
30
|
+
static names(): {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
static types(): {
|
|
34
|
+
[key: string]: any;
|
|
35
|
+
};
|
|
36
|
+
constructor(map?: {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export declare class CertNoTwoElementVerificationResponse extends $tea.Model {
|
|
41
|
+
headers: {
|
|
42
|
+
[key: string]: string;
|
|
43
|
+
};
|
|
44
|
+
statusCode: number;
|
|
45
|
+
body: CertNoTwoElementVerificationResponseBody;
|
|
46
|
+
static names(): {
|
|
47
|
+
[key: string]: string;
|
|
48
|
+
};
|
|
49
|
+
static types(): {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
constructor(map?: {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
});
|
|
55
|
+
}
|
|
7
56
|
export declare class CompanyFourElementsVerificationRequest extends $tea.Model {
|
|
8
57
|
authCode?: string;
|
|
9
58
|
epCertName?: string;
|
|
@@ -301,6 +350,56 @@ export declare class DescribePhoneNumberAnalysisAIResponse extends $tea.Model {
|
|
|
301
350
|
[key: string]: any;
|
|
302
351
|
});
|
|
303
352
|
}
|
|
353
|
+
export declare class DescribePhoneNumberAnalysisTransparentRequest extends $tea.Model {
|
|
354
|
+
authCode?: string;
|
|
355
|
+
inputNumber?: string;
|
|
356
|
+
ip?: string;
|
|
357
|
+
numberType?: string;
|
|
358
|
+
ownerId?: number;
|
|
359
|
+
resourceOwnerAccount?: string;
|
|
360
|
+
resourceOwnerId?: number;
|
|
361
|
+
static names(): {
|
|
362
|
+
[key: string]: string;
|
|
363
|
+
};
|
|
364
|
+
static types(): {
|
|
365
|
+
[key: string]: any;
|
|
366
|
+
};
|
|
367
|
+
constructor(map?: {
|
|
368
|
+
[key: string]: any;
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
export declare class DescribePhoneNumberAnalysisTransparentResponseBody extends $tea.Model {
|
|
372
|
+
accessDeniedDetail?: string;
|
|
373
|
+
code?: string;
|
|
374
|
+
data?: DescribePhoneNumberAnalysisTransparentResponseBodyData;
|
|
375
|
+
message?: string;
|
|
376
|
+
requestId?: string;
|
|
377
|
+
static names(): {
|
|
378
|
+
[key: string]: string;
|
|
379
|
+
};
|
|
380
|
+
static types(): {
|
|
381
|
+
[key: string]: any;
|
|
382
|
+
};
|
|
383
|
+
constructor(map?: {
|
|
384
|
+
[key: string]: any;
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
export declare class DescribePhoneNumberAnalysisTransparentResponse extends $tea.Model {
|
|
388
|
+
headers: {
|
|
389
|
+
[key: string]: string;
|
|
390
|
+
};
|
|
391
|
+
statusCode: number;
|
|
392
|
+
body: DescribePhoneNumberAnalysisTransparentResponseBody;
|
|
393
|
+
static names(): {
|
|
394
|
+
[key: string]: string;
|
|
395
|
+
};
|
|
396
|
+
static types(): {
|
|
397
|
+
[key: string]: any;
|
|
398
|
+
};
|
|
399
|
+
constructor(map?: {
|
|
400
|
+
[key: string]: any;
|
|
401
|
+
});
|
|
402
|
+
}
|
|
304
403
|
export declare class DescribePhoneNumberAttributeRequest extends $tea.Model {
|
|
305
404
|
ownerId?: number;
|
|
306
405
|
phoneNumber?: string;
|
|
@@ -444,6 +543,55 @@ export declare class DescribePhoneNumberOperatorAttributeResponse extends $tea.M
|
|
|
444
543
|
[key: string]: any;
|
|
445
544
|
});
|
|
446
545
|
}
|
|
546
|
+
export declare class DescribePhoneNumberRiskRequest extends $tea.Model {
|
|
547
|
+
authCode?: string;
|
|
548
|
+
inputNumber?: string;
|
|
549
|
+
mask?: string;
|
|
550
|
+
ownerId?: number;
|
|
551
|
+
resourceOwnerAccount?: string;
|
|
552
|
+
resourceOwnerId?: number;
|
|
553
|
+
static names(): {
|
|
554
|
+
[key: string]: string;
|
|
555
|
+
};
|
|
556
|
+
static types(): {
|
|
557
|
+
[key: string]: any;
|
|
558
|
+
};
|
|
559
|
+
constructor(map?: {
|
|
560
|
+
[key: string]: any;
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
export declare class DescribePhoneNumberRiskResponseBody extends $tea.Model {
|
|
564
|
+
accessDeniedDetail?: string;
|
|
565
|
+
code?: string;
|
|
566
|
+
data?: DescribePhoneNumberRiskResponseBodyData;
|
|
567
|
+
message?: string;
|
|
568
|
+
requestId?: string;
|
|
569
|
+
static names(): {
|
|
570
|
+
[key: string]: string;
|
|
571
|
+
};
|
|
572
|
+
static types(): {
|
|
573
|
+
[key: string]: any;
|
|
574
|
+
};
|
|
575
|
+
constructor(map?: {
|
|
576
|
+
[key: string]: any;
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
export declare class DescribePhoneNumberRiskResponse extends $tea.Model {
|
|
580
|
+
headers: {
|
|
581
|
+
[key: string]: string;
|
|
582
|
+
};
|
|
583
|
+
statusCode: number;
|
|
584
|
+
body: DescribePhoneNumberRiskResponseBody;
|
|
585
|
+
static names(): {
|
|
586
|
+
[key: string]: string;
|
|
587
|
+
};
|
|
588
|
+
static types(): {
|
|
589
|
+
[key: string]: any;
|
|
590
|
+
};
|
|
591
|
+
constructor(map?: {
|
|
592
|
+
[key: string]: any;
|
|
593
|
+
});
|
|
594
|
+
}
|
|
447
595
|
export declare class DescribePhoneTwiceTelVerifyRequest extends $tea.Model {
|
|
448
596
|
authCode?: string;
|
|
449
597
|
inputNumber?: string;
|
|
@@ -1372,6 +1520,18 @@ export declare class UAIDVerificationResponse extends $tea.Model {
|
|
|
1372
1520
|
[key: string]: any;
|
|
1373
1521
|
});
|
|
1374
1522
|
}
|
|
1523
|
+
export declare class CertNoTwoElementVerificationResponseBodyData extends $tea.Model {
|
|
1524
|
+
isConsistent?: string;
|
|
1525
|
+
static names(): {
|
|
1526
|
+
[key: string]: string;
|
|
1527
|
+
};
|
|
1528
|
+
static types(): {
|
|
1529
|
+
[key: string]: any;
|
|
1530
|
+
};
|
|
1531
|
+
constructor(map?: {
|
|
1532
|
+
[key: string]: any;
|
|
1533
|
+
});
|
|
1534
|
+
}
|
|
1375
1535
|
export declare class CompanyFourElementsVerificationResponseBodyDataDetailInfo extends $tea.Model {
|
|
1376
1536
|
enterpriseStatus?: string;
|
|
1377
1537
|
openTime?: string;
|
|
@@ -1507,6 +1667,22 @@ export declare class DescribePhoneNumberAnalysisAIResponseBodyData extends $tea.
|
|
|
1507
1667
|
[key: string]: any;
|
|
1508
1668
|
});
|
|
1509
1669
|
}
|
|
1670
|
+
export declare class DescribePhoneNumberAnalysisTransparentResponseBodyData extends $tea.Model {
|
|
1671
|
+
deviceRisk?: string;
|
|
1672
|
+
ipRisk?: string;
|
|
1673
|
+
score1?: string;
|
|
1674
|
+
score2?: string;
|
|
1675
|
+
score3?: string;
|
|
1676
|
+
static names(): {
|
|
1677
|
+
[key: string]: string;
|
|
1678
|
+
};
|
|
1679
|
+
static types(): {
|
|
1680
|
+
[key: string]: any;
|
|
1681
|
+
};
|
|
1682
|
+
constructor(map?: {
|
|
1683
|
+
[key: string]: any;
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1510
1686
|
export declare class DescribePhoneNumberAttributeResponseBodyPhoneNumberAttribute extends $tea.Model {
|
|
1511
1687
|
basicCarrier?: string;
|
|
1512
1688
|
carrier?: string;
|
|
@@ -1554,6 +1730,18 @@ export declare class DescribePhoneNumberOperatorAttributeResponseBodyData extend
|
|
|
1554
1730
|
[key: string]: any;
|
|
1555
1731
|
});
|
|
1556
1732
|
}
|
|
1733
|
+
export declare class DescribePhoneNumberRiskResponseBodyData extends $tea.Model {
|
|
1734
|
+
verifyResult?: string;
|
|
1735
|
+
static names(): {
|
|
1736
|
+
[key: string]: string;
|
|
1737
|
+
};
|
|
1738
|
+
static types(): {
|
|
1739
|
+
[key: string]: any;
|
|
1740
|
+
};
|
|
1741
|
+
constructor(map?: {
|
|
1742
|
+
[key: string]: any;
|
|
1743
|
+
});
|
|
1744
|
+
}
|
|
1557
1745
|
export declare class DescribePhoneTwiceTelVerifyResponseBodyData extends $tea.Model {
|
|
1558
1746
|
carrier?: string;
|
|
1559
1747
|
verifyResult?: string;
|
|
@@ -1878,6 +2066,8 @@ export default class Client extends OpenApi {
|
|
|
1878
2066
|
getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: {
|
|
1879
2067
|
[key: string]: string;
|
|
1880
2068
|
}, endpoint: string): string;
|
|
2069
|
+
certNoTwoElementVerificationWithOptions(request: CertNoTwoElementVerificationRequest, runtime: $Util.RuntimeOptions): Promise<CertNoTwoElementVerificationResponse>;
|
|
2070
|
+
certNoTwoElementVerification(request: CertNoTwoElementVerificationRequest): Promise<CertNoTwoElementVerificationResponse>;
|
|
1881
2071
|
/**
|
|
1882
2072
|
* * 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).
|
|
1883
2073
|
* * You are charged only if the value of VerifyResult is true or false and the value of ReasonCode is 0, 1, or 2.
|
|
@@ -1981,6 +2171,8 @@ export default class Client extends OpenApi {
|
|
|
1981
2171
|
* @return DescribePhoneNumberAnalysisAIResponse
|
|
1982
2172
|
*/
|
|
1983
2173
|
describePhoneNumberAnalysisAI(request: DescribePhoneNumberAnalysisAIRequest): Promise<DescribePhoneNumberAnalysisAIResponse>;
|
|
2174
|
+
describePhoneNumberAnalysisTransparentWithOptions(request: DescribePhoneNumberAnalysisTransparentRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberAnalysisTransparentResponse>;
|
|
2175
|
+
describePhoneNumberAnalysisTransparent(request: DescribePhoneNumberAnalysisTransparentRequest): Promise<DescribePhoneNumberAnalysisTransparentResponse>;
|
|
1984
2176
|
/**
|
|
1985
2177
|
* @deprecated : DescribePhoneNumberAttribute is deprecated, please use Dytnsapi::2020-02-17::DescribePhoneNumberOperatorAttribute instead.
|
|
1986
2178
|
* * Before you call this operation, make sure that you are familiar with the [billing](~~154751~~) of Cell Phone Number Service.
|
|
@@ -2046,6 +2238,8 @@ export default class Client extends OpenApi {
|
|
|
2046
2238
|
* @return DescribePhoneNumberOperatorAttributeResponse
|
|
2047
2239
|
*/
|
|
2048
2240
|
describePhoneNumberOperatorAttribute(request: DescribePhoneNumberOperatorAttributeRequest): Promise<DescribePhoneNumberOperatorAttributeResponse>;
|
|
2241
|
+
describePhoneNumberRiskWithOptions(request: DescribePhoneNumberRiskRequest, runtime: $Util.RuntimeOptions): Promise<DescribePhoneNumberRiskResponse>;
|
|
2242
|
+
describePhoneNumberRisk(request: DescribePhoneNumberRiskRequest): Promise<DescribePhoneNumberRiskResponse>;
|
|
2049
2243
|
/**
|
|
2050
2244
|
* * Before you call this operation, make sure that you are familiar with the [billing](~~154751~~) of Cell Phone Number Service.
|
|
2051
2245
|
* * You are charged for phone number verifications only if the value of Code is OK and the value of VerifyResult is not 0.
|
package/dist/client.js
CHANGED
|
@@ -19,6 +19,76 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
|
|
|
19
19
|
const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
|
|
20
20
|
const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
|
|
21
21
|
const $tea = __importStar(require("@alicloud/tea-typescript"));
|
|
22
|
+
class CertNoTwoElementVerificationRequest extends $tea.Model {
|
|
23
|
+
constructor(map) {
|
|
24
|
+
super(map);
|
|
25
|
+
}
|
|
26
|
+
static names() {
|
|
27
|
+
return {
|
|
28
|
+
authCode: 'AuthCode',
|
|
29
|
+
certName: 'CertName',
|
|
30
|
+
certNo: 'CertNo',
|
|
31
|
+
ownerId: 'OwnerId',
|
|
32
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
33
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
static types() {
|
|
37
|
+
return {
|
|
38
|
+
authCode: 'string',
|
|
39
|
+
certName: 'string',
|
|
40
|
+
certNo: 'string',
|
|
41
|
+
ownerId: 'number',
|
|
42
|
+
resourceOwnerAccount: 'string',
|
|
43
|
+
resourceOwnerId: 'number',
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.CertNoTwoElementVerificationRequest = CertNoTwoElementVerificationRequest;
|
|
48
|
+
class CertNoTwoElementVerificationResponseBody extends $tea.Model {
|
|
49
|
+
constructor(map) {
|
|
50
|
+
super(map);
|
|
51
|
+
}
|
|
52
|
+
static names() {
|
|
53
|
+
return {
|
|
54
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
55
|
+
code: 'Code',
|
|
56
|
+
data: 'Data',
|
|
57
|
+
message: 'Message',
|
|
58
|
+
requestId: 'RequestId',
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
static types() {
|
|
62
|
+
return {
|
|
63
|
+
accessDeniedDetail: 'string',
|
|
64
|
+
code: 'string',
|
|
65
|
+
data: CertNoTwoElementVerificationResponseBodyData,
|
|
66
|
+
message: 'string',
|
|
67
|
+
requestId: 'string',
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.CertNoTwoElementVerificationResponseBody = CertNoTwoElementVerificationResponseBody;
|
|
72
|
+
class CertNoTwoElementVerificationResponse extends $tea.Model {
|
|
73
|
+
constructor(map) {
|
|
74
|
+
super(map);
|
|
75
|
+
}
|
|
76
|
+
static names() {
|
|
77
|
+
return {
|
|
78
|
+
headers: 'headers',
|
|
79
|
+
statusCode: 'statusCode',
|
|
80
|
+
body: 'body',
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
static types() {
|
|
84
|
+
return {
|
|
85
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
86
|
+
statusCode: 'number',
|
|
87
|
+
body: CertNoTwoElementVerificationResponseBody,
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.CertNoTwoElementVerificationResponse = CertNoTwoElementVerificationResponse;
|
|
22
92
|
class CompanyFourElementsVerificationRequest extends $tea.Model {
|
|
23
93
|
constructor(map) {
|
|
24
94
|
super(map);
|
|
@@ -445,6 +515,78 @@ class DescribePhoneNumberAnalysisAIResponse extends $tea.Model {
|
|
|
445
515
|
}
|
|
446
516
|
}
|
|
447
517
|
exports.DescribePhoneNumberAnalysisAIResponse = DescribePhoneNumberAnalysisAIResponse;
|
|
518
|
+
class DescribePhoneNumberAnalysisTransparentRequest extends $tea.Model {
|
|
519
|
+
constructor(map) {
|
|
520
|
+
super(map);
|
|
521
|
+
}
|
|
522
|
+
static names() {
|
|
523
|
+
return {
|
|
524
|
+
authCode: 'AuthCode',
|
|
525
|
+
inputNumber: 'InputNumber',
|
|
526
|
+
ip: 'Ip',
|
|
527
|
+
numberType: 'NumberType',
|
|
528
|
+
ownerId: 'OwnerId',
|
|
529
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
530
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
static types() {
|
|
534
|
+
return {
|
|
535
|
+
authCode: 'string',
|
|
536
|
+
inputNumber: 'string',
|
|
537
|
+
ip: 'string',
|
|
538
|
+
numberType: 'string',
|
|
539
|
+
ownerId: 'number',
|
|
540
|
+
resourceOwnerAccount: 'string',
|
|
541
|
+
resourceOwnerId: 'number',
|
|
542
|
+
};
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
exports.DescribePhoneNumberAnalysisTransparentRequest = DescribePhoneNumberAnalysisTransparentRequest;
|
|
546
|
+
class DescribePhoneNumberAnalysisTransparentResponseBody extends $tea.Model {
|
|
547
|
+
constructor(map) {
|
|
548
|
+
super(map);
|
|
549
|
+
}
|
|
550
|
+
static names() {
|
|
551
|
+
return {
|
|
552
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
553
|
+
code: 'Code',
|
|
554
|
+
data: 'Data',
|
|
555
|
+
message: 'Message',
|
|
556
|
+
requestId: 'RequestId',
|
|
557
|
+
};
|
|
558
|
+
}
|
|
559
|
+
static types() {
|
|
560
|
+
return {
|
|
561
|
+
accessDeniedDetail: 'string',
|
|
562
|
+
code: 'string',
|
|
563
|
+
data: DescribePhoneNumberAnalysisTransparentResponseBodyData,
|
|
564
|
+
message: 'string',
|
|
565
|
+
requestId: 'string',
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
exports.DescribePhoneNumberAnalysisTransparentResponseBody = DescribePhoneNumberAnalysisTransparentResponseBody;
|
|
570
|
+
class DescribePhoneNumberAnalysisTransparentResponse extends $tea.Model {
|
|
571
|
+
constructor(map) {
|
|
572
|
+
super(map);
|
|
573
|
+
}
|
|
574
|
+
static names() {
|
|
575
|
+
return {
|
|
576
|
+
headers: 'headers',
|
|
577
|
+
statusCode: 'statusCode',
|
|
578
|
+
body: 'body',
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
static types() {
|
|
582
|
+
return {
|
|
583
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
584
|
+
statusCode: 'number',
|
|
585
|
+
body: DescribePhoneNumberAnalysisTransparentResponseBody,
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
exports.DescribePhoneNumberAnalysisTransparentResponse = DescribePhoneNumberAnalysisTransparentResponse;
|
|
448
590
|
class DescribePhoneNumberAttributeRequest extends $tea.Model {
|
|
449
591
|
constructor(map) {
|
|
450
592
|
super(map);
|
|
@@ -647,6 +789,76 @@ class DescribePhoneNumberOperatorAttributeResponse extends $tea.Model {
|
|
|
647
789
|
}
|
|
648
790
|
}
|
|
649
791
|
exports.DescribePhoneNumberOperatorAttributeResponse = DescribePhoneNumberOperatorAttributeResponse;
|
|
792
|
+
class DescribePhoneNumberRiskRequest extends $tea.Model {
|
|
793
|
+
constructor(map) {
|
|
794
|
+
super(map);
|
|
795
|
+
}
|
|
796
|
+
static names() {
|
|
797
|
+
return {
|
|
798
|
+
authCode: 'AuthCode',
|
|
799
|
+
inputNumber: 'InputNumber',
|
|
800
|
+
mask: 'Mask',
|
|
801
|
+
ownerId: 'OwnerId',
|
|
802
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
803
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
static types() {
|
|
807
|
+
return {
|
|
808
|
+
authCode: 'string',
|
|
809
|
+
inputNumber: 'string',
|
|
810
|
+
mask: 'string',
|
|
811
|
+
ownerId: 'number',
|
|
812
|
+
resourceOwnerAccount: 'string',
|
|
813
|
+
resourceOwnerId: 'number',
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
exports.DescribePhoneNumberRiskRequest = DescribePhoneNumberRiskRequest;
|
|
818
|
+
class DescribePhoneNumberRiskResponseBody extends $tea.Model {
|
|
819
|
+
constructor(map) {
|
|
820
|
+
super(map);
|
|
821
|
+
}
|
|
822
|
+
static names() {
|
|
823
|
+
return {
|
|
824
|
+
accessDeniedDetail: 'AccessDeniedDetail',
|
|
825
|
+
code: 'Code',
|
|
826
|
+
data: 'Data',
|
|
827
|
+
message: 'Message',
|
|
828
|
+
requestId: 'RequestId',
|
|
829
|
+
};
|
|
830
|
+
}
|
|
831
|
+
static types() {
|
|
832
|
+
return {
|
|
833
|
+
accessDeniedDetail: 'string',
|
|
834
|
+
code: 'string',
|
|
835
|
+
data: DescribePhoneNumberRiskResponseBodyData,
|
|
836
|
+
message: 'string',
|
|
837
|
+
requestId: 'string',
|
|
838
|
+
};
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
exports.DescribePhoneNumberRiskResponseBody = DescribePhoneNumberRiskResponseBody;
|
|
842
|
+
class DescribePhoneNumberRiskResponse extends $tea.Model {
|
|
843
|
+
constructor(map) {
|
|
844
|
+
super(map);
|
|
845
|
+
}
|
|
846
|
+
static names() {
|
|
847
|
+
return {
|
|
848
|
+
headers: 'headers',
|
|
849
|
+
statusCode: 'statusCode',
|
|
850
|
+
body: 'body',
|
|
851
|
+
};
|
|
852
|
+
}
|
|
853
|
+
static types() {
|
|
854
|
+
return {
|
|
855
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
856
|
+
statusCode: 'number',
|
|
857
|
+
body: DescribePhoneNumberRiskResponseBody,
|
|
858
|
+
};
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
exports.DescribePhoneNumberRiskResponse = DescribePhoneNumberRiskResponse;
|
|
650
862
|
class DescribePhoneTwiceTelVerifyRequest extends $tea.Model {
|
|
651
863
|
constructor(map) {
|
|
652
864
|
super(map);
|
|
@@ -1971,6 +2183,22 @@ class UAIDVerificationResponse extends $tea.Model {
|
|
|
1971
2183
|
}
|
|
1972
2184
|
}
|
|
1973
2185
|
exports.UAIDVerificationResponse = UAIDVerificationResponse;
|
|
2186
|
+
class CertNoTwoElementVerificationResponseBodyData extends $tea.Model {
|
|
2187
|
+
constructor(map) {
|
|
2188
|
+
super(map);
|
|
2189
|
+
}
|
|
2190
|
+
static names() {
|
|
2191
|
+
return {
|
|
2192
|
+
isConsistent: 'IsConsistent',
|
|
2193
|
+
};
|
|
2194
|
+
}
|
|
2195
|
+
static types() {
|
|
2196
|
+
return {
|
|
2197
|
+
isConsistent: 'string',
|
|
2198
|
+
};
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
exports.CertNoTwoElementVerificationResponseBodyData = CertNoTwoElementVerificationResponseBodyData;
|
|
1974
2202
|
class CompanyFourElementsVerificationResponseBodyDataDetailInfo extends $tea.Model {
|
|
1975
2203
|
constructor(map) {
|
|
1976
2204
|
super(map);
|
|
@@ -2161,6 +2389,30 @@ class DescribePhoneNumberAnalysisAIResponseBodyData extends $tea.Model {
|
|
|
2161
2389
|
}
|
|
2162
2390
|
}
|
|
2163
2391
|
exports.DescribePhoneNumberAnalysisAIResponseBodyData = DescribePhoneNumberAnalysisAIResponseBodyData;
|
|
2392
|
+
class DescribePhoneNumberAnalysisTransparentResponseBodyData extends $tea.Model {
|
|
2393
|
+
constructor(map) {
|
|
2394
|
+
super(map);
|
|
2395
|
+
}
|
|
2396
|
+
static names() {
|
|
2397
|
+
return {
|
|
2398
|
+
deviceRisk: 'Device_risk',
|
|
2399
|
+
ipRisk: 'Ip_risk',
|
|
2400
|
+
score1: 'Score1',
|
|
2401
|
+
score2: 'Score2',
|
|
2402
|
+
score3: 'Score3',
|
|
2403
|
+
};
|
|
2404
|
+
}
|
|
2405
|
+
static types() {
|
|
2406
|
+
return {
|
|
2407
|
+
deviceRisk: 'string',
|
|
2408
|
+
ipRisk: 'string',
|
|
2409
|
+
score1: 'string',
|
|
2410
|
+
score2: 'string',
|
|
2411
|
+
score3: 'string',
|
|
2412
|
+
};
|
|
2413
|
+
}
|
|
2414
|
+
}
|
|
2415
|
+
exports.DescribePhoneNumberAnalysisTransparentResponseBodyData = DescribePhoneNumberAnalysisTransparentResponseBodyData;
|
|
2164
2416
|
class DescribePhoneNumberAttributeResponseBodyPhoneNumberAttribute extends $tea.Model {
|
|
2165
2417
|
constructor(map) {
|
|
2166
2418
|
super(map);
|
|
@@ -2231,6 +2483,22 @@ class DescribePhoneNumberOperatorAttributeResponseBodyData extends $tea.Model {
|
|
|
2231
2483
|
}
|
|
2232
2484
|
}
|
|
2233
2485
|
exports.DescribePhoneNumberOperatorAttributeResponseBodyData = DescribePhoneNumberOperatorAttributeResponseBodyData;
|
|
2486
|
+
class DescribePhoneNumberRiskResponseBodyData extends $tea.Model {
|
|
2487
|
+
constructor(map) {
|
|
2488
|
+
super(map);
|
|
2489
|
+
}
|
|
2490
|
+
static names() {
|
|
2491
|
+
return {
|
|
2492
|
+
verifyResult: 'VerifyResult',
|
|
2493
|
+
};
|
|
2494
|
+
}
|
|
2495
|
+
static types() {
|
|
2496
|
+
return {
|
|
2497
|
+
verifyResult: 'string',
|
|
2498
|
+
};
|
|
2499
|
+
}
|
|
2500
|
+
}
|
|
2501
|
+
exports.DescribePhoneNumberRiskResponseBodyData = DescribePhoneNumberRiskResponseBodyData;
|
|
2234
2502
|
class DescribePhoneTwiceTelVerifyResponseBodyData extends $tea.Model {
|
|
2235
2503
|
constructor(map) {
|
|
2236
2504
|
super(map);
|
|
@@ -2717,6 +2985,47 @@ class Client extends openapi_client_1.default {
|
|
|
2717
2985
|
}
|
|
2718
2986
|
return endpoint_util_1.default.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
2719
2987
|
}
|
|
2988
|
+
async certNoTwoElementVerificationWithOptions(request, runtime) {
|
|
2989
|
+
tea_util_1.default.validateModel(request);
|
|
2990
|
+
let query = {};
|
|
2991
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
2992
|
+
query["AuthCode"] = request.authCode;
|
|
2993
|
+
}
|
|
2994
|
+
if (!tea_util_1.default.isUnset(request.certName)) {
|
|
2995
|
+
query["CertName"] = request.certName;
|
|
2996
|
+
}
|
|
2997
|
+
if (!tea_util_1.default.isUnset(request.certNo)) {
|
|
2998
|
+
query["CertNo"] = request.certNo;
|
|
2999
|
+
}
|
|
3000
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
3001
|
+
query["OwnerId"] = request.ownerId;
|
|
3002
|
+
}
|
|
3003
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
3004
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3005
|
+
}
|
|
3006
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
3007
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3008
|
+
}
|
|
3009
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3010
|
+
query: openapi_util_1.default.query(query),
|
|
3011
|
+
});
|
|
3012
|
+
let params = new $OpenApi.Params({
|
|
3013
|
+
action: "CertNoTwoElementVerification",
|
|
3014
|
+
version: "2020-02-17",
|
|
3015
|
+
protocol: "HTTPS",
|
|
3016
|
+
pathname: "/",
|
|
3017
|
+
method: "POST",
|
|
3018
|
+
authType: "AK",
|
|
3019
|
+
style: "RPC",
|
|
3020
|
+
reqBodyType: "formData",
|
|
3021
|
+
bodyType: "json",
|
|
3022
|
+
});
|
|
3023
|
+
return $tea.cast(await this.callApi(params, req, runtime), new CertNoTwoElementVerificationResponse({}));
|
|
3024
|
+
}
|
|
3025
|
+
async certNoTwoElementVerification(request) {
|
|
3026
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3027
|
+
return await this.certNoTwoElementVerificationWithOptions(request, runtime);
|
|
3028
|
+
}
|
|
2720
3029
|
/**
|
|
2721
3030
|
* * 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).
|
|
2722
3031
|
* * You are charged only if the value of VerifyResult is true or false and the value of ReasonCode is 0, 1, or 2.
|
|
@@ -3072,6 +3381,50 @@ class Client extends openapi_client_1.default {
|
|
|
3072
3381
|
let runtime = new $Util.RuntimeOptions({});
|
|
3073
3382
|
return await this.describePhoneNumberAnalysisAIWithOptions(request, runtime);
|
|
3074
3383
|
}
|
|
3384
|
+
async describePhoneNumberAnalysisTransparentWithOptions(request, runtime) {
|
|
3385
|
+
tea_util_1.default.validateModel(request);
|
|
3386
|
+
let query = {};
|
|
3387
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
3388
|
+
query["AuthCode"] = request.authCode;
|
|
3389
|
+
}
|
|
3390
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
3391
|
+
query["InputNumber"] = request.inputNumber;
|
|
3392
|
+
}
|
|
3393
|
+
if (!tea_util_1.default.isUnset(request.ip)) {
|
|
3394
|
+
query["Ip"] = request.ip;
|
|
3395
|
+
}
|
|
3396
|
+
if (!tea_util_1.default.isUnset(request.numberType)) {
|
|
3397
|
+
query["NumberType"] = request.numberType;
|
|
3398
|
+
}
|
|
3399
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
3400
|
+
query["OwnerId"] = request.ownerId;
|
|
3401
|
+
}
|
|
3402
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
3403
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3404
|
+
}
|
|
3405
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
3406
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3407
|
+
}
|
|
3408
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3409
|
+
query: openapi_util_1.default.query(query),
|
|
3410
|
+
});
|
|
3411
|
+
let params = new $OpenApi.Params({
|
|
3412
|
+
action: "DescribePhoneNumberAnalysisTransparent",
|
|
3413
|
+
version: "2020-02-17",
|
|
3414
|
+
protocol: "HTTPS",
|
|
3415
|
+
pathname: "/",
|
|
3416
|
+
method: "POST",
|
|
3417
|
+
authType: "AK",
|
|
3418
|
+
style: "RPC",
|
|
3419
|
+
reqBodyType: "formData",
|
|
3420
|
+
bodyType: "json",
|
|
3421
|
+
});
|
|
3422
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePhoneNumberAnalysisTransparentResponse({}));
|
|
3423
|
+
}
|
|
3424
|
+
async describePhoneNumberAnalysisTransparent(request) {
|
|
3425
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3426
|
+
return await this.describePhoneNumberAnalysisTransparentWithOptions(request, runtime);
|
|
3427
|
+
}
|
|
3075
3428
|
/**
|
|
3076
3429
|
* @deprecated : DescribePhoneNumberAttribute is deprecated, please use Dytnsapi::2020-02-17::DescribePhoneNumberOperatorAttribute instead.
|
|
3077
3430
|
* * Before you call this operation, make sure that you are familiar with the [billing](~~154751~~) of Cell Phone Number Service.
|
|
@@ -3253,6 +3606,47 @@ class Client extends openapi_client_1.default {
|
|
|
3253
3606
|
let runtime = new $Util.RuntimeOptions({});
|
|
3254
3607
|
return await this.describePhoneNumberOperatorAttributeWithOptions(request, runtime);
|
|
3255
3608
|
}
|
|
3609
|
+
async describePhoneNumberRiskWithOptions(request, runtime) {
|
|
3610
|
+
tea_util_1.default.validateModel(request);
|
|
3611
|
+
let query = {};
|
|
3612
|
+
if (!tea_util_1.default.isUnset(request.authCode)) {
|
|
3613
|
+
query["AuthCode"] = request.authCode;
|
|
3614
|
+
}
|
|
3615
|
+
if (!tea_util_1.default.isUnset(request.inputNumber)) {
|
|
3616
|
+
query["InputNumber"] = request.inputNumber;
|
|
3617
|
+
}
|
|
3618
|
+
if (!tea_util_1.default.isUnset(request.mask)) {
|
|
3619
|
+
query["Mask"] = request.mask;
|
|
3620
|
+
}
|
|
3621
|
+
if (!tea_util_1.default.isUnset(request.ownerId)) {
|
|
3622
|
+
query["OwnerId"] = request.ownerId;
|
|
3623
|
+
}
|
|
3624
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerAccount)) {
|
|
3625
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
3626
|
+
}
|
|
3627
|
+
if (!tea_util_1.default.isUnset(request.resourceOwnerId)) {
|
|
3628
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
3629
|
+
}
|
|
3630
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
3631
|
+
query: openapi_util_1.default.query(query),
|
|
3632
|
+
});
|
|
3633
|
+
let params = new $OpenApi.Params({
|
|
3634
|
+
action: "DescribePhoneNumberRisk",
|
|
3635
|
+
version: "2020-02-17",
|
|
3636
|
+
protocol: "HTTPS",
|
|
3637
|
+
pathname: "/",
|
|
3638
|
+
method: "POST",
|
|
3639
|
+
authType: "AK",
|
|
3640
|
+
style: "RPC",
|
|
3641
|
+
reqBodyType: "formData",
|
|
3642
|
+
bodyType: "json",
|
|
3643
|
+
});
|
|
3644
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribePhoneNumberRiskResponse({}));
|
|
3645
|
+
}
|
|
3646
|
+
async describePhoneNumberRisk(request) {
|
|
3647
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
3648
|
+
return await this.describePhoneNumberRiskWithOptions(request, runtime);
|
|
3649
|
+
}
|
|
3256
3650
|
/**
|
|
3257
3651
|
* * Before you call this operation, make sure that you are familiar with the [billing](~~154751~~) of Cell Phone Number Service.
|
|
3258
3652
|
* * You are charged for phone number verifications only if the value of Code is OK and the value of VerifyResult is not 0.
|