tencentcloud-sdk-nodejs-rce 4.1.104 → 4.1.157

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
 
@@ -1,4 +1,6 @@
1
1
  import { v20201103 } from "./v20201103";
2
+ import { v20250425 } from "./v20250425";
2
3
  export const rce = {
3
4
  v20201103: v20201103,
5
+ v20250425: v20250425,
4
6
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import * as Models from "./rce_models";
2
+ import { Client } from "./rce_client";
3
+ export const v20250425 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,9 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("rce.tencentcloudapi.com", "2025-04-25", clientConfig);
5
+ }
6
+ async ManageIPPortraitRisk(req, cb) {
7
+ return this.request("ManageIPPortraitRisk", req, cb);
8
+ }
9
+ }
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-rce",
3
- "version": "4.1.104",
3
+ "version": "4.1.157",
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.rce = void 0;
3
4
  var rce_1 = require("./rce");
4
5
  Object.defineProperty(exports, "rce", { enumerable: true, get: function () { return rce_1.rce; } });
@@ -3,4 +3,8 @@ export declare const rce: {
3
3
  Client: typeof import("./v20201103/rce_client").Client;
4
4
  Models: typeof import("./v20201103/rce_models");
5
5
  };
6
+ v20250425: {
7
+ Client: typeof import("./v20250425/rce_client").Client;
8
+ Models: typeof import("./v20250425/rce_models");
9
+ };
6
10
  };
@@ -2,6 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rce = void 0;
4
4
  const v20201103_1 = require("./v20201103");
5
+ const v20250425_1 = require("./v20250425");
5
6
  exports.rce = {
6
7
  v20201103: v20201103_1.v20201103,
8
+ v20250425: v20250425_1.v20250425,
7
9
  };
@@ -392,7 +392,7 @@ export interface DeleteNameListDataResponse {
392
392
  /**
393
393
  * DescribeUserUsageCnt请求参数结构体
394
394
  */
395
- export declare type DescribeUserUsageCntRequest = null;
395
+ export type DescribeUserUsageCntRequest = null;
396
396
  /**
397
397
  * ImportNameListData返回参数结构体
398
398
  */
@@ -0,0 +1,6 @@
1
+ import * as Models from "./rce_models";
2
+ import { Client } from "./rce_client";
3
+ export declare const v20250425: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20250425 = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./rce_models"));
6
+ const rce_client_1 = require("./rce_client");
7
+ exports.v20250425 = {
8
+ Client: rce_client_1.Client,
9
+ Models: Models,
10
+ };
@@ -0,0 +1,13 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ import { ManageIPPortraitRiskResponse, ManageIPPortraitRiskRequest } from "./rce_models";
3
+ /**
4
+ * rce client
5
+ * @class
6
+ */
7
+ export declare class Client extends TencentCloudCommon.AbstractClient {
8
+ constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * IP画像接口
11
+ */
12
+ ManageIPPortraitRisk(req?: ManageIPPortraitRiskRequest, cb?: (error: string, rep: ManageIPPortraitRiskResponse) => void): Promise<ManageIPPortraitRiskResponse>;
13
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ const tslib_1 = require("tslib");
5
+ /* eslint-disable @typescript-eslint/no-unused-vars */
6
+ /*
7
+ * Copyright (c) 2018 Tencent. All Rights Reserved.
8
+ *
9
+ * Licensed under the Apache License, Version 2.0 (the "License");
10
+ * you may not use this file except in compliance with the License.
11
+ * You may obtain a copy of the License at
12
+ *
13
+ * http://www.apache.org/licenses/LICENSE-2.0
14
+ *
15
+ * Unless required by applicable law or agreed to in writing,
16
+ * software distributed under the License is distributed on an
17
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
+ * KIND, either express or implied. See the License for the
19
+ * specific language governing permissions and limitations
20
+ * under the License.
21
+ */
22
+ const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
23
+ /**
24
+ * rce client
25
+ * @class
26
+ */
27
+ class Client extends TencentCloudCommon.AbstractClient {
28
+ constructor(clientConfig) {
29
+ super("rce.tencentcloudapi.com", "2025-04-25", clientConfig);
30
+ }
31
+ /**
32
+ * IP画像接口
33
+ */
34
+ async ManageIPPortraitRisk(req, cb) {
35
+ return this.request("ManageIPPortraitRisk", req, cb);
36
+ }
37
+ }
38
+ exports.Client = Client;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * ManageIPPortraitRisk返回参数结构体
3
+ */
4
+ export interface ManageIPPortraitRiskResponse {
5
+ /**
6
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7
+ */
8
+ RequestId?: string;
9
+ }
10
+ /**
11
+ * ManageIPPortraitRisk请求参数结构体
12
+ */
13
+ export type ManageIPPortraitRiskRequest = null;
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 Tencent. 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 });