tencentcloud-sdk-nodejs-tds 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.
@@ -0,0 +1,256 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * DescribeFraudBase请求参数结构体
20
+ */
21
+ export interface DescribeFraudBaseRequest {
22
+ /**
23
+ * 客户端通过SDK获取的设备Token
24
+ */
25
+ DeviceToken: string
26
+ }
27
+
28
+ /**
29
+ * 风险信息
30
+ */
31
+ export interface RiskInfo {
32
+ /**
33
+ * 风险类型
34
+ */
35
+ Type: number
36
+
37
+ /**
38
+ * 风险等级
39
+ */
40
+ Level: number
41
+ }
42
+
43
+ /**
44
+ * DescribeFraudPremium返回参数结构体
45
+ */
46
+ export interface DescribeFraudPremiumResponse {
47
+ /**
48
+ * App版本信息
49
+ */
50
+ AppVersion: string
51
+
52
+ /**
53
+ * 品牌
54
+ */
55
+ Brand: string
56
+
57
+ /**
58
+ * 客户端IP
59
+ */
60
+ ClientIp: string
61
+
62
+ /**
63
+ * 机型
64
+ */
65
+ Model: string
66
+
67
+ /**
68
+ * 网络类型
69
+ */
70
+ NetworkType: string
71
+
72
+ /**
73
+ * 应用包名
74
+ */
75
+ PackageName: string
76
+
77
+ /**
78
+ * 平台(2-Android,3-iOS,4-H5,5-微信小程序)
79
+ */
80
+ Platform: string
81
+
82
+ /**
83
+ * 系统版本
84
+ */
85
+ SystemVersion: string
86
+
87
+ /**
88
+ * SDK版本号
89
+ */
90
+ SdkBuildNo: string
91
+
92
+ /**
93
+ * 实时风险信息
94
+ */
95
+ RiskInfos: Array<RiskInfo>
96
+
97
+ /**
98
+ * 离线风险信息
99
+ */
100
+ HistRiskInfos: Array<RiskInfo>
101
+
102
+ /**
103
+ * 设备匿名标识
104
+ */
105
+ Openid: string
106
+
107
+ /**
108
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
109
+ */
110
+ RequestId?: string
111
+ }
112
+
113
+ /**
114
+ * DescribeTrustedID返回参数结构体
115
+ */
116
+ export interface DescribeTrustedIDResponse {
117
+ /**
118
+ * 设备匿名标识
119
+ */
120
+ Openid: string
121
+
122
+ /**
123
+ * App版本信息
124
+ */
125
+ AppVersion: string
126
+
127
+ /**
128
+ * 品牌
129
+ */
130
+ Brand: string
131
+
132
+ /**
133
+ * 客户端IP
134
+ */
135
+ ClientIp: string
136
+
137
+ /**
138
+ * 机型
139
+ */
140
+ Model: string
141
+
142
+ /**
143
+ * 网络类型
144
+ */
145
+ NetworkType: string
146
+
147
+ /**
148
+ * 应用包名
149
+ */
150
+ PackageName: string
151
+
152
+ /**
153
+ * 平台(2-Android,3-iOS,4-H5,5-微信小程序)
154
+ */
155
+ Platform: string
156
+
157
+ /**
158
+ * 系统版本
159
+ */
160
+ SystemVersion: string
161
+
162
+ /**
163
+ * SDK版本号
164
+ */
165
+ SdkBuildNo: string
166
+
167
+ /**
168
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
169
+ */
170
+ RequestId?: string
171
+ }
172
+
173
+ /**
174
+ * DescribeFraudBase返回参数结构体
175
+ */
176
+ export interface DescribeFraudBaseResponse {
177
+ /**
178
+ * App版本信息
179
+ */
180
+ AppVersion: string
181
+
182
+ /**
183
+ * 品牌
184
+ */
185
+ Brand: string
186
+
187
+ /**
188
+ * 客户端IP
189
+ */
190
+ ClientIp: string
191
+
192
+ /**
193
+ * 机型
194
+ */
195
+ Model: string
196
+
197
+ /**
198
+ * 网络类型
199
+ */
200
+ NetworkType: string
201
+
202
+ /**
203
+ * 应用包名
204
+ */
205
+ PackageName: string
206
+
207
+ /**
208
+ * 平台(2-Android,3-iOS,4-H5,5-微信小程序)
209
+ */
210
+ Platform: string
211
+
212
+ /**
213
+ * 系统版本
214
+ */
215
+ SystemVersion: string
216
+
217
+ /**
218
+ * SDK版本号
219
+ */
220
+ SdkBuildNo: string
221
+
222
+ /**
223
+ * 实时风险信息
224
+ */
225
+ RiskInfos: Array<RiskInfo>
226
+
227
+ /**
228
+ * 离线风险信息
229
+ */
230
+ HistRiskInfos: Array<RiskInfo>
231
+
232
+ /**
233
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
234
+ */
235
+ RequestId?: string
236
+ }
237
+
238
+ /**
239
+ * DescribeTrustedID请求参数结构体
240
+ */
241
+ export interface DescribeTrustedIDRequest {
242
+ /**
243
+ * 客户端通过SDK获取的设备Token
244
+ */
245
+ DeviceToken: string
246
+ }
247
+
248
+ /**
249
+ * DescribeFraudPremium请求参数结构体
250
+ */
251
+ export interface DescribeFraudPremiumRequest {
252
+ /**
253
+ * 客户端通过SDK获取的设备Token
254
+ */
255
+ DeviceToken: string
256
+ }
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./services"), exports);
@@ -0,0 +1 @@
1
+ export { tds } from "./tds";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tds_1 = require("./tds");
4
+ Object.defineProperty(exports, "tds", { enumerable: true, get: function () { return tds_1.tds; } });
@@ -0,0 +1,6 @@
1
+ export declare const tds: {
2
+ v20220801: {
3
+ Client: typeof import("./v20220801/tds_client").Client;
4
+ Models: typeof import("./v20220801/tds_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tds = void 0;
4
+ const v20220801_1 = require("./v20220801");
5
+ exports.tds = {
6
+ v20220801: v20220801_1.v20220801,
7
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./tds_models";
2
+ import { Client } from "./tds_client";
3
+ export declare const v20220801: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20220801 = void 0;
4
+ const Models = require("./tds_models");
5
+ const tds_client_1 = require("./tds_client");
6
+ exports.v20220801 = {
7
+ Client: tds_client_1.Client,
8
+ Models: Models,
9
+ };
@@ -0,0 +1,21 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ import { DescribeFraudBaseRequest, DescribeFraudPremiumResponse, DescribeTrustedIDResponse, DescribeFraudBaseResponse, DescribeTrustedIDRequest, DescribeFraudPremiumRequest } from "./tds_models";
3
+ /**
4
+ * tds client
5
+ * @class
6
+ */
7
+ export declare class Client extends TencentCloudCommon.AbstractClient {
8
+ constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 查询设备风险
11
+ */
12
+ DescribeFraudBase(req: DescribeFraudBaseRequest, cb?: (error: string, rep: DescribeFraudBaseResponse) => void): Promise<DescribeFraudBaseResponse>;
13
+ /**
14
+ * 查询设备标识
15
+ */
16
+ DescribeTrustedID(req: DescribeTrustedIDRequest, cb?: (error: string, rep: DescribeTrustedIDResponse) => void): Promise<DescribeTrustedIDResponse>;
17
+ /**
18
+ * 查询设备标识及风险
19
+ */
20
+ DescribeFraudPremium(req: DescribeFraudPremiumRequest, cb?: (error: string, rep: DescribeFraudPremiumResponse) => void): Promise<DescribeFraudPremiumResponse>;
21
+ }
@@ -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 TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ /**
23
+ * tds client
24
+ * @class
25
+ */
26
+ class Client extends TencentCloudCommon.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 });
package/tsconfig.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "compilerOptions": {
3
+ // "incremental": true, /* 增量编译 提高编译速度*/
4
+ "target": "ES2019" /* 编译目标ES版本*/,
5
+ "module": "commonjs" /* 编译目标模块系统*/,
6
+ // "lib": [], /* 编译过程中需要引入的库文件列表*/
7
+ "declaration": true /* 编译时创建声明文件 */,
8
+ "outDir": "tencentcloud" /* ts编译输出目录 */,
9
+ "rootDir": "src" /* ts编译根目录. */,
10
+ "importHelpers": true /* 从tslib导入辅助工具函数(如__importDefault)*/,
11
+ "strict": true /* 严格模式开关 等价于noImplicitAny、strictNullChecks、strictFunctionTypes、strictBindCallApply等设置true */,
12
+ "strictNullChecks": false,
13
+ "noUnusedLocals": false /* 未使用局部变量报错*/,
14
+ "noUnusedParameters": false /* 未使用参数报错*/,
15
+ "noImplicitReturns": true /* 有代码路径没有返回值时报错*/,
16
+ "noFallthroughCasesInSwitch": true /* 不允许switch的case语句贯穿*/,
17
+ "moduleResolution": "node" /* 模块解析策略 */,
18
+ "typeRoots": [
19
+ /* 要包含的类型声明文件路径列表*/
20
+ "./typings",
21
+ "./node_modules/@types"
22
+ ],
23
+ "allowSyntheticDefaultImports": true /* 允许从没有设置默认导出的模块中默认导入,仅用于提示,不影响编译结果*/,
24
+ "esModuleInterop": false /* 允许编译生成文件时,在代码中注入工具类(__importDefault、__importStar)对ESM与commonjs混用情况做兼容处理*/,
25
+ "sourceMap": false
26
+ },
27
+ "include": [
28
+ /* 需要编译的文件 */
29
+ "src/**/*.ts",
30
+ "typings/**/*.ts"
31
+ ],
32
+ "exclude": []
33
+ }
@@ -0,0 +1,2 @@
1
+ declare module "get-stream"
2
+ declare module "is-stream"