tencentcloud-sdk-nodejs 4.0.449 → 4.0.450
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/CHANGELOG.md +141 -0
- package/SERVICE_CHANGELOG.md +193 -107
- package/package.json +1 -1
- package/products.md +9 -8
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cfg/v20210820/cfg_models.ts +12 -0
- package/src/services/es/v20180416/es_models.ts +6 -0
- package/src/services/essbasic/v20210526/essbasic_models.ts +2 -2
- package/src/services/index.ts +1 -0
- package/src/services/monitor/v20180724/monitor_client.ts +4 -1
- package/src/services/monitor/v20180724/monitor_models.ts +137 -7
- package/src/services/tcm/v20210413/tcm_client.ts +1 -0
- package/src/services/tcm/v20210413/tcm_models.ts +11 -0
- package/src/services/tcr/v20190924/tcr_models.ts +3 -3
- package/src/services/tds/index.ts +5 -0
- package/src/services/tds/v20220801/index.ts +6 -0
- package/src/services/tds/v20220801/tds_client.ts +68 -0
- package/src/services/tds/v20220801/tds_models.ts +256 -0
- package/src/services/tke/v20180525/tke_models.ts +2 -2
- package/src/services/vpc/v20170312/vpc_models.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +10 -0
- package/tencentcloud/services/es/v20180416/es_models.d.ts +5 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +2 -2
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +1 -1
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +115 -7
- package/tencentcloud/services/tcm/v20210413/tcm_models.d.ts +9 -0
- package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +3 -3
- package/tencentcloud/services/tds/index.d.ts +6 -0
- package/tencentcloud/services/tds/index.js +7 -0
- package/tencentcloud/services/tds/v20220801/index.d.ts +6 -0
- package/tencentcloud/services/tds/v20220801/index.js +9 -0
- package/tencentcloud/services/tds/v20220801/tds_client.d.ts +22 -0
- package/tencentcloud/services/tds/v20220801/tds_client.js +49 -0
- package/tencentcloud/services/tds/v20220801/tds_models.d.ts +199 -0
- package/tencentcloud/services/tds/v20220801/tds_models.js +18 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +1 -1
- package/test/tds.v20220801.test.js +51 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { DescribeFraudBaseRequest, DescribeFraudPremiumResponse, DescribeTrustedIDResponse, DescribeFraudBaseResponse, DescribeTrustedIDRequest, DescribeFraudPremiumRequest } from "./tds_models";
|
|
4
|
+
/**
|
|
5
|
+
* tds client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 查询设备风险
|
|
12
|
+
*/
|
|
13
|
+
DescribeFraudBase(req: DescribeFraudBaseRequest, cb?: (error: string, rep: DescribeFraudBaseResponse) => void): Promise<DescribeFraudBaseResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* 查询设备标识
|
|
16
|
+
*/
|
|
17
|
+
DescribeTrustedID(req: DescribeTrustedIDRequest, cb?: (error: string, rep: DescribeTrustedIDResponse) => void): Promise<DescribeTrustedIDResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* 查询设备标识及风险
|
|
20
|
+
*/
|
|
21
|
+
DescribeFraudPremium(req: DescribeFraudPremiumRequest, cb?: (error: string, rep: DescribeFraudPremiumResponse) => void): Promise<DescribeFraudPremiumResponse>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* tds client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("tds.tencentcloudapi.com", "2022-08-01", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 查询设备风险
|
|
32
|
+
*/
|
|
33
|
+
async DescribeFraudBase(req, cb) {
|
|
34
|
+
return this.request("DescribeFraudBase", req, cb);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 查询设备标识
|
|
38
|
+
*/
|
|
39
|
+
async DescribeTrustedID(req, cb) {
|
|
40
|
+
return this.request("DescribeTrustedID", req, cb);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 查询设备标识及风险
|
|
44
|
+
*/
|
|
45
|
+
async DescribeFraudPremium(req, cb) {
|
|
46
|
+
return this.request("DescribeFraudPremium", req, cb);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DescribeFraudBase请求参数结构体
|
|
3
|
+
*/
|
|
4
|
+
export interface DescribeFraudBaseRequest {
|
|
5
|
+
/**
|
|
6
|
+
* 客户端通过SDK获取的设备Token
|
|
7
|
+
*/
|
|
8
|
+
DeviceToken: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 风险信息
|
|
12
|
+
*/
|
|
13
|
+
export interface RiskInfo {
|
|
14
|
+
/**
|
|
15
|
+
* 风险类型
|
|
16
|
+
*/
|
|
17
|
+
Type: number;
|
|
18
|
+
/**
|
|
19
|
+
* 风险等级
|
|
20
|
+
*/
|
|
21
|
+
Level: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* DescribeFraudPremium返回参数结构体
|
|
25
|
+
*/
|
|
26
|
+
export interface DescribeFraudPremiumResponse {
|
|
27
|
+
/**
|
|
28
|
+
* App版本信息
|
|
29
|
+
*/
|
|
30
|
+
AppVersion: string;
|
|
31
|
+
/**
|
|
32
|
+
* 品牌
|
|
33
|
+
*/
|
|
34
|
+
Brand: string;
|
|
35
|
+
/**
|
|
36
|
+
* 客户端IP
|
|
37
|
+
*/
|
|
38
|
+
ClientIp: string;
|
|
39
|
+
/**
|
|
40
|
+
* 机型
|
|
41
|
+
*/
|
|
42
|
+
Model: string;
|
|
43
|
+
/**
|
|
44
|
+
* 网络类型
|
|
45
|
+
*/
|
|
46
|
+
NetworkType: string;
|
|
47
|
+
/**
|
|
48
|
+
* 应用包名
|
|
49
|
+
*/
|
|
50
|
+
PackageName: string;
|
|
51
|
+
/**
|
|
52
|
+
* 平台(2-Android,3-iOS,4-H5,5-微信小程序)
|
|
53
|
+
*/
|
|
54
|
+
Platform: string;
|
|
55
|
+
/**
|
|
56
|
+
* 系统版本
|
|
57
|
+
*/
|
|
58
|
+
SystemVersion: string;
|
|
59
|
+
/**
|
|
60
|
+
* SDK版本号
|
|
61
|
+
*/
|
|
62
|
+
SdkBuildNo: string;
|
|
63
|
+
/**
|
|
64
|
+
* 实时风险信息
|
|
65
|
+
*/
|
|
66
|
+
RiskInfos: Array<RiskInfo>;
|
|
67
|
+
/**
|
|
68
|
+
* 离线风险信息
|
|
69
|
+
*/
|
|
70
|
+
HistRiskInfos: Array<RiskInfo>;
|
|
71
|
+
/**
|
|
72
|
+
* 设备匿名标识
|
|
73
|
+
*/
|
|
74
|
+
Openid: string;
|
|
75
|
+
/**
|
|
76
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
77
|
+
*/
|
|
78
|
+
RequestId?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* DescribeTrustedID返回参数结构体
|
|
82
|
+
*/
|
|
83
|
+
export interface DescribeTrustedIDResponse {
|
|
84
|
+
/**
|
|
85
|
+
* 设备匿名标识
|
|
86
|
+
*/
|
|
87
|
+
Openid: string;
|
|
88
|
+
/**
|
|
89
|
+
* App版本信息
|
|
90
|
+
*/
|
|
91
|
+
AppVersion: string;
|
|
92
|
+
/**
|
|
93
|
+
* 品牌
|
|
94
|
+
*/
|
|
95
|
+
Brand: string;
|
|
96
|
+
/**
|
|
97
|
+
* 客户端IP
|
|
98
|
+
*/
|
|
99
|
+
ClientIp: string;
|
|
100
|
+
/**
|
|
101
|
+
* 机型
|
|
102
|
+
*/
|
|
103
|
+
Model: string;
|
|
104
|
+
/**
|
|
105
|
+
* 网络类型
|
|
106
|
+
*/
|
|
107
|
+
NetworkType: string;
|
|
108
|
+
/**
|
|
109
|
+
* 应用包名
|
|
110
|
+
*/
|
|
111
|
+
PackageName: string;
|
|
112
|
+
/**
|
|
113
|
+
* 平台(2-Android,3-iOS,4-H5,5-微信小程序)
|
|
114
|
+
*/
|
|
115
|
+
Platform: string;
|
|
116
|
+
/**
|
|
117
|
+
* 系统版本
|
|
118
|
+
*/
|
|
119
|
+
SystemVersion: string;
|
|
120
|
+
/**
|
|
121
|
+
* SDK版本号
|
|
122
|
+
*/
|
|
123
|
+
SdkBuildNo: string;
|
|
124
|
+
/**
|
|
125
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
126
|
+
*/
|
|
127
|
+
RequestId?: string;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* DescribeFraudBase返回参数结构体
|
|
131
|
+
*/
|
|
132
|
+
export interface DescribeFraudBaseResponse {
|
|
133
|
+
/**
|
|
134
|
+
* App版本信息
|
|
135
|
+
*/
|
|
136
|
+
AppVersion: string;
|
|
137
|
+
/**
|
|
138
|
+
* 品牌
|
|
139
|
+
*/
|
|
140
|
+
Brand: string;
|
|
141
|
+
/**
|
|
142
|
+
* 客户端IP
|
|
143
|
+
*/
|
|
144
|
+
ClientIp: string;
|
|
145
|
+
/**
|
|
146
|
+
* 机型
|
|
147
|
+
*/
|
|
148
|
+
Model: string;
|
|
149
|
+
/**
|
|
150
|
+
* 网络类型
|
|
151
|
+
*/
|
|
152
|
+
NetworkType: string;
|
|
153
|
+
/**
|
|
154
|
+
* 应用包名
|
|
155
|
+
*/
|
|
156
|
+
PackageName: string;
|
|
157
|
+
/**
|
|
158
|
+
* 平台(2-Android,3-iOS,4-H5,5-微信小程序)
|
|
159
|
+
*/
|
|
160
|
+
Platform: string;
|
|
161
|
+
/**
|
|
162
|
+
* 系统版本
|
|
163
|
+
*/
|
|
164
|
+
SystemVersion: string;
|
|
165
|
+
/**
|
|
166
|
+
* SDK版本号
|
|
167
|
+
*/
|
|
168
|
+
SdkBuildNo: string;
|
|
169
|
+
/**
|
|
170
|
+
* 实时风险信息
|
|
171
|
+
*/
|
|
172
|
+
RiskInfos: Array<RiskInfo>;
|
|
173
|
+
/**
|
|
174
|
+
* 离线风险信息
|
|
175
|
+
*/
|
|
176
|
+
HistRiskInfos: Array<RiskInfo>;
|
|
177
|
+
/**
|
|
178
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
179
|
+
*/
|
|
180
|
+
RequestId?: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* DescribeTrustedID请求参数结构体
|
|
184
|
+
*/
|
|
185
|
+
export interface DescribeTrustedIDRequest {
|
|
186
|
+
/**
|
|
187
|
+
* 客户端通过SDK获取的设备Token
|
|
188
|
+
*/
|
|
189
|
+
DeviceToken: string;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* DescribeFraudPremium请求参数结构体
|
|
193
|
+
*/
|
|
194
|
+
export interface DescribeFraudPremiumRequest {
|
|
195
|
+
/**
|
|
196
|
+
* 客户端通过SDK获取的设备Token
|
|
197
|
+
*/
|
|
198
|
+
DeviceToken: string;
|
|
199
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -7419,7 +7419,7 @@ export interface AutoUpgradeClusterLevel {
|
|
|
7419
7419
|
*/
|
|
7420
7420
|
export interface CreateEKSClusterRequest {
|
|
7421
7421
|
/**
|
|
7422
|
-
* k8s版本号。可为1.
|
|
7422
|
+
* k8s版本号。可为1.18.4 1.20.6。
|
|
7423
7423
|
*/
|
|
7424
7424
|
K8SVersion: string;
|
|
7425
7425
|
/**
|
|
@@ -7439,7 +7439,7 @@ export interface CreateEKSClusterRequest {
|
|
|
7439
7439
|
*/
|
|
7440
7440
|
ClusterDesc?: string;
|
|
7441
7441
|
/**
|
|
7442
|
-
* Serivce 所在子网Id
|
|
7442
|
+
* Service CIDR 或 Serivce 所在子网Id
|
|
7443
7443
|
*/
|
|
7444
7444
|
ServiceSubnetId?: string;
|
|
7445
7445
|
/**
|
|
@@ -9249,7 +9249,7 @@ export interface Address {
|
|
|
9249
9249
|
*/
|
|
9250
9250
|
IsEipDirectConnection: boolean;
|
|
9251
9251
|
/**
|
|
9252
|
-
* EIP 资源类型,包括CalcIP、WanIP、EIP和AnycastEIP
|
|
9252
|
+
* EIP 资源类型,包括CalcIP、WanIP、EIP和AnycastEIP、高防EIP。其中:`CalcIP` 表示设备 IP,`WanIP` 表示普通公网 IP,`EIP` 表示弹性公网 IP,`AnycastEip` 表示加速 EIP,`AntiDDoSEIP`表示高防EIP。
|
|
9253
9253
|
*/
|
|
9254
9254
|
AddressType: string;
|
|
9255
9255
|
/**
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.tds.v20220801.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("tds.v20220801.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("tds.v20220801.DescribeFraudBase", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeFraudBase({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("tds.v20220801.DescribeTrustedID", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DescribeTrustedID({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("tds.v20220801.DescribeFraudPremium", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeFraudPremium({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
})
|