@alicloud/cloudauth20190307 2.2.2 → 2.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/dist/client.d.ts +125 -60
- package/dist/client.js +151 -2
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +230 -60
package/src/client.ts
CHANGED
|
@@ -13,6 +13,96 @@ import EndpointUtil from '@alicloud/endpoint-util';
|
|
|
13
13
|
import { Readable } from 'stream';
|
|
14
14
|
import * as $tea from '@alicloud/tea-typescript';
|
|
15
15
|
|
|
16
|
+
export class AIGCFaceVerifyRequest extends $tea.Model {
|
|
17
|
+
faceContrastPicture?: string;
|
|
18
|
+
faceContrastPictureUrl?: string;
|
|
19
|
+
ossBucketName?: string;
|
|
20
|
+
ossObjectName?: string;
|
|
21
|
+
outerOrderNo?: string;
|
|
22
|
+
productCode?: string;
|
|
23
|
+
sceneId?: number;
|
|
24
|
+
static names(): { [key: string]: string } {
|
|
25
|
+
return {
|
|
26
|
+
faceContrastPicture: 'FaceContrastPicture',
|
|
27
|
+
faceContrastPictureUrl: 'FaceContrastPictureUrl',
|
|
28
|
+
ossBucketName: 'OssBucketName',
|
|
29
|
+
ossObjectName: 'OssObjectName',
|
|
30
|
+
outerOrderNo: 'OuterOrderNo',
|
|
31
|
+
productCode: 'ProductCode',
|
|
32
|
+
sceneId: 'SceneId',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
static types(): { [key: string]: any } {
|
|
37
|
+
return {
|
|
38
|
+
faceContrastPicture: 'string',
|
|
39
|
+
faceContrastPictureUrl: 'string',
|
|
40
|
+
ossBucketName: 'string',
|
|
41
|
+
ossObjectName: 'string',
|
|
42
|
+
outerOrderNo: 'string',
|
|
43
|
+
productCode: 'string',
|
|
44
|
+
sceneId: 'number',
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
constructor(map?: { [key: string]: any }) {
|
|
49
|
+
super(map);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class AIGCFaceVerifyResponseBody extends $tea.Model {
|
|
54
|
+
code?: string;
|
|
55
|
+
message?: string;
|
|
56
|
+
requestId?: string;
|
|
57
|
+
resultObject?: AIGCFaceVerifyResponseBodyResultObject;
|
|
58
|
+
static names(): { [key: string]: string } {
|
|
59
|
+
return {
|
|
60
|
+
code: 'Code',
|
|
61
|
+
message: 'Message',
|
|
62
|
+
requestId: 'RequestId',
|
|
63
|
+
resultObject: 'ResultObject',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
code: 'string',
|
|
70
|
+
message: 'string',
|
|
71
|
+
requestId: 'string',
|
|
72
|
+
resultObject: AIGCFaceVerifyResponseBodyResultObject,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
constructor(map?: { [key: string]: any }) {
|
|
77
|
+
super(map);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export class AIGCFaceVerifyResponse extends $tea.Model {
|
|
82
|
+
headers?: { [key: string]: string };
|
|
83
|
+
statusCode?: number;
|
|
84
|
+
body?: AIGCFaceVerifyResponseBody;
|
|
85
|
+
static names(): { [key: string]: string } {
|
|
86
|
+
return {
|
|
87
|
+
headers: 'headers',
|
|
88
|
+
statusCode: 'statusCode',
|
|
89
|
+
body: 'body',
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
static types(): { [key: string]: any } {
|
|
94
|
+
return {
|
|
95
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
96
|
+
statusCode: 'number',
|
|
97
|
+
body: AIGCFaceVerifyResponseBody,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
constructor(map?: { [key: string]: any }) {
|
|
102
|
+
super(map);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
16
106
|
export class CompareFaceVerifyRequest extends $tea.Model {
|
|
17
107
|
crop?: string;
|
|
18
108
|
outerOrderNo?: string;
|
|
@@ -100,9 +190,9 @@ export class CompareFaceVerifyResponseBody extends $tea.Model {
|
|
|
100
190
|
}
|
|
101
191
|
|
|
102
192
|
export class CompareFaceVerifyResponse extends $tea.Model {
|
|
103
|
-
headers
|
|
104
|
-
statusCode
|
|
105
|
-
body
|
|
193
|
+
headers?: { [key: string]: string };
|
|
194
|
+
statusCode?: number;
|
|
195
|
+
body?: CompareFaceVerifyResponseBody;
|
|
106
196
|
static names(): { [key: string]: string } {
|
|
107
197
|
return {
|
|
108
198
|
headers: 'headers',
|
|
@@ -184,9 +274,9 @@ export class CompareFacesResponseBody extends $tea.Model {
|
|
|
184
274
|
}
|
|
185
275
|
|
|
186
276
|
export class CompareFacesResponse extends $tea.Model {
|
|
187
|
-
headers
|
|
188
|
-
statusCode
|
|
189
|
-
body
|
|
277
|
+
headers?: { [key: string]: string };
|
|
278
|
+
statusCode?: number;
|
|
279
|
+
body?: CompareFacesResponseBody;
|
|
190
280
|
static names(): { [key: string]: string } {
|
|
191
281
|
return {
|
|
192
282
|
headers: 'headers',
|
|
@@ -383,9 +473,9 @@ export class ContrastFaceVerifyResponseBody extends $tea.Model {
|
|
|
383
473
|
}
|
|
384
474
|
|
|
385
475
|
export class ContrastFaceVerifyResponse extends $tea.Model {
|
|
386
|
-
headers
|
|
387
|
-
statusCode
|
|
388
|
-
body
|
|
476
|
+
headers?: { [key: string]: string };
|
|
477
|
+
statusCode?: number;
|
|
478
|
+
body?: ContrastFaceVerifyResponseBody;
|
|
389
479
|
static names(): { [key: string]: string } {
|
|
390
480
|
return {
|
|
391
481
|
headers: 'headers',
|
|
@@ -458,9 +548,9 @@ export class CreateAuthKeyResponseBody extends $tea.Model {
|
|
|
458
548
|
}
|
|
459
549
|
|
|
460
550
|
export class CreateAuthKeyResponse extends $tea.Model {
|
|
461
|
-
headers
|
|
462
|
-
statusCode
|
|
463
|
-
body
|
|
551
|
+
headers?: { [key: string]: string };
|
|
552
|
+
statusCode?: number;
|
|
553
|
+
body?: CreateAuthKeyResponseBody;
|
|
464
554
|
static names(): { [key: string]: string } {
|
|
465
555
|
return {
|
|
466
556
|
headers: 'headers',
|
|
@@ -548,9 +638,9 @@ export class CreateVerifySettingResponseBody extends $tea.Model {
|
|
|
548
638
|
}
|
|
549
639
|
|
|
550
640
|
export class CreateVerifySettingResponse extends $tea.Model {
|
|
551
|
-
headers
|
|
552
|
-
statusCode
|
|
553
|
-
body
|
|
641
|
+
headers?: { [key: string]: string };
|
|
642
|
+
statusCode?: number;
|
|
643
|
+
body?: CreateVerifySettingResponseBody;
|
|
554
644
|
static names(): { [key: string]: string } {
|
|
555
645
|
return {
|
|
556
646
|
headers: 'headers',
|
|
@@ -641,9 +731,9 @@ export class DescribeDeviceInfoResponseBody extends $tea.Model {
|
|
|
641
731
|
}
|
|
642
732
|
|
|
643
733
|
export class DescribeDeviceInfoResponse extends $tea.Model {
|
|
644
|
-
headers
|
|
645
|
-
statusCode
|
|
646
|
-
body
|
|
734
|
+
headers?: { [key: string]: string };
|
|
735
|
+
statusCode?: number;
|
|
736
|
+
body?: DescribeDeviceInfoResponseBody;
|
|
647
737
|
static names(): { [key: string]: string } {
|
|
648
738
|
return {
|
|
649
739
|
headers: 'headers',
|
|
@@ -719,9 +809,9 @@ export class DescribeFaceVerifyResponseBody extends $tea.Model {
|
|
|
719
809
|
}
|
|
720
810
|
|
|
721
811
|
export class DescribeFaceVerifyResponse extends $tea.Model {
|
|
722
|
-
headers
|
|
723
|
-
statusCode
|
|
724
|
-
body
|
|
812
|
+
headers?: { [key: string]: string };
|
|
813
|
+
statusCode?: number;
|
|
814
|
+
body?: DescribeFaceVerifyResponseBody;
|
|
725
815
|
static names(): { [key: string]: string } {
|
|
726
816
|
return {
|
|
727
817
|
headers: 'headers',
|
|
@@ -766,9 +856,9 @@ export class DescribeOssUploadTokenResponseBody extends $tea.Model {
|
|
|
766
856
|
}
|
|
767
857
|
|
|
768
858
|
export class DescribeOssUploadTokenResponse extends $tea.Model {
|
|
769
|
-
headers
|
|
770
|
-
statusCode
|
|
771
|
-
body
|
|
859
|
+
headers?: { [key: string]: string };
|
|
860
|
+
statusCode?: number;
|
|
861
|
+
body?: DescribeOssUploadTokenResponseBody;
|
|
772
862
|
static names(): { [key: string]: string } {
|
|
773
863
|
return {
|
|
774
864
|
headers: 'headers',
|
|
@@ -859,9 +949,9 @@ export class DescribeSmartStatisticsPageListResponseBody extends $tea.Model {
|
|
|
859
949
|
}
|
|
860
950
|
|
|
861
951
|
export class DescribeSmartStatisticsPageListResponse extends $tea.Model {
|
|
862
|
-
headers
|
|
863
|
-
statusCode
|
|
864
|
-
body
|
|
952
|
+
headers?: { [key: string]: string };
|
|
953
|
+
statusCode?: number;
|
|
954
|
+
body?: DescribeSmartStatisticsPageListResponseBody;
|
|
865
955
|
static names(): { [key: string]: string } {
|
|
866
956
|
return {
|
|
867
957
|
headers: 'headers',
|
|
@@ -940,9 +1030,9 @@ export class DescribeVerifyResultResponseBody extends $tea.Model {
|
|
|
940
1030
|
}
|
|
941
1031
|
|
|
942
1032
|
export class DescribeVerifyResultResponse extends $tea.Model {
|
|
943
|
-
headers
|
|
944
|
-
statusCode
|
|
945
|
-
body
|
|
1033
|
+
headers?: { [key: string]: string };
|
|
1034
|
+
statusCode?: number;
|
|
1035
|
+
body?: DescribeVerifyResultResponseBody;
|
|
946
1036
|
static names(): { [key: string]: string } {
|
|
947
1037
|
return {
|
|
948
1038
|
headers: 'headers',
|
|
@@ -1006,9 +1096,9 @@ export class DescribeVerifySDKResponseBody extends $tea.Model {
|
|
|
1006
1096
|
}
|
|
1007
1097
|
|
|
1008
1098
|
export class DescribeVerifySDKResponse extends $tea.Model {
|
|
1009
|
-
headers
|
|
1010
|
-
statusCode
|
|
1011
|
-
body
|
|
1099
|
+
headers?: { [key: string]: string };
|
|
1100
|
+
statusCode?: number;
|
|
1101
|
+
body?: DescribeVerifySDKResponseBody;
|
|
1012
1102
|
static names(): { [key: string]: string } {
|
|
1013
1103
|
return {
|
|
1014
1104
|
headers: 'headers',
|
|
@@ -1120,9 +1210,9 @@ export class DescribeVerifyTokenResponseBody extends $tea.Model {
|
|
|
1120
1210
|
}
|
|
1121
1211
|
|
|
1122
1212
|
export class DescribeVerifyTokenResponse extends $tea.Model {
|
|
1123
|
-
headers
|
|
1124
|
-
statusCode
|
|
1125
|
-
body
|
|
1213
|
+
headers?: { [key: string]: string };
|
|
1214
|
+
statusCode?: number;
|
|
1215
|
+
body?: DescribeVerifyTokenResponseBody;
|
|
1126
1216
|
static names(): { [key: string]: string } {
|
|
1127
1217
|
return {
|
|
1128
1218
|
headers: 'headers',
|
|
@@ -1198,9 +1288,9 @@ export class DetectFaceAttributesResponseBody extends $tea.Model {
|
|
|
1198
1288
|
}
|
|
1199
1289
|
|
|
1200
1290
|
export class DetectFaceAttributesResponse extends $tea.Model {
|
|
1201
|
-
headers
|
|
1202
|
-
statusCode
|
|
1203
|
-
body
|
|
1291
|
+
headers?: { [key: string]: string };
|
|
1292
|
+
statusCode?: number;
|
|
1293
|
+
body?: DetectFaceAttributesResponseBody;
|
|
1204
1294
|
static names(): { [key: string]: string } {
|
|
1205
1295
|
return {
|
|
1206
1296
|
headers: 'headers',
|
|
@@ -1276,9 +1366,9 @@ export class Id2MetaVerifyResponseBody extends $tea.Model {
|
|
|
1276
1366
|
}
|
|
1277
1367
|
|
|
1278
1368
|
export class Id2MetaVerifyResponse extends $tea.Model {
|
|
1279
|
-
headers
|
|
1280
|
-
statusCode
|
|
1281
|
-
body
|
|
1369
|
+
headers?: { [key: string]: string };
|
|
1370
|
+
statusCode?: number;
|
|
1371
|
+
body?: Id2MetaVerifyResponseBody;
|
|
1282
1372
|
static names(): { [key: string]: string } {
|
|
1283
1373
|
return {
|
|
1284
1374
|
headers: 'headers',
|
|
@@ -1444,9 +1534,9 @@ export class InitFaceVerifyResponseBody extends $tea.Model {
|
|
|
1444
1534
|
}
|
|
1445
1535
|
|
|
1446
1536
|
export class InitFaceVerifyResponse extends $tea.Model {
|
|
1447
|
-
headers
|
|
1448
|
-
statusCode
|
|
1449
|
-
body
|
|
1537
|
+
headers?: { [key: string]: string };
|
|
1538
|
+
statusCode?: number;
|
|
1539
|
+
body?: InitFaceVerifyResponseBody;
|
|
1450
1540
|
static names(): { [key: string]: string } {
|
|
1451
1541
|
return {
|
|
1452
1542
|
headers: 'headers',
|
|
@@ -1555,9 +1645,9 @@ export class LivenessFaceVerifyResponseBody extends $tea.Model {
|
|
|
1555
1645
|
}
|
|
1556
1646
|
|
|
1557
1647
|
export class LivenessFaceVerifyResponse extends $tea.Model {
|
|
1558
|
-
headers
|
|
1559
|
-
statusCode
|
|
1560
|
-
body
|
|
1648
|
+
headers?: { [key: string]: string };
|
|
1649
|
+
statusCode?: number;
|
|
1650
|
+
body?: LivenessFaceVerifyResponseBody;
|
|
1561
1651
|
static names(): { [key: string]: string } {
|
|
1562
1652
|
return {
|
|
1563
1653
|
headers: 'headers',
|
|
@@ -1636,9 +1726,9 @@ export class Mobile3MetaDetailVerifyResponseBody extends $tea.Model {
|
|
|
1636
1726
|
}
|
|
1637
1727
|
|
|
1638
1728
|
export class Mobile3MetaDetailVerifyResponse extends $tea.Model {
|
|
1639
|
-
headers
|
|
1640
|
-
statusCode
|
|
1641
|
-
body
|
|
1729
|
+
headers?: { [key: string]: string };
|
|
1730
|
+
statusCode?: number;
|
|
1731
|
+
body?: Mobile3MetaDetailVerifyResponseBody;
|
|
1642
1732
|
static names(): { [key: string]: string } {
|
|
1643
1733
|
return {
|
|
1644
1734
|
headers: 'headers',
|
|
@@ -1717,9 +1807,9 @@ export class Mobile3MetaSimpleVerifyResponseBody extends $tea.Model {
|
|
|
1717
1807
|
}
|
|
1718
1808
|
|
|
1719
1809
|
export class Mobile3MetaSimpleVerifyResponse extends $tea.Model {
|
|
1720
|
-
headers
|
|
1721
|
-
statusCode
|
|
1722
|
-
body
|
|
1810
|
+
headers?: { [key: string]: string };
|
|
1811
|
+
statusCode?: number;
|
|
1812
|
+
body?: Mobile3MetaSimpleVerifyResponseBody;
|
|
1723
1813
|
static names(): { [key: string]: string } {
|
|
1724
1814
|
return {
|
|
1725
1815
|
headers: 'headers',
|
|
@@ -1807,9 +1897,9 @@ export class ModifyDeviceInfoResponseBody extends $tea.Model {
|
|
|
1807
1897
|
}
|
|
1808
1898
|
|
|
1809
1899
|
export class ModifyDeviceInfoResponse extends $tea.Model {
|
|
1810
|
-
headers
|
|
1811
|
-
statusCode
|
|
1812
|
-
body
|
|
1900
|
+
headers?: { [key: string]: string };
|
|
1901
|
+
statusCode?: number;
|
|
1902
|
+
body?: ModifyDeviceInfoResponseBody;
|
|
1813
1903
|
static names(): { [key: string]: string } {
|
|
1814
1904
|
return {
|
|
1815
1905
|
headers: 'headers',
|
|
@@ -1906,9 +1996,9 @@ export class VerifyMaterialResponseBody extends $tea.Model {
|
|
|
1906
1996
|
}
|
|
1907
1997
|
|
|
1908
1998
|
export class VerifyMaterialResponse extends $tea.Model {
|
|
1909
|
-
headers
|
|
1910
|
-
statusCode
|
|
1911
|
-
body
|
|
1999
|
+
headers?: { [key: string]: string };
|
|
2000
|
+
statusCode?: number;
|
|
2001
|
+
body?: VerifyMaterialResponseBody;
|
|
1912
2002
|
static names(): { [key: string]: string } {
|
|
1913
2003
|
return {
|
|
1914
2004
|
headers: 'headers',
|
|
@@ -1930,6 +2020,31 @@ export class VerifyMaterialResponse extends $tea.Model {
|
|
|
1930
2020
|
}
|
|
1931
2021
|
}
|
|
1932
2022
|
|
|
2023
|
+
export class AIGCFaceVerifyResponseBodyResultObject extends $tea.Model {
|
|
2024
|
+
certifyId?: string;
|
|
2025
|
+
result?: string;
|
|
2026
|
+
score?: string;
|
|
2027
|
+
static names(): { [key: string]: string } {
|
|
2028
|
+
return {
|
|
2029
|
+
certifyId: 'CertifyId',
|
|
2030
|
+
result: 'Result',
|
|
2031
|
+
score: 'Score',
|
|
2032
|
+
};
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
static types(): { [key: string]: any } {
|
|
2036
|
+
return {
|
|
2037
|
+
certifyId: 'string',
|
|
2038
|
+
result: 'string',
|
|
2039
|
+
score: 'string',
|
|
2040
|
+
};
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
constructor(map?: { [key: string]: any }) {
|
|
2044
|
+
super(map);
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
|
|
1933
2048
|
export class CompareFaceVerifyResponseBodyResultObject extends $tea.Model {
|
|
1934
2049
|
certifyId?: string;
|
|
1935
2050
|
passed?: string;
|
|
@@ -2698,6 +2813,61 @@ export default class Client extends OpenApi {
|
|
|
2698
2813
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
2699
2814
|
}
|
|
2700
2815
|
|
|
2816
|
+
async aIGCFaceVerifyWithOptions(request: AIGCFaceVerifyRequest, runtime: $Util.RuntimeOptions): Promise<AIGCFaceVerifyResponse> {
|
|
2817
|
+
Util.validateModel(request);
|
|
2818
|
+
let query = { };
|
|
2819
|
+
if (!Util.isUnset(request.faceContrastPictureUrl)) {
|
|
2820
|
+
query["FaceContrastPictureUrl"] = request.faceContrastPictureUrl;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
if (!Util.isUnset(request.ossBucketName)) {
|
|
2824
|
+
query["OssBucketName"] = request.ossBucketName;
|
|
2825
|
+
}
|
|
2826
|
+
|
|
2827
|
+
if (!Util.isUnset(request.ossObjectName)) {
|
|
2828
|
+
query["OssObjectName"] = request.ossObjectName;
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
if (!Util.isUnset(request.outerOrderNo)) {
|
|
2832
|
+
query["OuterOrderNo"] = request.outerOrderNo;
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
if (!Util.isUnset(request.productCode)) {
|
|
2836
|
+
query["ProductCode"] = request.productCode;
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
if (!Util.isUnset(request.sceneId)) {
|
|
2840
|
+
query["SceneId"] = request.sceneId;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
let body : {[key: string ]: any} = { };
|
|
2844
|
+
if (!Util.isUnset(request.faceContrastPicture)) {
|
|
2845
|
+
body["FaceContrastPicture"] = request.faceContrastPicture;
|
|
2846
|
+
}
|
|
2847
|
+
|
|
2848
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
2849
|
+
query: OpenApiUtil.query(query),
|
|
2850
|
+
body: OpenApiUtil.parseToMap(body),
|
|
2851
|
+
});
|
|
2852
|
+
let params = new $OpenApi.Params({
|
|
2853
|
+
action: "AIGCFaceVerify",
|
|
2854
|
+
version: "2019-03-07",
|
|
2855
|
+
protocol: "HTTPS",
|
|
2856
|
+
pathname: "/",
|
|
2857
|
+
method: "POST",
|
|
2858
|
+
authType: "AK",
|
|
2859
|
+
style: "RPC",
|
|
2860
|
+
reqBodyType: "formData",
|
|
2861
|
+
bodyType: "json",
|
|
2862
|
+
});
|
|
2863
|
+
return $tea.cast<AIGCFaceVerifyResponse>(await this.callApi(params, req, runtime), new AIGCFaceVerifyResponse({}));
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
async aIGCFaceVerify(request: AIGCFaceVerifyRequest): Promise<AIGCFaceVerifyResponse> {
|
|
2867
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
2868
|
+
return await this.aIGCFaceVerifyWithOptions(request, runtime);
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2701
2871
|
async compareFaceVerifyWithOptions(request: CompareFaceVerifyRequest, runtime: $Util.RuntimeOptions): Promise<CompareFaceVerifyResponse> {
|
|
2702
2872
|
Util.validateModel(request);
|
|
2703
2873
|
let body : {[key: string ]: any} = { };
|