tencentcloud-sdk-nodejs-tds 4.1.70 → 4.1.203

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/README.md CHANGED
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
62
62
 
63
63
  1. clone 代码到本地:
64
64
  ```
65
+ git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
66
+ # 或者
65
67
  git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
66
68
  # 或者
67
69
  git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
135
137
  // ...
136
138
  ```
137
139
 
138
- 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts)。
140
+ 实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
139
141
 
140
142
  ## Common Client
141
143
 
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
143
145
 
144
146
  **注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
145
147
 
146
- 详细使用请参阅示例:[使用 Common Client 进行调用](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples/common)
148
+ 详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
147
149
 
148
150
  ## 更多示例
149
151
 
150
- 请参考 [examples](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/tree/master/examples) 目录。
152
+ 请参考 [examples](examples) 目录。
151
153
 
152
154
  # 相关配置
153
155
 
154
156
  ## 代理
155
157
 
156
- 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](https://github.com/TencentCloud/tencentcloud-sdk-nodejs/blob/master/src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
158
+ 如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
157
159
 
158
160
  # 凭证管理
159
161
 
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tds",
3
- "version": "4.1.70",
3
+ "version": "4.1.203",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -12,7 +12,8 @@
12
12
  "build:es": "tsc -p tsconfig.es.json",
13
13
  "build:slim": "node ./scripts/build_slim.js",
14
14
  "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
15
- "clean": "rimraf tencentcloud es"
15
+ "clean": "rimraf tencentcloud es",
16
+ "test:common": "vitest run"
16
17
  },
17
18
  "engines": {
18
19
  "node": ">=10"
@@ -44,9 +45,9 @@
44
45
  "url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
45
46
  },
46
47
  "devDependencies": {
47
- "@types/form-data": "^2.5.0",
48
+ "@types/ini": "^4.1.1",
48
49
  "@types/json-bigint": "^1.0.1",
49
- "@types/node": "^14.0.26",
50
+ "@types/node": "^18.0.0",
50
51
  "@types/node-fetch": "^2.5.7",
51
52
  "@types/uuid": "^9.0.8",
52
53
  "@typescript-eslint/eslint-plugin": "^2.34.0",
@@ -61,6 +62,7 @@
61
62
  "prettier": "^2.3.0",
62
63
  "rimraf": "^5.0.10",
63
64
  "ts-node": "^8.10.2",
64
- "typescript": "^3.9.7"
65
+ "typescript": "^5.9.2",
66
+ "vitest": "2.1.9"
65
67
  }
66
68
  }
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.tds = void 0;
3
4
  var tds_1 = require("./tds");
4
5
  Object.defineProperty(exports, "tds", { enumerable: true, get: function () { return tds_1.tds; } });
@@ -199,58 +199,79 @@ export interface DescribeFinanceFraudUltimateRequest {
199
199
  */
200
200
  export interface DescribeFraudBaseRequest {
201
201
  /**
202
- * 客户端通过SDK获取的设备Token
202
+ * <p>客户端通过SDK获取的设备Token</p>
203
203
  */
204
204
  DeviceToken: string;
205
205
  }
206
+ /**
207
+ * 附加信息
208
+ */
209
+ export interface ExtraInfo {
210
+ /**
211
+ * <p>附加信息名字</p>
212
+ */
213
+ Key?: string;
214
+ /**
215
+ * <p>附加信息内容</p>
216
+ */
217
+ Value?: string;
218
+ }
206
219
  /**
207
220
  * DescribeFraudBase返回参数结构体
208
221
  */
209
222
  export interface DescribeFraudBaseResponse {
210
223
  /**
211
- * App版本信息
224
+ * <p>App版本信息</p>
212
225
  */
213
- AppVersion: string;
226
+ AppVersion?: string;
214
227
  /**
215
- * 品牌
228
+ * <p>品牌</p>
216
229
  */
217
- Brand: string;
230
+ Brand?: string;
218
231
  /**
219
- * 客户端IP
232
+ * <p>客户端IP</p>
220
233
  */
221
- ClientIp: string;
234
+ ClientIp?: string;
222
235
  /**
223
- * 机型
236
+ * <p>机型</p>
224
237
  */
225
- Model: string;
238
+ Model?: string;
226
239
  /**
227
- * 网络类型
240
+ * <p>网络类型</p>
228
241
  */
229
- NetworkType: string;
242
+ NetworkType?: string;
230
243
  /**
231
- * 应用包名
244
+ * <p>应用包名</p>
232
245
  */
233
- PackageName: string;
246
+ PackageName?: string;
234
247
  /**
235
- * 平台(2-Android,3-iOS,4-H5,5-微信小程序)
248
+ * <p>平台(2-Android,3-iOS,4-H5,5-微信小程序)</p>
236
249
  */
237
- Platform: string;
250
+ Platform?: string;
238
251
  /**
239
- * 系统版本
252
+ * <p>系统版本</p>
240
253
  */
241
- SystemVersion: string;
254
+ SystemVersion?: string;
242
255
  /**
243
- * SDK版本号
256
+ * <p>SDK版本号</p>
244
257
  */
245
- SdkBuildNo: string;
258
+ SdkBuildNo?: string;
246
259
  /**
247
- * 实时风险信息
260
+ * <p>实时风险信息</p>
248
261
  */
249
- RiskInfos: Array<RiskInfo>;
262
+ RiskInfos?: Array<RiskInfo>;
250
263
  /**
251
- * 离线风险信息
264
+ * <p>离线风险信息</p>
252
265
  */
253
- HistRiskInfos: Array<RiskInfo>;
266
+ HistRiskInfos?: Array<RiskInfo>;
267
+ /**
268
+ * <p>检测时间戳(毫秒)</p>
269
+ */
270
+ RiskCheckTimestamp?: string;
271
+ /**
272
+ * <p>额外信息</p>
273
+ */
274
+ ExtraInfos?: Array<ExtraInfo>;
254
275
  /**
255
276
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
256
277
  */